[rsyslog] v5-devel won't compile

Rainer Gerhards rgerhards at hq.adiscon.com
Wed Jul 1 22:24:17 CEST 2009


This sounds like a couple of files (runtime/rule.c, runtime/ruleset.c,
runtime/apc.c) are missing. I have just checked, they are in the git branch.
Also I have no problems compiling that version, I tried it on Debian this
morning during the zlib fix.

Rainer 

> -----Original Message-----
> From: rsyslog-bounces at lists.adiscon.com 
> [mailto:rsyslog-bounces at lists.adiscon.com] On Behalf Of david at lang.hm
> Sent: Wednesday, July 01, 2009 7:37 PM
> To: rsyslog-users
> Subject: Re: [rsyslog] v5-devel won't compile
> 
> back on the debian 5 system I get the following error with v5-devel
> commit 6322343eca1084b509386a94c1bcf2ca819f1220
> 
> 
> gcc -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align 
> -Wpointer-arith -Wmissing-format-attribute -g -o rsyslogd 
> rsyslogd-syslogd.o rsyslogd-omshell.o rsyslogd-omusrmsg.o 
> rsyslogd-omfwd.o 
> rsyslogd-omfile.o rsyslogd-omdiscard.o rsyslogd-iminternal.o 
> rsyslogd-pidfile.o -Wl,--export-dynamic  -lz -lpthread 
> ../runtime/.libs/librsyslog.a -ldl -lrt
> rsyslogd-syslogd.o: In function `mainloop':
> /usr/src/rsyslog/tools/syslogd.c:2832: undefined reference to 
> `execScheduled'
> ../runtime/.libs/librsyslog.a(librsyslog_la-rsyslog.o): In 
> function `rsrtExit':
> /usr/src/rsyslog/runtime/rsyslog.c:216: undefined reference 
> to `rulesetClassExit'
> /usr/src/rsyslog/runtime/rsyslog.c:217: undefined reference 
> to `ruleClassExit'
> ../runtime/.libs/librsyslog.a(librsyslog_la-rsyslog.o): In 
> function `rsrtInit':
> /usr/src/rsyslog/runtime/rsyslog.c:151: undefined reference 
> to `propClassInit'
> /usr/src/rsyslog/runtime/rsyslog.c:175: undefined reference 
> to `ruleClassInit'
> /usr/src/rsyslog/runtime/rsyslog.c:177: undefined reference 
> to `rulesetClassInit'
> ../runtime/.libs/librsyslog.a(librsyslog_la-obj.o): In 
> function `objClassInit':
> /usr/src/rsyslog/runtime/obj.c:1317: undefined reference to 
> `apcClassInit'
> collect2: ld returned 1 exit status
> make[2]: *** [rsyslogd] Error 1
> make[2]: Leaving directory `/usr/src/rsyslog/tools'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/rsyslog'
> make: *** [all] Error 2
> 
> 
> 
> On Wed, 1 Jul 2009, Rainer 
> Gerhards wrote:
> 
> > Date: Wed, 1 Jul 2009 10:35:56 +0200
> > From: Rainer Gerhards <rgerhards at hq.adiscon.com>
> > Reply-To: rsyslog-users <rsyslog at lists.adiscon.com>
> > To: rsyslog-users <rsyslog at lists.adiscon.com>
> > Subject: Re: [rsyslog] v5-devel won't compile
> > 
> > Of course (and as always), the problem rooted in rsyslog. 
> The commit says it
> > all:
> >
> > 
> http://git.adiscon.com/?p=rsyslog.git;a=commitdiff;h=f76881fff
> 39b46630d95a8d8
> > 308f383bec1b8be8
> >
> > Rainer
> >
> >> -----Original Message-----
> >> From: rsyslog-bounces at lists.adiscon.com [mailto:rsyslog-
> >> bounces at lists.adiscon.com] On Behalf Of Rainer Gerhards
> >> Sent: Wednesday, July 01, 2009 10:15 AM
> >> To: rsyslog-users
> >> Subject: Re: [rsyslog] v5-devel won't compile
> >>
> >>> -----Original Message-----
> >>> From: rsyslog-bounces at lists.adiscon.com [mailto:rsyslog-
> >>> bounces at lists.adiscon.com] On Behalf Of david at lang.hm
> >>> Sent: Wednesday, July 01, 2009 10:11 AM
> >>> To: rsyslog-users
> >>> Subject: Re: [rsyslog] v5-devel won't compile
> >>>
> >>> On Wed, 1 Jul 2009, Rainer Gerhards wrote:
> >>>
> >>>> Looks like a problem "with" Debian. I guess I defined 
> some types that
> >> zlib
> >>>> also defines to the same names. I have to admit that 
> Michael Biebl told
> >> me,
> >>>> but it somehow slipped my mind... Will test on Debian 
> today and fix.
> >>>
> >>> master and v5-devel also complained that I didn't have the zlib
> >>> development libraries installed (unable to find zlib.h), after I
> > installed
> >>> that it gave me the error I posted below.
> >>
> >> I have begun to look into it. Debian has a slightly newer 
> version of zlib
> >> than Fedora (1.2.3.3 vs 1.2.3) and with that version's 
> header the problem
> >> occurs. I now need to look at the root cause, but it is 
> well hidden ;)
> >>
> >>>
> >>> v4 didn't complain about the missing library to start with
> >>>
> >>> as I posted in another message, I was suprised the the 
> problem didn't go
> >>> away when I configured with --disable-zlib
> >>
> >> That's a bug in omfile, it obviously does not yet properly 
> reflect this
> >> switch. Will fix that one, too.
> >>
> >> Rainer
> >>
> >>>
> >>> David Lang
> >>>
> >>>> Rainer
> >>>>
> >>>>> -----Original Message-----
> >>>>> From: rsyslog-bounces at lists.adiscon.com [mailto:rsyslog-
> >>>>> bounces at lists.adiscon.com] On Behalf Of david at lang.hm
> >>>>> Sent: Wednesday, July 01, 2009 12:42 AM
> >>>>> To: rsyslog-users
> >>>>> Subject: Re: [rsyslog] v5-devel won't compile
> >>>>>
> >>>>> On Tue, 30 Jun 2009, david at lang.hm wrote:
> >>>>>
> >>>>>> ubuntu 9.04
> >>>>>
> >>>>> correction, debian 5.0, not ubuntu (forgot which machine I was
> > compiling
> >>>>> on)
> >>>>>
> >>>>> master also fails with the same error, v4-stable has no problem.
> >>>>>
> >>>>> David Lang
> >>>>>
> >>>>>
> >>>>>> zlib version
> >>>>>> /* zlib.h -- interface of the 'zlib' general purpose 
> compression
> >> library
> >>>>>>   version 1.2.3.3, October 2nd, 2006
> >>>>>>
> >>>>>> ii  zlib1g-dev                          1:1.2.3.3.dfsg-12
> >>>>>> compression library - development
> >>>>>>
> >>>>>>
> >>>>>> error
> >>>>>>
> >>>>>> In file included from zlibw.h:28,
> >>>>>>                  from stream.h:72,
> >>>>>>                  from obj.h:50,
> >>>>>>                  from rsyslog.h:482,
> >>>>>>                  from stringbuf.c:39:
> >>>>>> /usr/include/zlib.h:1366: error: expected '=', ',', 
> ';', 'asm' or
> >>>>>> '__attribute__' before 'gzseek64'
> >>>>>> /usr/include/zlib.h:1367: error: expected '=', ',', 
> ';', 'asm' or
> >>>>>> '__attribute__' before 'gztell64'
> >>>>>> /usr/include/zlib.h:1368: error: expected declaration 
> specifiers or
> >> '...'
> >>>>>> before 'off64_t'
> >>>>>> /usr/include/zlib.h:1369: error: expected declaration 
> specifiers or
> >> '...'
> >>>>>> before 'off64_t'
> >>>>>> make[2]: *** [librsyslog_la-stringbuf.lo] Error 1
> >>>>>> make[2]: Leaving directory `/usr/src/rsyslog/runtime'
> >>>>>> make[1]: *** [all-recursive] Error 1
> >>>>>> make[1]: Leaving directory `/usr/src/rsyslog'
> >>>>>> make: *** [all] Error 2
> >>>>>>
> >>>>>>
> >>>>>> David Lang
> >>>>>> _______________________________________________
> >>>>>> rsyslog mailing list
> >>>>>> http://lists.adiscon.net/mailman/listinfo/rsyslog
> >>>>>> http://www.rsyslog.com
> >>>>>>
> >>>>> _______________________________________________
> >>>>> rsyslog mailing list
> >>>>> http://lists.adiscon.net/mailman/listinfo/rsyslog
> >>>>> http://www.rsyslog.com
> >>>> _______________________________________________
> >>>> rsyslog mailing list
> >>>> http://lists.adiscon.net/mailman/listinfo/rsyslog
> >>>> http://www.rsyslog.com
> >>>>
> >>> _______________________________________________
> >>> rsyslog mailing list
> >>> http://lists.adiscon.net/mailman/listinfo/rsyslog
> >>> http://www.rsyslog.com
> >> _______________________________________________
> >> rsyslog mailing list
> >> http://lists.adiscon.net/mailman/listinfo/rsyslog
> >> http://www.rsyslog.com
> > _______________________________________________
> > rsyslog mailing list
> > http://lists.adiscon.net/mailman/listinfo/rsyslog
> > http://www.rsyslog.com
> >
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
> 



More information about the rsyslog mailing list