[syslog-ng]missing flex?

syslog-ng@lists.balabit.hu syslog-ng@lists.balabit.hu
Tue, 17 Feb 2004 12:20:13 +0100


hi,
i'm trying to install syslog-ng1.6.2 with libol0.3.13.
libol works fine - my problem is syslog-ng. i get the error
below after 'make'. i thought flex was missing but after
installing flex i got the same error.
i read in the syslog-ng archive about a similar problem
and someone wrote that the problem ist the line "LEXLIB"
in the "src/Makefile" which should be set to "-lfl" but i don't
know what i have to change the line to.
my line looks like:
"LEX = /usr/local/src/syslog-ng/missing flex"

any suggestions?




"./configure"
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-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... 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) /usr/local/src/syslog-ng/missing flex
checking for flex... (cached) /usr/local/src/syslog-ng/missing flex
checking for yywrap in -ll... (cached) no
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) no
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.13... 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



"make"
Making all in src
make[1]: Entering directory `/usr/local/src/syslog-ng/src'
make  all-recursive
make[2]: Entering directory `/usr/local/src/syslog-ng/src'
Making all in .
make[3]: Entering directory `/usr/local/src/syslog-ng/src'
gcc  -g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE  -o syslog-ng
main.o sources.o center.o filters.o destinations.o log.o cfgfile.o
cfg-grammar.o cfg-lex.o affile.o afsocket.o afunix.o afinet.o afinter.o
afuser.o afstreams.o afprogram.o afremctrl.o nscache.o utils.o
syslog-names.o macros.o  -lnsl -lresolv   /usr/local/lib/libol.a -lnsl
cfg-lex.o(.text+0x3ba): In function `yylex':
/usr/local/src/syslog-ng/src/lex.yy.c:1054: undefined reference to `yywrap'
cfg-lex.o(.text+0xa07): In function `input':
/usr/local/src/syslog-ng/src/lex.yy.c:1403: undefined reference to `yywrap'
collect2: ld returned 1 exit status
make[3]: *** [syslog-ng] Error 1
make[3]: Leaving directory `/usr/local/src/syslog-ng/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/syslog-ng/src'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/usr/local/src/syslog-ng/src'
make: *** [all-recursive] Error 1


Best regards

Christoph Eckart