Syslog-ng fails during build
Hi, I have googled and I still cant find an answer to this, wondering if anyone here knows. I am trying to build a syslog-ng RPM on Red Hat AS3, however, I get the following error: gcc -O2 -g -march=i386 -mcpu=i686 -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 afremctrl.o nscache.o utils.o syslog-names.o macros.o -lnsl -lresolv -lwrap /usr/lib/libol.a -lnsl cfg-lex.o(.text+0x42f): In function `yylex': /usr/src/redhat/BUILD/syslog-ng-1.6.5/src/cfg-lex.c:1123: undefined reference to `yywrap' cfg-lex.o(.text+0xbdf): In function `input': /usr/src/redhat/BUILD/syslog-ng-1.6.5/src/cfg-lex.c:1450: undefined reference to `yywrap' collect2: ld returned 1 exit status make[3]: *** [syslog-ng] Error 1 make[3]: Leaving directory `/usr/src/redhat/BUILD/syslog-ng-1.6.5/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/redhat/BUILD/syslog-ng-1.6.5/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/redhat/BUILD/syslog-ng-1.6.5/src' make: *** [all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.65939 (%build) I built libol and libol-devel RPMs and they are both installed: libol-0.3.15-1 libol-devel-0.3.15-1 Any ideas? -- Phillip Cockrell [pcockrel@rackspace.com] RTS System Administrator Rackspace Managed Hosting Office: (210) 447-4161 Cell: (210) 618-6229 Pager: page.pcockrel@rackspace.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Phillip, | gcc -O2 -g -march=i386 -mcpu=i686 -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 afremctrl.o nscache.o utils.o | syslog-names.o macros.o -lnsl -lresolv -lwrap /usr/lib/libol.a -lnsl | cfg-lex.o(.text+0x42f): In function `yylex': | /usr/src/redhat/BUILD/syslog-ng-1.6.5/src/cfg-lex.c:1123: undefined | reference to `yywrap' | cfg-lex.o(.text+0xbdf): In function `input': | /usr/src/redhat/BUILD/syslog-ng-1.6.5/src/cfg-lex.c:1450: undefined | reference to `yywrap' | collect2: ld returned 1 exit status You need to install the flex rpm. | I built libol and libol-devel RPMs and they are both installed: | | libol-0.3.15-1 | libol-devel-0.3.15-1 Better yet, you can use the following syslog-ng 1.6.6 SRPM: https://bugzilla.fedora.us/show_bug.cgi?id=1332 The libol RPMs (and SRPM) are already available in the Fedora.US (RH9, FC1, and FC2) and Fedora.Extras (FC-3) mirrors. Regards, jpo - -- José Pedro Oliveira * mailto: jpo@di.uminho.pt * http://gsd.di.uminho.pt/~jpo * * gpg fingerprint = F9B6 8D87 859D 1C94 48F0 84C0 9749 9EB5 91BD 851B * -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFCMJ5Al0metZG9hRsRAv4lAKDoSl4cn2UvzqhXIoZhvfVjeRs1zQCcD2jl eVFGdB5nPClPiTmaf4sv54U= =9E+Y -----END PGP SIGNATURE-----
On 3/10/05 1:21 PM, "Jose Pedro Oliveira" <jpo@di.uminho.pt> wrote:
-----BEGIN PGP SIGNED MESSAGE----- <large snip>
Thank you. I installed flex and after tweaking the SPEC file a wee bit, I got the RPM to build. -Phil
Regards, jpo - -- José Pedro Oliveira * mailto: jpo@di.uminho.pt * http://gsd.di.uminho.pt/~jpo * * gpg fingerprint = F9B6 8D87 859D 1C94 48F0 84C0 9749 9EB5 91BD 851B * -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFCMJ5Al0metZG9hRsRAv4lAKDoSl4cn2UvzqhXIoZhvfVjeRs1zQCcD2jl eVFGdB5nPClPiTmaf4sv54U= =9E+Y -----END PGP SIGNATURE----- _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
participants (2)
-
Jose Pedro Oliveira
-
Phillip Cockrell