[syslog-ng] undefined reference to `libnet_init'

Tim Boyer tim at denmantire.com
Wed May 23 17:49:45 CEST 2007


I'm doing my first install on a RHEL5 virtual machine.  I've successfully
installed syslog-ng on RHEL3, 4, and 5 before, and have a fairly detailed
idea of what I need to do - install libnet; whoops, need eventlog first;
install that, install syslog-ng-2.0.3.

It worked fine on the xen host.  On the xen client, I get:

gcc  -g -O2 -Wall -g   -o syslog-ng  main.o libsyslog-ng.a -lnsl -lrt
-Wl,-Bstatic -lfl -L/lib64 -lglib-2.0   -L/usr/local/lib -levtlog    -lwrap
-Wl,-Bdynamic
libsyslog-ng.a(afinet.o): In function `afinet_dd_construct_ipv6_packet':
/usr/src/syslog-ng-2.0.3/src/afinet.c:420: undefined reference to
`libnet_clear_packet'
/usr/src/syslog-ng-2.0.3/src/afinet.c:422: undefined reference to
`libnet_build_udp'
/usr/src/syslog-ng-2.0.3/src/afinet.c:436: undefined reference to
`libnet_toggle_checksum'
/usr/src/syslog-ng-2.0.3/src/afinet.c:438: undefined reference to
`libnet_build_ipv6'
libsyslog-ng.a(afinet.o): In function `afinet_dd_queue':
/usr/src/syslog-ng-2.0.3/src/afinet.c:487: undefined reference to
`libnet_write'
libsyslog-ng.a(afinet.o): In function `afinet_dd_construct_ipv4_packet':
/usr/src/syslog-ng-2.0.3/src/afinet.c:358: undefined reference to
`libnet_clear_packet'
/usr/src/syslog-ng-2.0.3/src/afinet.c:360: undefined reference to
`libnet_build_udp'
/usr/src/syslog-ng-2.0.3/src/afinet.c:371: undefined reference to
`libnet_build_ipv4'
libsyslog-ng.a(afinet.o): In function `afinet_dd_queue':
/usr/src/syslog-ng-2.0.3/src/afinet.c:499: undefined reference to
`libnet_geterror'
libsyslog-ng.a(afinet.o): In function `afinet_dd_init':
/usr/src/syslog-ng-2.0.3/src/afinet.c:332: undefined reference to
`libnet_init' 

I've got no idea where to start looking for these - can anyone tell me what
I'm missing?

Thanks much,

-- 
Tim Boyer
Director IT and Engineering Projects
Denman Tire Corporation

 



More information about the syslog-ng mailing list