Ticket #1222 (assigned defect)
1.5.0r1857 doesn't compile on Solaris 10
| Reported by: | wagner@… | Owned by: | jan |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5.0 |
| Component: | core | Version: | 1.5.x-svn |
| Severity: | normal | Keywords: | |
| Cc: | Blocked By: | ||
| Need User Feedback: | no | Blocking: |
Description (last modified by jan) (diff)
I tried to compile lighttpd-1.5.0r1857 under Solaris 10 with gcc-3.4.6 and SUN Forte CC - both failed.
I'll have here the output of the make-commands:
gcc-3.4.6
# uname -a
SunOS host 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-280R
# gcc --version
gcc (GCC) 3.4.6
root@boe-weblb-p1 # make
make all-recursive
Making all in src
Making all in valgrind
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/opt/lighttpd/lib\"" -I. -I. -I..
+-D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt
+-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -MT mod_flv_streaming.lo
+-MD -MP -MF ".deps/mod_flv_streaming.Tpo" -c -o mod_flv_streaming.lo mod_flv_streaming.c; \
then mv -f ".deps/mod_flv_streaming.Tpo" ".deps/mod_flv_streaming.Plo"; else rm -f ".deps/mod_flv_streaming.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/opt/lighttpd/lib\" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include
+-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2
+-Wall -W -Wshadow -pedantic -std=gnu99 -MT mod_flv_streaming.lo -MD -MP -MF .deps/mod_flv_streaming.Tpo -c
+mod_flv_streaming.c -fPIC -DPIC -o .libs/mod_flv_streaming.o
cc1: error: invalid option `t'
*** Error code 1
make: Fatal error: Command failed for target `mod_flv_streaming.lo'
SUN Forte C:
root@boe-weblb-p1 # make
make all-recursive
Making all in src
Making all in valgrind
source='mod_flv_streaming.c' object='mod_flv_streaming.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/opt/lighttpd/lib\"" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c -o mod_flv_streaming.lo mod_flv_streaming.c
mkdir .libs
cc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/opt/lighttpd/lib\" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c mod_flv_streaming.c -KPIC -DPIC -o .libs/mod_flv_streaming.o
/bin/bash ../libtool --tag=CC --mode=link cc -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -o mod_flv_streaming.la -rpath /opt/lighttpd/lib -module -export-dynamic -avoid-version -no-undefined mod_flv_streaming.lo -lrt -lresolv -lnsl -lsocket
/usr/ccs/bin/ld -G -z text -h mod_flv_streaming.so -o .libs/mod_flv_streaming.so .libs/mod_flv_streaming.o -lrt -lresolv -lnsl -lsocket -lc
creating mod_flv_streaming.la
(cd .libs && rm -f mod_flv_streaming.la && ln -s ../mod_flv_streaming.la mod_flv_streaming.la)
source='mod_uploadprogress.c' object='mod_uploadprogress.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/opt/lighttpd/lib\"" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c -o mod_uploadprogress.lo mod_uploadprogress.c
cc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/opt/lighttpd/lib\" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c mod_uploadprogress.c -KPIC -DPIC -o .libs/mod_uploadprogress.o
/bin/bash ../libtool --tag=CC --mode=link cc -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -o mod_uploadprogress.la -rpath /opt/lighttpd/lib -module -export-dynamic -avoid-version -no-undefined mod_uploadprogress.lo -lrt -lresolv -lnsl -lsocket
/usr/ccs/bin/ld -G -z text -h mod_uploadprogress.so -o .libs/mod_uploadprogress.so .libs/mod_uploadprogress.o -lrt -lresolv -lnsl -lsocket -lc
creating mod_uploadprogress.la
(cd .libs && rm -f mod_uploadprogress.la && ln -s ../mod_uploadprogress.la mod_uploadprogress.la)
source='mod_evasive.c' object='mod_evasive.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/opt/lighttpd/lib\""
-I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c -o mod_evasive.lo mod_evasive.c
cc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/opt/lighttpd/lib\" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c mod_evasive.c -KPIC -DPIC -o .libs/mod_evasive.o
/bin/bash ../libtool --tag=CC --mode=link cc -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -o mod_evasive.la -rpath /opt/lighttpd/lib -module -export-dynamic -avoid-version -no-undefined mod_evasive.lo -lrt -lresolv -lnsl -lsocket
/usr/ccs/bin/ld -G -z text -h mod_evasive.so -o .libs/mod_evasive.so .libs/mod_evasive.o -lrt -lresolv -lnsl -lsocket -lc
creating mod_evasive.la
(cd .libs && rm -f mod_evasive.la && ln -s ../mod_evasive.la mod_evasive.la)
source='mod_fastcgi.c' object='mod_fastcgi.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/opt/lighttpd/lib\"" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c -o mod_fastcgi.lo mod_fastcgi.c
/bin/bash ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/opt/lighttpd/lib\"" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c -o mod_fastcgi.lo mod_fastcgi.c
cc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/opt/lighttpd/lib\" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c mod_fastcgi.c -KPIC -DPIC -o .libs/mod_fastcgi.o
/bin/bash ../libtool --tag=CC --mode=link cc -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -o mod_fastcgi.la -rpath /opt/lighttpd/lib -module -export-dynamic -avoid-version -no-undefined mod_fastcgi.lo -lrt -lresolv -lnsl -lsocket /usr/ccs/bin/ld -G -z text -h mod_fastcgi.so -o .libs/mod_fastcgi.so .libs/mod_fastcgi.o -lrt -lresolv -lnsl -lsocket -lc
creating mod_fastcgi.la (cd .libs && rm -f mod_fastcgi.la && ln -s ../mod_fastcgi.la mod_fastcgi.la)
source='mod_webdav.c' object='mod_webdav_la-mod_webdav.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/opt/lighttpd/lib\"" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c -o mod_webdav_la-mod_webdav.lo `test -f 'mod_webdav.c' || echo './'`mod_webdav.c cc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/opt/lighttpd/lib\" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c mod_webdav.c -KPIC -DPIC -o .libs/mod_webdav_la-mod_webdav.o "mod_webdav.c", line 956: warning: statement not reached /bin/bash ../libtool --tag=CC --mode=link cc -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -o mod_webdav.la -rpath /opt/lighttpd/lib -module -export-dynamic -avoid-version -no-undefined mod_webdav_la-mod_webdav.lo -lrt -lresolv -lnsl -lsocket /usr/ccs/bin/ld -G -z text -h mod_webdav.so -o .libs/mod_webdav.so .libs/mod_webdav_la-mod_webdav.o -lrt -lresolv -lnsl -lsocket -lc
creating mod_webdav.la (cd .libs && rm -f mod_webdav.la && ln -s ../mod_webdav.la mod_webdav.la)
source='mod_magnet.c' object='mod_magnet_la-mod_magnet.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/opt/lighttpd/lib\""
-I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c -o mod_magnet_la-mod_magnet.lo `test -f 'mod_magnet.c' || echo './'`mod_magnet.c cc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/opt/lighttpd/lib\" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c mod_magnet.c -KPIC -DPIC -o .libs/mod_magnet_la-mod_magnet.o source='mod_magnet_cache.c' object='mod_magnet_la-mod_magnet_cache.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/opt/lighttpd/lib\"" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c -o mod_magnet_la-mod_magnet_cache.lo `test -f 'mod_magnet_cache.c' || echo './'`mod_magnet_cache.c cc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/opt/lighttpd/lib\" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c mod_magnet_cache.c -KPIC -DPIC -o .libs/mod_magnet_la-mod_magnet_cache.o /bin/bash ../libtool --tag=CC --mode=link cc -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -o mod_magnet.la -rpath /opt/lighttpd/lib -module -export-dynamic -avoid-version -no-undefined mod_magnet_la-mod_magnet.lo mod_magnet_la-mod_magnet_cache.lo -lm -lrt -lresolv -lnsl -lsocket /usr/ccs/bin/ld -G -z text -h mod_magnet.so -o .libs/mod_magnet.so .libs/mod_magnet_la-mod_magnet.o .libs/mod_magnet_la-mod_magnet_cache.o -lm -lrt -lresolv -lnsl -lsocket -lc
creating mod_magnet.la
(cd .libs && rm -f mod_magnet.la && ln -s ../mod_magnet.la mod_magnet.la)
source='mod_trigger_b4_dl.c' object='mod_trigger_b4_dl.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/opt/lighttpd/lib\"" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c -o mod_trigger_b4_dl.lo mod_trigger_b4_dl.c
cc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/opt/lighttpd/lib\" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c mod_trigger_b4_dl.c -KPIC -DPIC -o .libs/mod_trigger_b4_dl.o
/bin/bash ../libtool --tag=CC --mode=link cc -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -o mod_trigger_b4_dl.la -rpath /opt/lighttpd/lib -module -export-dynamic -avoid-version -no-undefined mod_trigger_b4_dl.lo -L/opt/sfw/lib -lpcre -lrt -lresolv -lnsl -lsocket
/usr/ccs/bin/ld -G -z text -h mod_trigger_b4_dl.so -o .libs/mod_trigger_b4_dl.so .libs/mod_trigger_b4_dl.o -R/opt/sfw/lib -R/opt/sfw/lib -L/opt/sfw/lib /opt/sfw/lib/libpcre.so -lrt -lresolv -lnsl -lsocket -lc
creating mod_trigger_b4_dl.la
(cd .libs && rm -f mod_trigger_b4_dl.la && ln -s ../mod_trigger_b4_dl.la mod_trigger_b4_dl.la)
source='mod_mysql_vhost.c' object='mod_mysql_vhost_la-mod_mysql_vhost.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/opt/lighttpd/lib\"" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c -o mod_mysql_vhost_la-mod_mysql_vhost.lo `test -f 'mod_mysql_vhost.c' || echo './'`mod_mysql_vhost.c
cc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/opt/lighttpd/lib\" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c mod_mysql_vhost.c -KPIC -DPIC -o .libs/mod_mysql_vhost_la-mod_mysql_vhost.o
/bin/bash ../libtool --tag=CC --mode=link cc -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -o mod_mysql_vhost.la -rpath /opt/lighttpd/lib -module -export-dynamic -avoid-version -no-undefined mod_mysql_vhost_la-mod_mysql_vhost.lo -lrt -lresolv -lnsl -lsocket
/usr/ccs/bin/ld -G -z text -h mod_mysql_vhost.so -o .libs/mod_mysql_vhost.so .libs/mod_mysql_vhost_la-mod_mysql_vhost.o -lrt -lresolv -lnsl -lsocket -lc
creating mod_mysql_vhost.la
(cd .libs && rm -f mod_mysql_vhost.la && ln -s ../mod_mysql_vhost.la mod_mysql_vhost.la)
source='mod_postgresql_vhost.c' object='mod_postgresql_vhost_la-mod_postgresql_vhost.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/opt/lighttpd/lib\"" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c -o mod_postgresql_vhost_la-mod_postgresql_vhost.lo `test -f 'mod_postgresql_vhost.c' || echo './'`mod_postgresql_vhost.c
cc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/opt/lighttpd/lib\" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/opt/sfw/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -c mod_postgresql_vhost.c -KPIC -DPIC -o .libs/mod_postgresql_vhost_la-mod_postgresql_vhost.o
"/usr/include/stdbool.h", line 42: #error: "Use of <stdbool.h> is valid only in a c99 compilation environment."
cc: acomp failed for mod_postgresql_vhost.c
*** Error code 1
make: Fatal error: Command failed for target `mod_postgresql_vhost_la-mod_postgresql_vhost.lo'
Current working directory /root/src/lighttpd/lighty-1.5/lighttpd-1.5.0/src
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
case $f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='valgrind'; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make $local_target) \
|| eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /root/src/lighttpd/lighty-1.5/lighttpd-1.5.0/src
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
case $f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='src doc tests cygwin openwrt'; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make $local_target) \
|| eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /root/src/lighttpd/lighty-1.5/lighttpd-1.5.0
*** Error code 1
make: Fatal error: Command failed for target `all'
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

