levtlog error udring compile
Iam using suse 9.2 ive done ./configure then i do make and i get 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/opt/gnome/lib -lglib-2.0 -levtlog -Wl,-call_shared /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -levtlog collect2: ld returned 1 exit status make[2]: *** [syslog-ng] Error 1 make[2]: Leaving directory `/home/cokeeffe/syslog-ng-1.9.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/cokeeffe/syslog-ng-1.9.3' make: *** [all] Error 2 whats up? -- Colin O'Keeffe
Hello,
Iam using suse 9.2 ./configure make 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/opt/gnome/lib -lglib-2.0 -levtlog -Wl,-call_shared /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -levtlog whats up?
You probably didn't compile and install the evtlog library. Fetch the source from [1] and './configure && make && make install && ldconfig' it. After that it should find it. If you've already installed it, then it might be a problem with your linker not finding it. You need to then submit the path to the library via the LDFLAGS environment variable to the configure process. [1] http://www.balabit.com/downloads/syslog-ng/1.9/src/ HTH and best regards, Roberto Nibali, ratz -- echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc
okay, i put -I/usr/local/include/eventlog in for the LDFLAS in the makefile but i still get the error i did install the eventlog package cheers On Mon, 28 Feb 2005 22:47:54 +0100, Roberto Nibali <ratz@drugphish.ch> wrote:
Hello,
Iam using suse 9.2 ./configure make 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/opt/gnome/lib -lglib-2.0 -levtlog -Wl,-call_shared /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -levtlog whats up?
You probably didn't compile and install the evtlog library. Fetch the source from [1] and './configure && make && make install && ldconfig' it. After that it should find it. If you've already installed it, then it might be a problem with your linker not finding it. You need to then submit the path to the library via the LDFLAGS environment variable to the configure process.
[1] http://www.balabit.com/downloads/syslog-ng/1.9/src/
HTH and best regards, Roberto Nibali, ratz -- echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc _______________________________________________ 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
-- Colin O'Keeffe
Hello,
-I/usr/local/include/eventlog
This is for include files. You would need the LDFLAGS="-L/usr/local/lib" and you mustn't put it into the Makefile.
in for the LDFLAS in the makefile but i still get the error i did install the eventlog package
Ok, you need to make sure you have done the following steps (not verified): $ tar zxvf eventlog... $ cd eventlog* $ ./configure $ make $ su ----> enter your root password # make install # ldconfig # exit $ cd .. $ tar zxvf syslog-ng... $ cd syslog-ng* $ ./configure ----> in the end you should see a couple of lines regarding eventlog: EVTLOG_CFLAGS=... EVTLOG_LIBS=... The should locate your eventlog library and its header location $ make ----> you should get your syslog-ng binary. HTH and if not, I'll probably get to work on a SuSE system by tomorrow. Also maybe you could check if the libraries are really installed by invoking (as user or root) find /usr/lib /usr/local/lib -name "*ev*log*" 2>/dev/null Regards, Roberto Nibali, ratz -- echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc
yes, EVTLOG_CFLAGS running ./configure shows /usr/local/eventlog EVTLOG_LIBS shows just -levtlog still nothing On Tue, 01 Mar 2005 20:01:12 +0100, Roberto Nibali <ratz@drugphish.ch> wrote:
Hello,
-I/usr/local/include/eventlog
This is for include files. You would need the LDFLAGS="-L/usr/local/lib" and you mustn't put it into the Makefile.
in for the LDFLAS in the makefile but i still get the error i did install the eventlog package
Ok, you need to make sure you have done the following steps (not verified):
$ tar zxvf eventlog... $ cd eventlog* $ ./configure $ make $ su ----> enter your root password # make install # ldconfig # exit $ cd .. $ tar zxvf syslog-ng... $ cd syslog-ng* $ ./configure ----> in the end you should see a couple of lines regarding eventlog: EVTLOG_CFLAGS=... EVTLOG_LIBS=... The should locate your eventlog library and its header location $ make ----> you should get your syslog-ng binary.
HTH and if not, I'll probably get to work on a SuSE system by tomorrow. Also maybe you could check if the libraries are really installed by invoking (as user or root)
find /usr/lib /usr/local/lib -name "*ev*log*" 2>/dev/null
Regards, Roberto Nibali, ratz -- echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc _______________________________________________ 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
-- Colin O'Keeffe
participants (2)
-
Colin O'Keeffe
-
Roberto Nibali