[syslog-ng] error compiling syslog-ng-2.0.2 and syslog-ng-2.0.4+20070626

Balazs Scheidler bazsi at balabit.hu
Tue Jun 26 17:57:47 CEST 2007


On Tue, 2007-06-26 at 17:13 +0400, Serge Torop wrote:
> On Tue, 26 Jun 2007, Balazs Scheidler wrote:
> 
> > On Tue, 2007-06-26 at 14:18 +0400, Serge Torop wrote:
> >> Hello,
> >>
> >> then I compiling the syslog-ng-2.0.2 on RedHat Enterpise Linux 4 (kernel
> >> 2.6.9-42.ELsmp) I see the message:
> >
> >> gcc  -g -O2 -Wall -g   -o syslog-ng  main.o libsyslog-ng.a -lnsl -lrt  -Wl,-Bstatic -lfl -L/usr/local/lib -lglib-2.0   -L/usr/local/lib -levtlog   -Wl,-Bdynamic
> >> libsyslog-ng.a(misc.o)(.text+0x3a9): In function `resolve_hostname':
> >> /home/tsp/syslog-ng-2.0.2/src/misc.c:185: undefined reference to `g_assert_warning'
> >>
> >> the same error with syslog-ng-2.0.4+20070626. Is this possible
> >> to fix or solve this problem?
> >>
> >
> > Your glib version is too old. What is the version of your glib-devel
> > package?
> 
> glib-1.2.10-15
> 
> glib2-2.4.7-1
> glib2-devel-2.4.7-1

glib 2.4.7 should be fine. g_assert_warning() is a macro, so no external
references should be made to that.

Can you post the compilation output for misc.c as well?

-- 
Bazsi



More information about the syslog-ng mailing list