Project

General

Profile

Bug #537

Configure fails on solaris 10

Added by Anonymous over 13 years ago. Updated over 11 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
core
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

1.4.10 fails vanilla configure on solaris 10

gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

SunOS host 5.10 Generic_118822-19 sun4u sparc SUNW,Ultra-Enterprise


[/lighttpd-1.4.10]#./configure
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking for a BSD-compatible install... /usr/local/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... egrep
checking for ld used by gcc... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for a BSD-compatible install... /usr/local/bin/install -c
checking for gawk... (cached) gawk
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for AIX... no
checking for library containing strerror... none required
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for function prototypes... yes
checking for string.h... (cached) yes
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/xpg4/bin//nm -p
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 262144
checking command to parse /usr/xpg4/bin//nm -p output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) yes
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking sys/sendfile.h usability... yes
checking sys/sendfile.h presence... yes
checking for sys/sendfile.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking sys/epoll.h usability... no
checking sys/epoll.h presence... no
checking for sys/epoll.h... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/devpoll.h usability... yes
checking sys/devpoll.h presence... yes
checking for sys/devpoll.h... yes
checking sys/filio.h usability... yes
checking sys/filio.h presence... yes
checking for sys/filio.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking sys/port.h usability... yes
checking sys/port.h presence... yes
checking for sys/port.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sys/syslimits.h usability... no
checking sys/syslimits.h presence... no
checking for sys/syslimits.h... no
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking sys/prctl.h usability... no
checking sys/prctl.h presence... no
checking for sys/prctl.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether char is unsigned... no
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for struct tm.tm_gmtoff... no
checking for struct sockaddr_storage... yes
checking for socklen_t... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking return type of signal handlers... void
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for MySQL support... no
checking for LDAP support... no
checking for extended attributes support... no
checking for library containing socket... -lsocket
checking for library containing gethostbyname... -lnsl
checking for library containing hstrerror... -lresolv
checking for library containing dlopen... none required
checking for dlfcn.h... (cached) yes
checking for valgrind... no
checking for OpenSSL... no
checking for perl regular expressions support... yes
checking for pcre-config... /usr/local/bin/pcre-config
checking for pcre_compile in -lpcre... yes
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking for deflate in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for bzip2 support... yes
checking for BZ2_bzCompress in -lbz2... yes
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking for FAM... no
checking for properties in mod_webdav... no
checking for gdbm... no
checking for memcache... no
checking for lua... no
checking for library containing crypt... none required
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking for library containing sendfilev... -lsendfile
checking for dup2... no
checking for getcwd... no
checking for inet_ntoa... no
checking for inet_ntop... no
checking for memset... no
checking for mmap... no
checking for munmap... no
checking for strchr... no
checking for strdup... no
checking for strerror... no
checking for strstr... no
checking for strtol... no
checking for sendfile... no
checking for getopt... no
checking for socket... no
checking for gethostbyname... no
checking for poll... no
checking for sigtimedwait... no
checking for epoll_ctl... no
checking for getrlimit... no
checking for chroot... no
checking for getuid... no
checking for select... no
checking for signal... no
checking for pathconf... no
checking for madvise... no
checking for posix_fadvise... no
checking for posix_madvise... no
checking for writev... no
checking for sigaction... no
checking for sendfile64... no
checking for send_file... no
checking for kqueue... no
checking for port_create... no
checking for localtime_r... no
checking for Large File System support... yes
checking for long... no
checking size of long... 0
checking for off_t... (cached) yes
checking size of off_t... configure: error: cannot compute sizeof (off_t), 77
See `config.log' for more details.

-- Andrew

History

#1

Updated by conny over 13 years ago

From #538:
''Addition to ticket 537 from config.log
''


configure:27969: checking for off_t
configure:28023: result: yes
configure:28026: checking size of off_t
configure:28345: gcc -o conftest -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE  -D_REENTRANT -D__EXTENSIONS__ -I/usr/local/include -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -D_LARGE_FILES  conftest.c -lresolv -lnsl -lsocket  >&5
In file included from /usr/include/iso/stdarg_c99.h:34,
                 from /usr/include/stdarg.h:33,
                 from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/include/stdio.h:14,
                 from conftest.c:79:
/usr/include/sys/feature_tests.h:336:2: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications      require the use of c99" 
configure:28348: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h.  */
#2

Updated by Anonymous over 13 years ago

enforce gnu99 standard:

CC="gcc -std=gnu99" configure

-- rwspeedy

#3

Updated by stbuehler over 11 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

Fixed in r1356 by adding '-std=gnu99' if the compiler is gcc.

Also available in: Atom