View previous topic :: View next topic |
Author |
Message |
predominant n00b
Joined: 22 Nov 2005 Posts: 8 Location: Newcastle, Australia
|
Posted: Tue Nov 22, 2005 3:22 am Post subject: syslog-ng make error - undefined reference to `yywrap' |
|
|
I encountered the following error during an installation of Gentoo 2005.1 inside a 32bit VMWare Virtual Machine:
Code: | make[3]: Entering directory `/usr/src/syslog-ng-1.4.14/src'
gcc -O2 -Wall -I/usr/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 utils.o syslog-names.o /usr/lib/libol.a -lnsl
cfg-lex.o: In function `yylex':
cfg-lex.o(.text+0x4ae): undefined reference to `yywrap'
cfg-lex.o: In function `input':
cfg-lex.o(.text+0xa28): undefined reference to `yywrap'
collect2: ld returned 1 exit status
make[3]: *** [syslog-ng] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive-am] Error 2
make: *** [all-recursive] Error 1 |
I managed to resolve this problem by re-emerging GCC and Flex.
I might note that the re-emerge of GCC may not be entirely necessary, but I always use it as a first step.
I hope this information helps others. |
|
Back to top |
|
|
predominant n00b
Joined: 22 Nov 2005 Posts: 8 Location: Newcastle, Australia
|
Posted: Tue Nov 22, 2005 3:49 am Post subject: |
|
|
Additional problems I have encountered required an emerge of:
This is in addition to the previously mentioned list. |
|
Back to top |
|
|
|