[syslog-ng]Problems with "nscache.c" on Solaris 7
Stefano Pasquale
Stefano.Pasquale@italy.sun.com
Wed, 06 Jun 2001 10:14:10 +0200
Hi, I tried to compile syslog-ng.
I downloaded libol-0.2.22, configured, compiled, made and made-install, and
then I downloaded syslog-ng-1.5.6, configured and compiled.
An error occurred with "nscache.c".
I used gcc 2.8.1:
sp87286@shine->/tmp/syslog-ng-1.5.6 > gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.8.1/specs
gcc version 2.8.1
Beware I didn't modify anything in any config/Make-files
May someone help me?
Thanks
Here is the relevant output of what I did.
root@shine:/ # cd /tmp/libol-0.2.22
root@shine:/tmp/libol-0.2.22 # make install
Making install in utils
/bin/sh /tmp/libol-0.2.22/mkinstalldirs /usr/local/bin
.././install-sh -c make_class /usr/local/bin/make_class
Making install in src
/bin/sh /tmp/libol-0.2.22/mkinstalldirs /usr/local/lib
/bin/sh ../libtool --mode=install .././install-sh -c libol.la
/usr/local/lib/libol.la
.././install-sh -c .libs/libol.so.0.0.0 /usr/local/lib/libol.so.0.0.0
(cd /usr/local/lib && rm -f libol.so.0 && ln -s libol.so.0.0.0 libol.so.0)
(cd /usr/local/lib && rm -f libol.so && ln -s libol.so.0.0.0 libol.so)
chmod +x /usr/local/lib/libol.so.0.0.0
.././install-sh -c .libs/libol.lai /usr/local/lib/libol.la
.././install-sh -c .libs/libol.a /usr/local/lib/libol.a
ranlib /usr/local/lib/libol.a
chmod 644 /usr/local/lib/libol.a
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- use the `-RLIBDIR' linker flag
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/sh /tmp/libol-0.2.22/mkinstalldirs /usr/local/include/libol
mkdir /usr/local/include/libol
.././install-sh -c -m 644 abstract_io.h /usr/local/include/libol/abstract_io.h
.././install-sh -c -m 644 alist.h /usr/local/include/libol/alist.h
.././install-sh -c -m 644 format.h /usr/local/include/libol/format.h
.././install-sh -c -m 644 gc.h /usr/local/include/libol/gc.h
.././install-sh -c -m 644 io.h /usr/local/include/libol/io.h
.././install-sh -c -m 644 jpoll.h /usr/local/include/libol/jpoll.h
.././install-sh -c -m 644 list.h /usr/local/include/libol/list.h
.././install-sh -c -m 644 objbase.h /usr/local/include/libol/objbase.h
.././install-sh -c -m 644 objects.h /usr/local/include/libol/objects.h
.././install-sh -c -m 644 objtypes.h /usr/local/include/libol/objtypes.h
.././install-sh -c -m 644 pkt_buffer.h /usr/local/include/libol/pkt_buffer.h
.././install-sh -c -m 644 queue.h /usr/local/include/libol/queue.h
.././install-sh -c -m 644 read_line.h /usr/local/include/libol/read_line.h
.././install-sh -c -m 644 resource.h /usr/local/include/libol/resource.h
.././install-sh -c -m 644 stream_buffer.h
/usr/local/include/libol/stream_buffer.h
.././install-sh -c -m 644 werror.h /usr/local/include/libol/werror.h
.././install-sh -c -m 644 xalloc.h /usr/local/include/libol/xalloc.h
.././install-sh -c -m 644 command.h /usr/local/include/libol/command.h
.././install-sh -c -m 644 io_commands.h /usr/local/include/libol/io_commands.h
.././install-sh -c -m 644 abstract_io.h.x
/usr/local/include/libol/abstract_io.h.x
.././install-sh -c -m 644 alist.h.x /usr/local/include/libol/alist.h.x
.././install-sh -c -m 644 io.h.x /usr/local/include/libol/io.h.x
.././install-sh -c -m 644 list.h.x /usr/local/include/libol/list.h.x
.././install-sh -c -m 644 read_line.h.x /usr/local/include/libol/read_line.h.x
.././install-sh -c -m 644 resource.h.x /usr/local/include/libol/resource.h.x
.././install-sh -c -m 644 io_commands.h.x
/usr/local/include/libol/io_commands.h.x
.././install-sh -c -m 644 command.h.x /usr/local/include/libol/command.h.x
.././install-sh -c -m 644 queue.h.x /usr/local/include/libol/queue.h.x
.././install-sh -c -m 644 olconfig.h /usr/local/include/libol/olconfig.h
/bin/sh /tmp/libol-0.2.22/mkinstalldirs /usr/local/bin
./install-sh -c libol-config /usr/local/bin/libol-config
root@shine:/tmp/libol-0.2.22 #
root@shine:/tmp/libol-0.2.22 #
root@shine:/tmp/libol-0.2.22 #
sp87286@shine->/tmp/syslog-ng-1.5.6 > echo $LD_LIBRARY_PATH
/usr/dt/lib:/usr/local/lib:/usr/dt/lib:/usr/local/lib:
sp87286@shine->/tmp/syslog-ng-1.5.6 > ./configure
loading cache ./config.cache
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether build environment is sane... yes
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 gcc option to accept ANSI C... (cached) none needed
checking for bison... (cached) bison -y
checking how to run the C preprocessor... (cached) gcc -E
checking for flex... (cached) flex
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for ANSI C header files... (cached) yes
checking for malloc.h... (cached) yes
checking for unistd.h... (cached) yes
checking for door.h... (cached) yes
checking for stropts.h... (cached) yes
checking for sys/strlog.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for sys/klog.h... (cached) no
checking for working const... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for modern utmp... (cached) yes
checking whether to compile klogctl... no
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 4
checking for I_CONSLOG... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for vprintf... (cached) yes
checking for door_create in -ldoor... (cached) yes
checking for select... (cached) yes
checking for snprintf... (cached) yes
checking for vsnprintf... (cached) yes
checking for strerror... (cached) yes
checking for inet_aton... (cached) no
checking for strncpy... (cached) yes
checking for getutent... (cached) yes
checking for getopt_long... (cached) no
checking for strcasecmp... (cached) yes
checking for strptime... (cached) yes
checking for pthread.h... (cached) yes
checking for pthread_create in -lpthread... (cached) yes
checking whether to enable Sun STREAMS support... yes
checking whether to enable Sun door support... yes
checking libol version >= 0.2.22... ok
creating ./config.status
creating Makefile
creating src/Makefile
creating src/tests/Makefile
creating doc/Makefile
creating doc/sgml/Makefile
creating contrib/Makefile
creating utils/Makefile
creating syslog-ng.spec
creating src/config.h
src/config.h is unchanged
sp87286@shine->/tmp/syslog-ng-1.5.6 >
sp87286@shine->/tmp/syslog-ng-1.5.6 > make
Making all in src
make all-recursive
Making all in .
gcc -DHAVE_CONFIG_H -I. -I/tmp/syslog-ng-1.5.6/src -I. -O2 -Wall
-I/usr/local/include/libol -D_GNU_SOURCE -c nscache.c
nscache.c: In function `nscache_new':
nscache.c:112: `INADDR_NONE' undeclared (first use in this function)
nscache.c:112: (Each undeclared identifier is reported only once
nscache.c:112: for each function it appears in.)
*** Error code 1
make: Fatal error: Command failed for target `nscache.o'
Current working directory /tmp/syslog-ng-1.5.6/src
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /tmp/syslog-ng-1.5.6/src
*** Error code 1
make: Fatal error: Command failed for target `all-recursive-am'
Current working directory /tmp/syslog-ng-1.5.6/src
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
sp87286@shine->/tmp/syslog-ng-1.5.6 >
--
Stefano Pasquale