Subject: pkg/36082: www/lighttpd breaks on Linux 2.4
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <uli@habel.name>
List: pkgsrc-bugs
Date: 03/24/2007 23:25:00
>Number: 36082
>Category: pkg
>Synopsis: www/lighttpd breaks on Linux 2.4
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Mar 24 23:25:00 +0000 2007
>Originator: Ulrich Habel
>Release: Debian Sarge 2.4
>Organization:
http://habel.name
>Environment:
Linux newton 2.4.27-3-386 #1 Wed Dec 6 00:38:33 UTC 2006 i686 GNU/Linux
>Description:
www/lighttpd breaks on Linux in the compile phase as it tries to use the c99 mode which is unknown to the gcc-2.9.5 compiler which is used for the builds. In order to pull in the REQ for gcc-3.x the USE_LANGUAGES=c99 is missing.
(see the bulk report from http://habel.name/~uli/NetBSD/2007-03-22-pkgsrc-current/www/lighttpd/.broken.html for reference)
short version below:
gcc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/usr/pkg/lib/lighttpd\" -I. -I.. -I/usr/pkgsrc/www/lighttpd/work/.buildlink/include -DLDAP_DEPRECATED -D_REENTRANT -D__EXTENSIONS__ -DOPENSSL_NO_KRB5 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -c mod_flv_streaming.c -Wp,-MD,.deps/mod_flv_streaming.TPlo -fPIC -DPIC -o .libs/mod_flv_streaming.o
cc1: unknown C standard `gnu99'
[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/usr/pkgsrc/www/lighttpd/work/.gcc/bin/gcc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/usr/pkg/lib/lighttpd\" -I. -I.. -I/usr/pkgsrc/www/lighttpd/work/.buildlink/include -DLDAP_DEPRECATED -D_REENTRANT -D__EXTENSIONS__ -DOPENSSL_NO_KRB5 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -c mod_flv_streaming.c -Wp,-MD,.deps/mod_flv_streaming.TPlo -fPIC -DPIC -o .libs/mod_flv_streaming.o -L/usr/pkgsrc/www/lighttpd/work/.buildlink/lib
[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/usr/pkg/bin/shlibtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/usr/pkg/lib/lighttpd\" -I. -I.. -I/usr/pkgsrc/www/lighttpd/work/.buildlink/include -DLDAP_DEPRECATED -D_REENTRANT -D__EXTENSIONS__ -DOPENSSL_NO_KRB5 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -c -o mod_flv_streaming.lo mod_flv_streaming.c -Wp,-MD,.deps/mod_flv_streaming.TPlo
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/www/lighttpd/work/lighttpd-1.4.13/src
*** Error code 1
>How-To-Repeat:
try to build www/lighttpd on Linux
>Fix:
Put in c99 as USE_LANGUAGES in the Makefile in order to pull in GCC_REQD+= 3.0 from mk/compiler/gcc.mk. See patch below:
--- Makefile.orig 2007-03-25 00:05:03.000000000 +0100
+++ Makefile 2007-03-25 00:12:59.000000000 +0100
@@ -10,6 +10,7 @@
USE_LIBTOOL= yes
SHLIBTOOL_OVERRIDE= # empty
+USE_LANGUAGES+= c99
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --libdir=${PREFIX}/lib/${PKGBASE}