Note: things work fine without freebsd-glue, but I wanted to transparently enable FreeBSD sendfile on cmogstored.
I got another failure after fixing the argp "struct group" conflict. Also using: ./configure LIBS=-lfreebsd-glue CFLAGS=-I/usr/include/freebsd (Note: this is not that important for me, take your time) Full log here: http://yhbt.net/argp-debiankfbsd.gz Partial below: gcc -DHAVE_CONFIG_H -I. -I.. -DGNULIB_STRICT_CHECKING=1 -I/usr/include/freebsd -MT printf-args.o -MD -MP -MF .deps/printf-args.Tpo -c -o printf-args.o printf-args.c mv -f .deps/progname.Tpo .deps/progname.Po mv -f .deps/asnprintf.Tpo .deps/asnprintf.Po mv -f .deps/unistd.Tpo .deps/unistd.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGNULIB_STRICT_CHECKING=1 -I/usr/include/freebsd -MT printf-parse.o -MD -MP -MF .deps/printf-parse.Tpo -c -o printf-parse.o printf-parse.c gcc -DHAVE_CONFIG_H -I. -I.. -DGNULIB_STRICT_CHECKING=1 -I/usr/include/freebsd -MT strerror.o -MD -MP -MF .deps/strerror.Tpo -c -o strerror.o strerror.c gcc -DHAVE_CONFIG_H -I. -I.. -DGNULIB_STRICT_CHECKING=1 -I/usr/include/freebsd -MT strerror-override.o -MD -MP -MF .deps/strerror-override.Tpo -c -o strerror-override.o strerror-override.c In file included from /usr/include/libio.h:32:0, from /usr/include/stdio.h:74, from /usr/include/freebsd/stdio.h:1, from ./stdio.h:43, from /usr/include/bsd/stdio.h:30, from /usr/include/freebsd/stdio.h:6, from ./stdio.h:33, from /usr/include/wchar.h:36, from ./wchar.h:79, from printf-args.h:41, from printf-args.c:29: /usr/include/_G_config.h:24:3: error: unknown type name ‘__mbstate_t’ __mbstate_t __state; ^ /usr/include/_G_config.h:29:3: error: unknown type name ‘__mbstate_t’ __mbstate_t __state; ^ mv -f .deps/xsize.Tpo .deps/xsize.Po In file included from /usr/include/libio.h:32:0, from /usr/include/stdio.h:74, from /usr/include/freebsd/stdio.h:1, from ./stdio.h:43, from /usr/include/bsd/stdio.h:30, from /usr/include/freebsd/stdio.h:6, from ./stdio.h:33, from /usr/include/wchar.h:36, from ./wchar.h:79, from printf-args.h:41, from printf-parse.h:29, from printf-parse.c:36: /usr/include/_G_config.h:24:3: error: unknown type name ‘__mbstate_t’ __mbstate_t __state; ^ /usr/include/_G_config.h:29:3: error: unknown type name ‘__mbstate_t’ __mbstate_t __state; ^ gcc -DHAVE_CONFIG_H -I. -I.. -DGNULIB_STRICT_CHECKING=1 -I/usr/include/freebsd -MT vasnprintf.o -MD -MP -MF .deps/vasnprintf.Tpo -c -o vasnprintf.o vasnprintf.c make[4]: *** [printf-args.o] Error 1 make[4]: *** Waiting for unfinished jobs.... mv -f .deps/getopt1.Tpo .deps/getopt1.Po mv -f .deps/dup2.Tpo .deps/dup2.Po make[4]: *** [printf-parse.o] Error 1 mv -f .deps/strerror-override.Tpo .deps/strerror-override.Po mv -f .deps/getopt.Tpo .deps/getopt.Po mv -f .deps/strerror.Tpo .deps/strerror.Po mv -f .deps/vasnprintf.Tpo .deps/vasnprintf.Po make[4]: Leaving directory `/tmp/argp/gllib' Thanks for taking a look!