[syslog-ng]New user of syslog-ng..problems with installation

syslog-ng@lists.balabit.hu syslog-ng@lists.balabit.hu
Wed, 17 Sep 2003 09:44:54 +0200


It's Red Hat 9 and i will get the following output:

First i type "./configure && make && make install" and get something like
that:

loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
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) no
checking for stropts.h... (cached) yes
checking for sys/strlog.h... (cached) no
checking for stdarg.h... (cached) yes
checking for sys/klog.h... (cached) yes
checking for arpa/nameser.h... (cached) yes
checking for tcpd.h... (cached) yes
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... yes
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 4
checking for I_CONSLOG... (cached) no
checking for O_LARGEFILE... (cached) yes
checking for res_init in <resolv.h>... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for vprintf... (cached) yes
checking for res_init in -lresolv... (cached) no
checking for __res_init in -lresolv... (cached) yes
checking for door_create in -ldoor... (cached) no
checking for socket in -lsocket... (cached) no
checking for gethostbyname in -lnsl... (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) yes
checking for strncpy... (cached) yes
checking for getutent... (cached) yes
checking for getopt_long... (cached) yes
checking for strcasecmp... (cached) yes
checking for strptime... (cached) yes
checking for TCP wrapper library... (cached) -lwrap
checking whether to enable Sun STREAMS support... no
checking whether to enable Sun door support... no
checking whether to enable TCP wrapper support... no
checking libol version >= 0.3.9... which: no libol-config in
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
./configure: line 1: libol-config: command not found
./configure: line 1: libol-config: command not found
./configure: line 1: libol-config: command not found
./configure: line 3084: test: : integer expression expected
ok
creating ./config.status
creating Makefile
creating src/Makefile
creating src/tests/Makefile
creating doc/Makefile
creating doc/sgml/Makefile
creating contrib/Makefile
creating syslog-ng.spec
creating src/config.h
src/config.h is unchanged
Making all in src
make[1]: Entering directory `/usr/local/syslog-ng-1.6.0rc3/src'
make  all-recursive
make[2]: Entering directory `/usr/local/syslog-ng-1.6.0rc3/src'
Making all in .
make[3]: Entering directory `/usr/local/syslog-ng-1.6.0rc3/src'
gcc -DHAVE_CONFIG_H -I. -I/usr/local/syslog-ng-1.6.0rc3/src -I.     -g -O2 -Wall  -D_GNU_SOURCE -c main.c
In file included from main.c:26:
syslog-ng.h:31:21: objects.h: No such file or directory
In file included from cfgfile.h:29,
                 from main.c:27:
sources.h:30:23: read_line.h: No such file or directory
In file included from sources.h:32,
                 from cfgfile.h:29,
                 from main.c:27:
log.h:30:16: io.h: No such file or directory
In file included from sources.h:32,
                 from cfgfile.h:29,
                 from main.c:27:
log.h:39: parse error before "UINT32"
log.h:39: warning: no semicolon at end of struct or union
log.h:43: parse error before "pri"
log.h:43: warning: type defaults to `int' in declaration of `pri'
log.h:43: warning: data definition has no type or storage class
log.h:44: parse error before "flags"
log.h:44: warning: type defaults to `int' in declaration of `flags'
log.h:44: warning: data definition has no type or storage class
log.h:51: parse error before '}' token
In file included from log.h:54,
                 from sources.h:32,
                 from cfgfile.h:29,
                 from main.c:27:
log.h.x:4: field `super' has incomplete type
log.h.x:9: confused by earlier errors, bailing out
make[3]: *** [main.o] Error 1
make[3]: Leaving directory `/usr/local/syslog-ng-1.6.0rc3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/syslog-ng-1.6.0rc3/src'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/usr/local/syslog-ng-1.6.0rc3/src'
make: *** [all-recursive] Error 1


After that i type "./configure" and the messages i will get is:

loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
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) no
checking for stropts.h... (cached) yes
checking for sys/strlog.h... (cached) no
checking for stdarg.h... (cached) yes
checking for sys/klog.h... (cached) yes
checking for arpa/nameser.h... (cached) yes
checking for tcpd.h... (cached) yes
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... yes
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 4
checking for I_CONSLOG... (cached) no
checking for O_LARGEFILE... (cached) yes
checking for res_init in <resolv.h>... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for vprintf... (cached) yes
checking for res_init in -lresolv... (cached) no
checking for __res_init in -lresolv... (cached) yes
checking for door_create in -ldoor... (cached) no
checking for socket in -lsocket... (cached) no
checking for gethostbyname in -lnsl... (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) yes
checking for strncpy... (cached) yes
checking for getutent... (cached) yes
checking for getopt_long... (cached) yes
checking for strcasecmp... (cached) yes
checking for strptime... (cached) yes
checking for TCP wrapper library... (cached) -lwrap
checking whether to enable Sun STREAMS support... no
checking whether to enable Sun door support... no
checking whether to enable TCP wrapper support... no
checking libol version >= 0.3.9... which: no libol-config in
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
./configure: line 1: libol-config: command not found
./configure: line 1: libol-config: command not found
./configure: line 1: libol-config: command not found
./configure: line 3084: test: : integer expression expected
ok
creating ./config.status
creating Makefile
creating src/Makefile
creating src/tests/Makefile
creating doc/Makefile
creating doc/sgml/Makefile
creating contrib/Makefile
creating syslog-ng.spec
creating src/config.h
src/config.h is unchanged

And "make" shows me:

Making all in src
make[1]: Entering directory `/usr/local/syslog-ng-1.6.0rc3/src'
make  all-recursive
make[2]: Entering directory `/usr/local/syslog-ng-1.6.0rc3/src'
Making all in .
make[3]: Entering directory `/usr/local/syslog-ng-1.6.0rc3/src'
gcc -DHAVE_CONFIG_H -I. -I/usr/local/syslog-ng-1.6.0rc3/src -I.     -g -O2 -Wall  -D_GNU_SOURCE -c main.c
In file included from main.c:26:
syslog-ng.h:31:21: objects.h: No such file or directory
In file included from cfgfile.h:29,
                 from main.c:27:
sources.h:30:23: read_line.h: No such file or directory
In file included from sources.h:32,
                 from cfgfile.h:29,
                 from main.c:27:
log.h:30:16: io.h: No such file or directory
In file included from sources.h:32,
                 from cfgfile.h:29,
                 from main.c:27:
log.h:39: parse error before "UINT32"
log.h:39: warning: no semicolon at end of struct or union
log.h:43: parse error before "pri"
log.h:43: warning: type defaults to `int' in declaration of `pri'
log.h:43: warning: data definition has no type or storage class
log.h:44: parse error before "flags"
log.h:44: warning: type defaults to `int' in declaration of `flags'
log.h:44: warning: data definition has no type or storage class
log.h:51: parse error before '}' token
In file included from log.h:54,
                 from sources.h:32,
                 from cfgfile.h:29,
                 from main.c:27:
log.h.x:4: field `super' has incomplete type
log.h.x:9: confused by earlier errors, bailing out
make[3]: *** [main.o] Error 1
make[3]: Leaving directory `/usr/local/syslog-ng-1.6.0rc3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/syslog-ng-1.6.0rc3/src'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/usr/local/syslog-ng-1.6.0rc3/src'
make: *** [all-recursive] Error 1


It's a closed book for me - sorry!
Please help...

Best regards

Christoph Eckart

European Information Management
CC CompuNet AG & Co. oHG
A part of Computacenter plc
Europaring 34-40, 50170 Kerpen, Germany
Phone: +49 (0)2273 597-68072, ,
E-Mail : Christoph.Eckart@COMPUTACENTER.COM
Visit us on the Internet: http://www.computacenter.com


This email is confidential. If you are not the intended recipient,
you must not disclose or use the information contained in it.
If you have received this mail in error, please tell us
immediately by return email and delete the document.