Fixed and compiled. Dear Gergely, many thanks!


2013/6/12 Gergely Nagy <algernon@balabit.hu>
fblubr <fblubr@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]

______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq