[syslog-ng] [libsyslog_ng_la-afinter.lo] Error 1, syslog-ng-3.4.1 on x86_64
Gergely Nagy
algernon at balabit.hu
Wed Jun 12 10:44:39 CEST 2013
fblubr <fblubr at gmail.com> writes:
> HI, thx, indeed your suggestion worked like a charm,
> [export PKG_CONFIG_PATH=/apps/cactiprod/syslog-ng/glib/lib/pkgconfig]
> but another error shows up, configure runs fine as follows:
[...]
> syslog-ng Open Source Edition 3.4.2 configured
> Compiler options:
> compiler : gcc -std=gnu99
> compiler options : -I/apps/cactiprod/mariadb/include/mysql
> -Wall -pthread -pthread
> -I/apps/cactiprod/syslog-ng/glib/include/glib-2.0
> -I/apps/cactiprod/syslog-ng/glib/lib/glib-2.0/include
> -I/apps/cactiprod/syslog-ng/eventlog/include/eventlog/
> -I/apps/cactiprod/syslog-ng/libdbi/include/
> -I$(top_srcdir)/lib/ivykis/src/include
> -I$(top_builddir)/lib/ivykis/src/include -D_GNU_SOURCE
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> linker flags : -L/apps/cactiprod/mariadb/lib
[...]
> but "make" is failing:
> patternize.c:(.text+0x10d8): undefined reference to `evt_tag_int'
> ../../../lib/.libs/libsyslog-ng.so: undefined reference to
> `evt_rec_get_syslog_pri'
> ../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_format'
> ../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_ctx_init'
> ../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_rec_init'
> ../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_rec_add_tag'
> ../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_ctx_free'
> ../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_tag_printf'
> ../../../lib/.libs/libsyslog-ng.so: undefined reference to `evt_rec_free'
> ../../../lib/.libs/libsyslog-ng.so: undefined reference to
> `evt_rec_add_tagsv'
This is because for some reason, it's not linking to the eventlog
library. You should probably add the eventlog pkgconfig stuff to
PKG_CONFIG_PATH, the same way you added glib:
PKG_CONFIG_PATH=/apps/cactiprod/syslog-ng/glib/lib/pkgconfig
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/apps/cactiprod/syslog-ng/eventlog/lib/pkgconfig
That should help.
Alternatively, append "-leventlog" to EVTLOG_LIBS.
--
|8]
More information about the syslog-ng
mailing list