Solaris 8 Compiling Problem missing endian.h
sunmanagers_at_freehome.ch
Date: 11/25/04
- Previous message: Aaron Taylor: "Directory Server Group Problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <sunmanagers@sunmanagers.org> Date: Thu, 25 Nov 2004 02:22:32 +0100
Hello Sun Managers
I could solve the problem but I had a next problem with zlib! This I could
also solve but now on the last compile position I have a problem which I
could not solve because I don't know what it is. To solve the problems with
compiling and zlib I installed following sunfreeware packages and did
following:
autoconf-2.57-sol9-sparc-local
automake-1.7.2-sol9-sparc-local
bison-1.75-sol9-sparc-local
flex-2.5.4a-sol9-sparc-local
gcc-3.3.2-sol9-sparc-local
libiconv-1.8-sol9-sparc-local
make-3.80-sol9-sparc-local
ncurses-5.3-sol9-sparc-local
texinfo-4.2-sol9-sparc-local
m4-1.4.1-sol8-sparc-local.gz
# mkdir /root/dansguardian
# cd /root/dansguardian
# mv dansguardian-2.8.0.3.source.tar.gz ./
# gzip -dc dansguardian-2.8.0.3.source.tar.gz | tar xvf -
# mkdir /root/zlib
# cd /root/zlib
# mv zlib-1.2.1.tar.gz ./
# gzip -dc zlib-1.2.1.tar.gz | tar xvf -
# cd /root/zlib/zlib-1.2.1
# CC="/usr/local/bin/gcc" CFLAGS="-O3" MAKE=/usr/local/bin/make \
./configure \
--prefix=/opt/zlib-1.2.1 \
--exec_prefix=/opt/zlib-1.2.1
# make
# make install
# ln -s /opt/zlib-1.2.1/lib/libz.a /usr/local/lib/libz.a
# ln -s /opt/zlib-1.2.1/lib/libz.a /usr/lib/libz.a
# ln -s /opt/zlib-1.2.1/include/zlib.h /usr/include/zlib.h
# ln -s /opt/zlib-1.2.1/include/zconf.h /usr/include/zconf.h
# cd /root/dansguardian/dansguardian-2.8.0.3
# 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/
creating cache ./config.cache
checking for gcc... 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... yes
checking whether gcc accepts -g... yes
checking for POSIXized ISC... no
checking whether /usr/local/bin/make sets ${MAKE}... yes
checking for rm... /usr/bin/rm
checking for cp... /usr/bin/cp
checking for mv... /usr/bin/mv
checking for sed... /usr/bin/sed
checking for ar... no
checking for bison... bison -y
checking for a BSD compatible install... autoconf/install-sh -c
checking for flex... flex
checking for yywrap in -lfl... yes
checking for ranlib... :
checking for socket in -lsocket... yes
checking for the ld -export-dynamic flag... no
checking for compiler option to produce PIC... gcc: -fPIC -DPIC -shared
checking for crypt... yes
checking for gettext... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/param.h... yes
checking for unistd.h... yes
checking for errno.h... yes
checking for string.h... yes
checking for strings.h... yes
checking for sys/syslog.h... yes
checking for stdlib.h... yes
checking for stddef.h... yes
checking for getopt.h... no
checking whether string.h and strings.h may both be included... yes
checking for socklen_t... yes
checking for stdarg.h... yes
checking for nlist... no
checking for nlist in -ldl... no
checking for nlist in -lelf... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for daemon... no
checking for libelf/nlist.h... no
checking for elf/nlist.h... no
checking for nlist.h... yes
checking for extra underscores prepended to symbol names... checking whether
gcc needs -traditional... no
checking for how to include files in Makefile... checking for u_int32_t...
no
checking for poll... 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
# /usr/local/bin/make
g++ -O2 -Wall -c String.cpp
g++ -O2 -Wall -c OptionContainer.cpp
g++ -O2 -Wall -c FDTunnel.cpp
g++ -O2 -Wall -c ConnectionHandler.cpp
g++ -O2 -Wall -c DataBuffer.cpp
g++ -O2 -Wall -c HTTPHeader.cpp
g++ -O2 -Wall -c NaughtyFilter.cpp
g++ -O2 -Wall -c RegExp.cpp
g++ -O2 -Wall -c Socket.cpp
g++ -O2 -Wall -c FatController.cpp
g++ -O2 -Wall -c UDSocket.cpp
g++ -O2 -Wall -c SysV.cpp
g++ -O2 -Wall -c ListContainer.cpp
g++ -O2 -Wall -c Ident.cpp
g++ -O2 -Wall -c HTMLTemplate.cpp
g++ -O2 -Wall -c LanguageContainer.cpp
g++ -O2 -Wall -c DynamicURLList.cpp
g++ -O2 -Wall -c ImageContainer.cpp
g++ -O2 -Wall -c FOptionContainer.cpp
g++ -O2 -Wall -c ListManager.cpp
g++ -O2 -Wall -c md5.cpp
md5.cpp:33:23: <endian.h>: No such file or directory
make: *** [md5.o] Error 1
After md5 position the compilation would be finished but I dont know
something about endian.h ! It seems something with encryption etc. Could
anybody help me....is there another package missing or how could I solve the
last error. Another solution would be a precompiled package for
dansguardian-2.8.0.3!
Many many thanks for the help and if I could finish I would summarize the
whole installation!
Andrea
> 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
- Previous message: Aaron Taylor: "Directory Server Group Problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|