RE: [syslog-ng] undefined reference to `libnet_init'
Hello List, I am trying to install syslog-ng 2.0.4 on RHEL 4 (on top of VMWARE) and I am getting the same error message while "make" the software. ============================================= make all-recursive make[1]: Entering directory `/tmp/syslog-ng-2.0.4' Making all in src make[2]: Entering directory `/tmp/syslog-ng-2.0.4/src' gcc -g -O2 -Wall -g -o syslog-ng main.o libsyslog-ng.a -lnsl -lrt -Wl,-Bstatic -lfl -lglib-2.0 -L/usr/local/lib -levtlog -lwrap -Wl,-Bdynamic libsyslog-ng.a(afinet.o)(.text+0x776): In function `afinet_dd_init': /tmp/syslog-ng-2.0.4/src/afinet.c:338: undefined reference to `libnet_init' libsyslog-ng.a(afinet.o)(.text+0x895): In function `afinet_dd_queue': /tmp/syslog-ng-2.0.4/src/afinet.c:493: undefined reference to `libnet_write' libsyslog-ng.a(afinet.o)(.text+0x8d5):/tmp/syslog-ng-2.0.4/src/afinet.c:505: undefined reference to `libnet_geterror' libsyslog-ng.a(afinet.o)(.text+0x96f):/tmp/syslog-ng-2.0.4/src/afinet.c:364: undefined reference to `libnet_clear_packet' libsyslog-ng.a(afinet.o)(.text+0x9b3):/tmp/syslog-ng-2.0.4/src/afinet.c:366: undefined reference to `libnet_build_udp' libsyslog-ng.a(afinet.o)(.text+0x9ef):/tmp/syslog-ng-2.0.4/src/afinet.c:377: undefined reference to `libnet_build_ipv4' libsyslog-ng.a(afinet.o)(.text+0xa58):/tmp/syslog-ng-2.0.4/src/afinet.c:426: undefined reference to `libnet_clear_packet' libsyslog-ng.a(afinet.o)(.text+0xa98):/tmp/syslog-ng-2.0.4/src/afinet.c:428: undefined reference to `libnet_build_udp' libsyslog-ng.a(afinet.o)(.text+0xab5):/tmp/syslog-ng-2.0.4/src/afinet.c:442: undefined reference to `libnet_toggle_checksum' libsyslog-ng.a(afinet.o)(.text+0xaf6):/tmp/syslog-ng-2.0.4/src/afinet.c:444: undefined reference to `libnet_build_ipv6' collect2: ld returned 1 exit status make[2]: *** [syslog-ng] Error 1 make[2]: Leaving directory `/tmp/syslog-ng-2.0.4/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/syslog-ng-2.0.4' make: *** [all] Error 2 ========================================= Attaching config.log too for your reference. Thanks And Regards, Tapas Mallick ____________________________________________________________________________________ Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/
On Sat, 2007-06-02 at 23:59 -0700, Tapas Mallick wrote:
Hello List,
I am trying to install syslog-ng 2.0.4 on RHEL 4 (on top of VMWARE) and I am getting the same error message while "make" the software.
Disable spoof-source using the --disable-spoof-source configure option. I've already fixed this in my git archive, so please try the latest snapshot to see whether it detects libnet properly. -- Bazsi
Hello, It's working.I have executed Make and Make Install without getting any error message. I have there after copied /tmp/syslog-ng-2.x.x/doc/example/syslog-ng.conf.sample into /usr/local/etc/ as syslog-ng.conf and start the program with /usr/local/sbin/syslog-ng. Though ps and netstat shows the syslog-ng process and the port it is listening on(UDP 514), I am not sure about the exact procedure to do next. It will be really helpful for newcomer like us, if the detail and current documentation is given in the package/website(Installation and getting started documentation on the website is much older and sometimes not applicable). Thanks for the sharp response. Thanks and Regards, Tapas Mallick --- Balazs Scheidler <bazsi@balabit.hu> wrote:
On Sat, 2007-06-02 at 23:59 -0700, Tapas Mallick wrote:
Hello List,
I am trying to install syslog-ng 2.0.4 on RHEL 4 (on top of VMWARE) and I am getting the same error message while "make" the software.
Disable spoof-source using the --disable-spoof-source configure option.
I've already fixed this in my git archive, so please try the latest snapshot to see whether it detects libnet properly.
-- Bazsi
_______________________________________________ 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
____________________________________________________________________________________ 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news
i hope you are doing this process for the sake of building a rpm for RHEL. why install using the configure/make/make install process on a production server i cannot understand. On Sat, 2007-06-02 at 23:59 -0700, Tapas Mallick wrote:
Hello List,
I am trying to install syslog-ng 2.0.4 on RHEL 4 (on top of VMWARE) and I am getting the same error message while "make" the software.
============================================= make all-recursive make[1]: Entering directory `/tmp/syslog-ng-2.0.4' Making all in src make[2]: Entering directory `/tmp/syslog-ng-2.0.4/src' gcc -g -O2 -Wall -g -o syslog-ng main.o libsyslog-ng.a -lnsl -lrt -Wl,-Bstatic -lfl -lglib-2.0 -L/usr/local/lib -levtlog -lwrap -Wl,-Bdynamic libsyslog-ng.a(afinet.o)(.text+0x776): In function `afinet_dd_init': /tmp/syslog-ng-2.0.4/src/afinet.c:338: undefined reference to `libnet_init' libsyslog-ng.a(afinet.o)(.text+0x895): In function `afinet_dd_queue': /tmp/syslog-ng-2.0.4/src/afinet.c:493: undefined reference to `libnet_write' libsyslog-ng.a(afinet.o)(.text+0x8d5):/tmp/syslog-ng-2.0.4/src/afinet.c:505: undefined reference to `libnet_geterror' libsyslog-ng.a(afinet.o)(.text+0x96f):/tmp/syslog-ng-2.0.4/src/afinet.c:364: undefined reference to `libnet_clear_packet' libsyslog-ng.a(afinet.o)(.text+0x9b3):/tmp/syslog-ng-2.0.4/src/afinet.c:366: undefined reference to `libnet_build_udp' libsyslog-ng.a(afinet.o)(.text+0x9ef):/tmp/syslog-ng-2.0.4/src/afinet.c:377: undefined reference to `libnet_build_ipv4' libsyslog-ng.a(afinet.o)(.text+0xa58):/tmp/syslog-ng-2.0.4/src/afinet.c:426: undefined reference to `libnet_clear_packet' libsyslog-ng.a(afinet.o)(.text+0xa98):/tmp/syslog-ng-2.0.4/src/afinet.c:428: undefined reference to `libnet_build_udp' libsyslog-ng.a(afinet.o)(.text+0xab5):/tmp/syslog-ng-2.0.4/src/afinet.c:442: undefined reference to `libnet_toggle_checksum' libsyslog-ng.a(afinet.o)(.text+0xaf6):/tmp/syslog-ng-2.0.4/src/afinet.c:444: undefined reference to `libnet_build_ipv6' collect2: ld returned 1 exit status make[2]: *** [syslog-ng] Error 1 make[2]: Leaving directory `/tmp/syslog-ng-2.0.4/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/syslog-ng-2.0.4' make: *** [all] Error 2 =========================================
Attaching config.log too for your reference.
Thanks And Regards, Tapas Mallick
____________________________________________________________________________________ Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ _______________________________________________ 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
-- Hiren Patel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This e-mail and its contents are subject to the Telkom SA Limited e-mail legal notice available at http://www.telkom.co.za/TelkomEMailLegalNotice.PDF ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
participants (3)
-
Balazs Scheidler
-
Hiren Patel
-
Tapas Mallick