Package: mathopd
Severity: wishlist

Hi,

currently your package FTBFS on GNU/kFreeBSD with the following error:
> -c -Wall -O2 -DHAVE_CRYPT_H -DLINUX_SENDFILE sendfile.c -o sendfile.o
> sendfile.c: In function 'set_nopush':
> sendfile.c:53: error: 'TCP_CORK' undeclared (first use in this function)
> sendfile.c:53: error: (Each undeclared identifier is reported only once
> sendfile.c:53: error: for each function it appears in.)
> make[1]: *** [sendfile.o] Error 1
> make[1]: Leaving directory `/build/buildd/mathopd-1.5p5/src'
> make: *** [build-stamp] Error 2

Full build logs are available at
<http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=mathopd>.


After having applied the attached patch, the build goes to his term, but
there are some warnings:
> make[1]: Entering directory `/home/kibi/x/mathopd-1.5p5/src'
> gcc -c -Wall -O2 -DHAVE_CRYPT_H -DFREEBSD_SENDFILE base64.c -o base64.o
> gcc -c -Wall -O2 -DHAVE_CRYPT_H -DFREEBSD_SENDFILE cgi.c -o cgi.o
> gcc -c -Wall -O2 -DHAVE_CRYPT_H -DFREEBSD_SENDFILE config.c -o config.o
> gcc -c -Wall -O2 -DHAVE_CRYPT_H -DFREEBSD_SENDFILE core.c -o core.o
> gcc -c -Wall -O2 -DHAVE_CRYPT_H -DFREEBSD_SENDFILE dump.c -o dump.o
> gcc -c -Wall -O2 -DHAVE_CRYPT_H -DFREEBSD_SENDFILE imap.c -o imap.o
> gcc -c -Wall -O2 -DHAVE_CRYPT_H -DFREEBSD_SENDFILE log.c -o log.o
> gcc -c -Wall -O2 -DHAVE_CRYPT_H -DFREEBSD_SENDFILE main.c -o main.o
> gcc -c -Wall -O2 -DHAVE_CRYPT_H -DFREEBSD_SENDFILE redirect.c -o redirect.o
> gcc -c -Wall -O2 -DHAVE_CRYPT_H -DFREEBSD_SENDFILE request.c -o request.o
> gcc -c -Wall -O2 -DHAVE_CRYPT_H -DFREEBSD_SENDFILE util.c -o util.o
> gcc -c -Wall -O2 -DHAVE_CRYPT_H -DFREEBSD_SENDFILE stub.c -o stub.o
> gcc -c -Wall -O2 -DHAVE_CRYPT_H -DFREEBSD_SENDFILE sendfile.c -o sendfile.o
> sendfile.c: In function 'sendfile_connection':
> sendfile.c:111: warning: implicit declaration of function 'sendfile'
> gcc  -o mathopd base64.o cgi.o config.o core.o dump.o imap.o log.o main.o 
> redirect.o request.o util.o stub.o sendfile.o -lcrypt
> sendfile.o: In function `sendfile_connection':
> sendfile.c:(.text+0x73): warning: warning: sendfile is not implemented and 
> will always fail
> make[1]: Leaving directory `/home/kibi/x/mathopd-1.5p5/src'

Since it probably won't work as expected, I'm neither tagging this
bugreport with patch nor setting the severity to important. If someone
has an idea about that error, please speak up. I guess that mixing
LINUX_SENDFILE and FREEBSD_SENDFILE implementations should do the trick,
but I'm not sure I'll be able to dig it right now.

Cheers,

-- 
Cyril Brulebois
--- mathopd-1.5p5/debian/rules	2007-03-09 08:26:19.390941000 +0100
+++ mathopd-1.5p5/debian/rules	2007-03-09 08:27:27.000000000 +0100
@@ -8,7 +8,12 @@
 
 
 CFLAGS = -Wall
+ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
+CPPFLAGS = -DHAVE_CRYPT_H -DFREEBSD_SENDFILE
+else
 CPPFLAGS = -DHAVE_CRYPT_H -DLINUX_SENDFILE
+endif
+
 EXTRA_OBJS = sendfile.o
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))

Reply via email to