gcc -g -O2 -Wall -g -o syslog-ng main.o misc.o utils.o messages.o gsockaddr.o syslog-names.o macros.o logmsg.o cfg.o logpipe.o driver.o sgroup.o dgroup.o center.o filter.o logsource.o logreader.o logwriter.o affile.o afunix.o afinet.o afsocket.o afstreams.o afuser.o afprog.o afinter.o cfg-lex.o cfg-grammar.o fdwrite.o fdread.o memtrace.o templates.o children.o -lnsl -Wl,-static -lfl -L/usr/local/lib -lglib-2.0 -levtlog -Wl,-call_shared
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware
-linux/bin/ld: cannot find -levtlog collect2: ld returned 1 exit status
hmm. for some reason eventlog did not install a static library which it should. my version certainly installs a static version, and it is dubbed 0.2.3, upgrading might solve your problem.
I just have tried 0.2.3. I'm getting this when running 'make' in the syslog-ng src dir. gcc -g -O2 -Wall -g -o syslog-ng main.o misc.o utils.o messages.o gsockaddr.o syslog-names.o macros.o logmsg.o cfg.o logpipe.o driver.o sgroup.o dgroup.o center.o filter.o logsource.o logreader.o logwriter.o affile.o afunix.o afinet.o afsocket.o afstreams.o afuser.o afprog.o afinter.o cfg-lex.o cfg-grammar.o fdwrite.o fdread.o memtrace.o templates.o children.o -lnsl -Wl,-static -lfl -L/usr/local/lib -lglib-2.0 -L/usr/local/lib -levtlog -Wl,-call_shared afinter.o(.text+0x16): In function `afinter_source_prepare': /root/syslog-ng-1.9.3/src/afinter.c:35: undefined reference to `g_queue_get_length' afinter.o(.text+0x3e): In function `afinter_source_check': /root/syslog-ng-1.9.3/src/afinter.c:41: undefined reference to `g_queue_get_length' collect2: ld returned 1 exit status make[2]: *** [syslog-ng] Error 1 make[2]: Leaving directory `/root/syslog-ng-1.9.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/syslog-ng-1.9.3' make: *** [all] Error 2
ps: be sure to use the latest snapshot as 1.9.3 is known to be broken in macro expansion
I'm using the latest snapshot. Thank you Philipp
participants (1)
-
Philipp Snizek