Package: gridlock.app Severity: important Tags: patch Hi,
currently your package FTBFS on GNU/kFreeBSD with the following error: > Compiling file EDIPSocket.m ... > In file included from EDIPSocket.m:22: > osdep.h:222:2: error: #error Unknown system! > In file included from EDIPSocket.m:23: > functions.h:28: warning: 'struct in_addr' declared inside parameter list > functions.h:28: warning: its scope is only this definition or declaration, > which is probably not what you want > EDIPSocket.m: In function '-[EDIPSocket setLocalPort:]': > EDIPSocket.m:152: error: storage size of 'anyAddress' isn't known > EDIPSocket.m:154: error: 'INADDR_ANY' undeclared (first use in this function) > EDIPSocket.m:154: error: (Each undeclared identifier is reported only once > EDIPSocket.m:154: error: for each function it appears in.) > EDIPSocket.m:155: error: type of formal parameter 1 is incomplete > EDIPSocket.m: In function '-[EDIPSocket setLocalPort:andAddress:]': > EDIPSocket.m:163: error: storage size of 'socketAddress' isn't known > EDIPSocket.m:165: error: invalid application of 'sizeof' to incomplete type > 'struct sockaddr_in' > EDIPSocket.m:167: error: invalid use of undefined type 'struct in_addr' > EDIPSocket.m:171: error: 'ED_ERRNO' undeclared (first use in this function) > EDIPSocket.m: In function '-[EDIPSocket > _connectToAddress:port:hostDescription:]': > EDIPSocket.m:227: error: storage size of 'socketAddress' isn't known > EDIPSocket.m:233: error: 'F_GETFL' undeclared (first use in this function) > EDIPSocket.m:241: error: invalid application of 'sizeof' to incomplete type > 'struct sockaddr_in' > EDIPSocket.m:243: error: invalid use of undefined type 'struct in_addr' > EDIPSocket.m:248: error: 'ED_ERRNO' undeclared (first use in this function) > EDIPSocket.m:295: error: 'F_SETFL' undeclared (first use in this function) > make[2]: *** [shared_obj/EDIPSocket.o] Error 1 > make[1]: *** [Gridlock.all.app.variables] Error 2 > make[1]: Leaving directory `/build/buildd/gridlock.app-1.10' > make: *** [build-stamp] Error 2 Full build logs are available at <http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=gridlock.app>. Please find attached a tiny patch to fix this. Cheers, -- Cyril Brulebois
--- gridlock.app-1.10/NSFileHandle+Extensions.m 2007-03-09 03:49:01.402342000 +0100 +++ gridlock.app-1.10/NSFileHandle+Extensions.m 2007-03-09 03:49:28.000000000 +0100 @@ -144,7 +144,7 @@ format: @"PeekNamedPipe() NT Error # %d", GetLastError()]; return lpTotalBytesAvail; -#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(linux) +#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(linux) || defined(__FreeBSD_kernel__) int numBytes; if(ioctl(EDSOCKETHANDLE, FIONREAD, (char *) &numBytes) == -1) --- gridlock.app-1.10/osdep.h 2007-03-09 03:48:07.938202000 +0100 +++ gridlock.app-1.10/osdep.h 2007-03-09 03:48:30.000000000 +0100 @@ -192,7 +192,7 @@ #import <resolv.h> -#elif defined(linux) +#elif defined(linux) || defined(__FreeBSD_kernel__) //--------------------------------------------------------------------------------------- // Linux