Hi, While trying to build annexlib-0.13.5 from godi_console on my FreeBSD machine I'm getting the following error: ------------------------------------------------------------------------------------------------------------------------------------ gmake[8]: Leaving directory `/usr/home/nick/godi/build/godi/godi-annexlib/work/annexlib-0.13.5' gmake[8]: Entering directory `/usr/home/nick/godi/build/godi/godi-annexlib/work/annexlib-0.13.5' ocamlc -c -cc "gcc" -ccopt "-fPIC -DPIC -fPIC -DPIC -Wall -Wno-unused \ -o util_stubs.o " util_stubs.c util_stubs.c: In function 'stew_sendfile': util_stubs.c:473: warning: implicit declaration of function 'sendfile' util_stubs.c:484: error: expected ';' before '}' token util_stubs.c: In function 'alloc_service_entry': util_stubs.c:500: warning: implicit declaration of function 'ntohs' gmake[8]: *** [util_stubs.o] Error 2 gmake[8]: Leaving directory `/usr/home/nick/godi/build/godi/godi-annexlib/work/annexlib-0.13.5' gmake[7]: *** [byte-code-library] Error 2 gmake[7]: Leaving directory `/usr/home/nick/godi/build/godi/godi-annexlib/work/annexlib-0.13.5' Error: Exec error: File /usr/home/nick/godi/build/godi/godi-annexlib/./../../mk/bsd.pkg.mk, line 1039: Command returned with non-zero exit code Error: Exec error: File /usr/home/nick/godi/build/godi/godi-annexlib/./../../mk/bsd.pkg.mk, line 1378: Command returned with non-zero exit code ------------------------------------------------------------------------------------------------------------------------------------ Prerequisites: $ uname -sr FreeBSD 8.0-STABLE $ gcc -v Using built-in specs. Target: amd64-undermydesk-freebsd Configured with: FreeBSD/amd64 system compiler Thread model: posix gcc version 4.2.1 20070719 [FreeBSD] The problem is in the minor typo in FreeBSD-specific code. So, to deal with this error and those warnings I propose the attached patch. Also, it would be great if somebody could point me to more specific way to propose patches to godi packages :-) -- Mykola Stryebkov Public key: http://mykola.org/pubkey.txt fpr: 0226 54EE C1FF 8636 36EF 2AC9 BCE9 CFC7 9CF4 6747