Package: enet Severity: important Tags: patch Hi Gonéri! Hi -games!
Currently (y)our package FTBFS on GNU/kFreeBSD. > if i486-kfreebsd-gnu-gcc -DPACKAGE_NAME=\"libenet\" > -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.0\" > -DPACKAGE_STRING=\"libenet\ 1.0\" -DPACKAGE_BUGREPORT=\"\" > -DPACKAGE=\"libenet.a\" -DVERSION=\"1.0\" -DHAS_GETHOSTBYADDR_R=1 > -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 > -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I. -Iinclude/ > -Wall -g -O2 -MT unix.o -MD -MP -MF ".deps/unix.Tpo" -c -o unix.o unix.c; \ > then mv -f ".deps/unix.Tpo" ".deps/unix.Po"; else rm -f > ".deps/unix.Tpo"; exit 1; fi > unix.c: In function 'enet_address_set_host': > unix.c:86: warning: passing argument 5 of 'gethostbyname_r' from incompatible > pointer type > unix.c:86: error: too few arguments to function 'gethostbyname_r' > unix.c: In function 'enet_address_get_host': > unix.c:124: warning: passing argument 7 of 'gethostbyaddr_r' from > incompatible pointer type > unix.c:124: error: too few arguments to function 'gethostbyaddr_r' > make[2]: *** [unix.o] Error 1 > make[2]: Leaving directory `/build/buildd/enet-1.0' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/build/buildd/enet-1.0' > make: *** [build-stamp] Error 2 Full build logs are available at <http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=enet>. Please find attached a small patch to fix this. (I'm reporting to the BTS and not only on the list to ease the coordination of GNU/kFreeBSD porters.) Have a nice day, see you, -- Cyril Brulebois
--- enet-1.0/unix.c 2007-03-11 08:33:46.900128000 +0100 +++ enet-1.0/unix.c 2007-03-11 08:34:54.000000000 +0100 @@ -80,7 +80,7 @@ char buffer [2048]; int errnum; -#ifdef linux +#if defined(linux) || defined(__FreeBSD_kernel__) gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); #else hostEntry = gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & errnum); @@ -118,7 +118,7 @@ in.s_addr = address -> host; -#ifdef linux +#if defined(linux) || defined(__FreeBSD_kernel__) gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); #else hostEntry = gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & errnum);