Solaris 8 Compiling Problem missing sys/cdefs.h

sunmanagers_at_freehome.ch
Date: 11/24/04

  • Next message: Geon Reuben: "Disksuite on Solaris x86 platform"
    To: <sunmanagers@sunmanagers.org>
    Date: Wed, 24 Nov 2004 21:27:38 +0100
    
    

    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


  • Next message: Geon Reuben: "Disksuite on Solaris x86 platform"

    Relevant Pages

    • Solaris 8 Compiling Problem missing endian.h
      ... checking for gcc... ... checking whether the C compiler is a cross-compiler... ... Generating platform specific start/stop script... ... Generating platform specific logrotate.d script... ...
      (SunManagers)
    • Compiler error
      ... Any tips on what's missing for compliling??, ... loading cache ./config.cache ... checking for gcc... ... checking whether the C compiler works... ...
      (Ubuntu)
    • Re: Whats the story with the "end of XP"?
      ... Support gives them access to the larger body ... The same compiler suite may be "best" in both ... In the case of ByteCraft compilers, you are truly expert in your field, you work closely and rapidly with customers if there are any issues, and you have top class testing and quality control. ... understanding the inner workings of a relatively simple compiler like GCC ...
      (comp.arch.embedded)
    • [RFC][PATCH-2.6] Clean up and merge compiler-*.h
      ... the kernel headers in include/linux to include/linux-abi. ... * Common definitions for all gcc versions go here. ... -/* Some compiler specific definitions are overwritten here ...
      (Linux-Kernel)
    • Re: LPC900/80C51 Compiler Toolchain
      ... >> supported by GCC, and so they invest. ... > if they already have their in-house compiler. ... one of the main companies in the Symbian consortium ... vendor to provide a good compiler for Atmel AVRs and eventually became ...
      (comp.arch.embedded)