Project

General

Profile

Actions

Bug #332

closed

Unable to build 1.4.6 on x86 Solaris 10

Added by Anonymous about 17 years ago. Updated over 15 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

Description

(root)host-2#uname -a
SunOS host-2 5.10 Generic i86pc i386 i86pc
(root)host-2#gcc -v
Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls --disable-libgcj
Thread model: posix
gcc version 3.3.6


if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/usr/local/lighttpd/lib\"" -I. -I. -I..   -D_REENTRANT -D__EXTENSIONS__ -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES  -g -O2 -Wall -W -Wshadow -pedantic -MT mod_ssi.lo -MD -MP -MF ".deps/mod_ssi.Tpo" -c -o mod_ssi.lo mod_ssi.c; \
then mv -f ".deps/mod_ssi.Tpo" ".deps/mod_ssi.Plo"; else rm -f ".deps/mod_ssi.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/usr/local/lighttpd/lib\" -I. -I. -I.. -D_REENTRANT -D__EXTENSIONS__ -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -Wall -W -Wshadow -pedantic -MT mod_ssi.lo -MD -MP -MF .deps/mod_ssi.Tpo -c mod_ssi.c  -fPIC -DPIC -o .libs/mod_ssi.o
mod_ssi.c: In function `process_ssi_stmt':
mod_ssi.c:729: error: `FIONREAD' undeclared (first use in this function)
mod_ssi.c:729: error: (Each undeclared identifier is reported only once
mod_ssi.c:729: error: for each function it appears in.)
make[2]: *** [mod_ssi.lo] Error 1
make[2]: Leaving directory `/usr/local/src/lighttpd-1.4.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/lighttpd-1.4.6'
make: *** [all] Error 2

-- toni.viemero

Actions #1

Updated by Anonymous about 17 years ago

Having the same issue with Solaris 8 SPARC.

-- dev.crash

Actions #2

Updated by Anonymous about 17 years ago

Finally did some research, found similar issues with other software compiling with gcc on solaris... I fixed my issue by adding the following to mod_ssi.c file.

Changes made:

file src/mod_ssi.c


#include "sys-socket.h" 
/* Added filio.h */
#include <sys/filio.h>

And now compiles fine.

David.

-- dev.crash

Actions #3

Updated by jan about 17 years ago

  • Status changed from New to Assigned

add

#include <sys/ioctl.h>

at the top of the file and see if it works.

Actions #4

Updated by Anonymous about 17 years ago

Adding sys/filio.h worked, not sys/ioctl.h.

-- toni.viemero

Actions #5

Updated by jan about 17 years ago

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

fixed in r790

Actions #6

Updated by Anonymous about 17 years ago

With Lighttpd 1.4.6 this is still a problem with Solaris 10 Sparc. You have to add the header file filio.h to make it go.

-- aly.dharshi

Actions #8

Updated by Anonymous about 17 years ago

Jan, spun this build on my sparc box aka just a ./configure and gmake, it built a-okay:

./configure --prefix=/opt/lighttpd/lighttpd-1.4.7 --with-lfs --disable-ipv6 --with-openssl --with-pcre --with-bzip2 --with-webdav-props --with-gdbm --with-memcache --with-valgrind --with-attr

Thanks for your help. Will install it and make it go. Thanks once again.

-- aly.dharshi

Actions #9

Updated by jan about 17 years ago

the final 1.4.7 has been released.

Actions

Also available in: Atom