[rsyslog] v5-devel won't compile
david at lang.hm
david at lang.hm
Wed Jul 1 23:22:51 CEST 2009
On Wed, 1 Jul 2009, david at lang.hm wrote:
> never mind, pkg-config was not installed on this server (and I've got _no_
> idea how I was sucessfully compiling the v4-stable branch on this box)
that wasn't it either, it turns out that the libtool package is needed as
well.
disabling the testbench doesn't seem to work for me
(cd .libs && rm -f imfile.la && ln -s ../imfile.la imfile.la)
make[2]: Leaving directory `/usr/src/rsyslog/plugins/imfile'
Making all in tests
make[2]: Entering directory `/usr/src/rsyslog/tests'
CLASSPATH=..:./..:$CLASSPATH javac -d .. DiagTalker.java
/bin/sh: line 6: javac: command not found
make[2]: *** [classcheck.stamp] Error 127
make[2]: Leaving directory `/usr/src/rsyslog/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/rsyslog'
make: *** [all] Error 2
secdev:/usr/src/rsyslog# history |tail
1408 ./configure
1409 ./configure --help
1410 ./configure --enable-imfile
1411 make
1412 ./configure --help |grep test
1413 ./configure --enable-imfile --enable-testbench=no
1414 make
1415 make clean
1416 make
1417 history |tail
I'm now installing java..
David Lang
> On Wed, 1 Jul 2009, david at lang.hm wrote:
>
>>
>> On Wed, 1 Jul 2009, Rainer Gerhards wrote:
>>
>>> 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.
>>
>> hmm, those files were definantly missing.
>>
>> I had done a git checkout origin/v5-devel, I then did a git checkout -f
>> origin/v5-devel and the files are there.
>>
>> now it is dieing in the configure step :-(
>>
>> checking for FSSTND support... yes
>> ./configure: line 10307: syntax error near unexpected token `GNUTLS,'
>> ./configure: line 10307: ` PKG_CHECK_MODULES(GNUTLS, gnutls >=
>> 1.4.0)'
>> make: *** [config.status] Error 2
>>
>>
>> I tried doing the autoreconf command, and it isn't happy
>>
>> #autoreconf -fvi
>> autoreconf2.50: Entering directory `.'
>> autoreconf2.50: configure.ac: not using Gettext
>> autoreconf2.50: running: aclocal --force -I m4
>> autoreconf2.50: configure.ac: tracing
>> autoreconf2.50: configure.ac: not using Libtool
>> autoreconf2.50: running: /usr/bin/autoconf --force
>> configure.ac:19: error: possibly undefined macro: AC_DISABLE_STATIC
>> If this token and others are legitimate, please use
>> m4_pattern_allow.
>> See the Autoconf documentation.
>> configure.ac:20: error: possibly undefined macro: AC_PROG_LIBTOOL
>> autoreconf2.50: /usr/bin/autoconf failed with exit status: 1
>>
>> my next step is going to be to nuke the entire directory and try a
>> checkout again.
>>
>> 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 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
>>>>
>>> _______________________________________________
>>> 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