Solaris 8 Compiling Problem missing sys/cdefs.h

From: sunmanagers@freehome.ch
Date: Wed Nov 24 2004 - 15:27:38 EST


Hello Sun Managers

I try to compile dansguardian-2.8 on Sun Solaris 8 Ultra 5. I installed the
sunfreeware packages:

gcc-3.3.2-sol8-sparc-local incl. libiconv-1.8-sol8-sparc-local
Addtional make-3.80-sol8-sparc-local.gz

I configured as following:

CC="/usr/local/bin/gcc" MAKE="/usr/local/bin/make" \
        ./configure \
        --prefix=/opt/dansguardian-2.8.0.3 \
        --bindir=/sbin/ \
        --sysconfdir=/etc/ \
        --sysvdir=/init.d/ \
        --cgidir=/cgi-bin/ \
        --mandir=/man/ \
        --logdir=/var/ \
        --logrotatedir=/logrotate.d/ \
        --runas_usr=squid \
        --runas_grp=squid \
        --piddir=/var/run/

loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for POSIXized ISC... no
checking whether /usr/local/bin/make sets ${MAKE}... yes
checking for rm... (cached) /usr/bin/rm
checking for cp... (cached) /usr/bin/cp
checking for mv... (cached) /usr/bin/mv
checking for sed... (cached) /usr/bin/sed
checking for ar... (cached) /usr/ccs/bin/ar
checking for bison... no
checking for byacc... no
checking for a BSD compatible install... autoconf/install-sh -c
checking for flex... (cached) lex
checking for yywrap in -ll... (cached) yes
checking for ranlib... (cached) ranlib
checking for socket in -lsocket... (cached) yes
checking for the ld -export-dynamic flag... no
checking for compiler option to produce PIC... gcc: -fPIC -DPIC -shared
checking for crypt... (cached) yes
checking for gettext... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for sys/param.h... (cached) yes
checking for unistd.h... (cached) yes
checking for errno.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/syslog.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for stddef.h... (cached) yes
checking for getopt.h... (cached) no
checking whether string.h and strings.h may both be included... (cached) yes
checking for socklen_t... yes
checking for stdarg.h... (cached) yes
checking for nlist... (cached) no
checking for nlist in -ldl... (cached) no
checking for nlist in -lelf... (cached) yes
checking for strlcat... (cached) yes
checking for strlcpy... (cached) yes
checking for daemon... (cached) no
checking for libelf/nlist.h... (cached) no
checking for elf/nlist.h... (cached) no
checking for nlist.h... (cached) yes
checking for extra underscores prepended to symbol names... checking whether
gcc needs -traditional... (cached) no
checking for how to include files in Makefile... checking for u_int32_t...
(cached) no
checking for poll... (cached) yes
updating cache ./config.cache
Generating platform specific Makefile...
Generating platform.h....
Generating platform specific start/stop script...
Generating platform specific dansguardian.conf...
Generating platform specific dansguardianf1.conf...
Generating platform specific weightedphraselist...
Generating platform specific bannedphraselist...
Generating platform specific exceptionphraselist...
Generating platform specific logrotation...
Generating platform specific logrotate.d script...
creating ./config.status

The configure looks nice but if I try follwoing I get the errors and I could
not fix it:

/usr/local/bin/make

g++ -O2 -Wall -c String.cpp
In file included from
/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../include/g++-3/s
treambuf.h:36,
                 from
/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../include/g++-3/i
ostream.h:31,
                 from
/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../include/g++-3/i
ostream:6,
                 from String.hpp:25,
                 from String.cpp:20:
/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../include/g++-3/l
ibio.h:59: sys/cdefs.h: No such file or directory
make: *** [String.o] Error 1

I would appriciate if somebody could help me because it is the last step of
my installation and all other would function properly! Many thanks in
advanced for any help.

Andrea
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:46 EDT