build error on debian sarge

Everything related with getting rsyslog up and running (but not beyond that point ;))

Moderator: rgerhards

build error on debian sarge

Postby walter123 on Sat Sep 15, 2007 5:25 pm

Hello,
I am new here.
I get an error on building with gcc 3.3.5.

Code: Select all
rsyslog will be compiled with the followig settings:

Multithreading support enabled:         yes
Klogd functionality enabled:            yes
Regular expressions support enabled:    yes
Zlib compression support enabled:       yes
MySql support enabled:                  yes
Large file support enabled:             yes
Networking support enabled:             yes
Debug mode enabled:                     no

Code: Select all
make  all-am
make[1]: Entering directory `/usr/local/src/rsyslog-1.19.6'
gcc -DHAVE_CONFIG_H -I.  -D_PATH_MODDIR=\"/usr/local/lib/rsyslog/\"   -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT rsyslogd-omfwd.o -MD -MP -MF .deps/rsyslogd-omfwd.Tpo -c -o rsyslogd-omfwd.o `test -f 'omfwd.c' || echo './'`omfwd.c
omfwd.c: In Funktion »doTryResume«:
omfwd.c:559: error: `AI_NUMERICSERV' undeclared (first use in this function)
omfwd.c:559: error: (Each undeclared identifier is reported only once
omfwd.c:559: error: for each function it appears in.)
omfwd.c: In Funktion »parseSelectorAct«:
omfwd.c:850: error: `AI_NUMERICSERV' undeclared (first use in this function)
make[1]: *** [rsyslogd-omfwd.o] Fehler 1
make[1]: Leaving directory `/usr/local/src/rsyslog-1.19.6'
make: *** [all] Fehler 2





Any help would be appreciated.

Walter
walter123
New
 
Posts: 8
Joined: Sat Sep 15, 2007 5:20 pm

Postby walter123 on Sat Oct 27, 2007 4:13 pm

Today I have tried the new version 1.19.10, but unfortunaly the same error exits.


Code: Select all
gcc -DHAVE_CONFIG_H -I.  -D_PATH_MODDIR=\"/usr/local/lib/rsyslog/\"   -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -MT rsyslogd-omfwd.o -MD -MP -MF .deps/rsyslogd-omfwd.Tpo -c -o rsyslogd-omfwd.o `test -f 'omfwd.c' || echo './'`omfwd.c
omfwd.c: In Funktion »doTryResume«:
omfwd.c:561: error: `AI_NUMERICSERV' undeclared (first use in this function)
omfwd.c:561: error: (Each undeclared identifier is reported only once
omfwd.c:561: error: for each function it appears in.)
omfwd.c: In Funktion »parseSelectorAct«:
omfwd.c:853: error: `AI_NUMERICSERV' undeclared (first use in this function)
make[2]: *** [rsyslogd-omfwd.o] Fehler 1
make[2]: Leaving directory `/daten/software/linux/src/rsyslog/rsyslog-1.19.10'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/daten/software/linux/src/rsyslog/rsyslog-1.19.10'
make: *** [all] Fehler 2


I am the only one with this problem?

Walter
walter123
New
 
Posts: 8
Joined: Sat Sep 15, 2007 5:20 pm

Postby sur5r on Sun Oct 28, 2007 11:30 am

I just tried 1.9.10 with gcc 3.3.6 on debian (gcc 3.3.5 is not a current version for neither testing nor stable).

It compiles fine here.

AI_NUMERICSERV is defined in netdb.h (part of package libc6-dev) which is included by omfwd.c. So this error definitely doesn't make sense.

Maybe you should check that you should have libc6-dev installed. If it's installed you might want to try and reinstall it using

apt-get install --reinstall libc6-dev

Regards,
sur5r
sur5r
Avarage
 
Posts: 11
Joined: Sun Sep 30, 2007 4:35 pm

Postby walter123 on Sun Oct 28, 2007 8:28 pm

Thanks for your Reply and Hint.

I just tried 1.9.10 with gcc 3.3.6 on debian (gcc 3.3.5 is not a current version for neither testing nor stable).

This is on Debian Etch wich has gcc 3.3.6 and glibc 2.3.6.

As I can see AI_NUMERICSERV is available since glibc 2.3.4.
Debian Sarge has gcc 3.3.5 with glibc 2.3.2.

Hmm, is there any possibility to get this work on an older glib.

Thanks
Walter
walter123
New
 
Posts: 8
Joined: Sat Sep 15, 2007 5:20 pm

Postby walter123 on Wed Dec 26, 2007 10:13 am

What does AI_NUMERICSERV? Is it the IPV6 stuff?
If I comment it out, it compiles fine. Can I go so far?

Any Hints/Comments woulde be nice.

Walter
walter123
New
 
Posts: 8
Joined: Sat Sep 15, 2007 5:20 pm

Postby rgerhards on Wed Dec 26, 2007 10:59 am

Yes, it is related to the new IPv6 APIs. Not all platforms have it. There was a check in syslogd.c, but now omfwd.c also picks it up. I have moved the check to net.h, which should solve the issue. To compile your current version, simply do a define

#define AI_NUMERICSERV 0

at the bottom of net.h. The next version I release will have this (its already in CVS).

Thanks for alerting me.

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1274
Joined: Thu Feb 13, 2003 11:57 am

Postby walter123 on Wed Dec 26, 2007 12:03 pm

Big THX Rainer, now it compiles fine.

Have I worry about the compiler warnings or can I ignore this?
Code: Select all
syslog.c: In function `writeSyslogV':
syslog.c:98: Warnung: Funktion k�nnte m�glicher Kandidat f�r Formatattribut �printf� sein
syslog.c:98: Warnung: Funktion k�nnte m�glicher Kandidat f�r Formatattribut �printf� sein
In file included from syslogd.c:210:
srUtils.h:64: Warnung: Deklaration von �wait� �berdeckt eine globale Deklaration
/usr/include/sys/wait.h:112: Warnung: verdeckte Deklaration ist hier
In file included from srUtils.c:44:
srUtils.h:64: Warnung: Deklaration von �wait� �berdeckt eine globale Deklaration
/usr/include/sys/wait.h:112: Warnung: verdeckte Deklaration ist hier
tcpsyslog.c: In function `TCPSessAccept':
tcpsyslog.c:423: Warnung: Variable �allowedMethods� wird nicht verwendet


Walter
walter123
New
 
Posts: 8
Joined: Sat Sep 15, 2007 5:20 pm

Postby rgerhards on Wed Dec 26, 2007 12:06 pm

These look ok. Interesting how names differ on different platforms. The one that annoys me is "wait", I'll see if I can fix it. The printf format warning is nothing serious (I still need to find a way to convince the compiler of the right format... ;)). And allowedMethods seems to miss a proper GSSAPI define (I assume you compile without). So you should be OK with what you got. Please let me know if there are any issues.

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1274
Joined: Thu Feb 13, 2003 11:57 am

Postby rgerhards on Sat Dec 29, 2007 5:55 pm

Oh, one thing: If you like rsyslog, I would really appreciate if you could rate it at freshmeat:

http://freshmeat.net/projects/rsyslog/

Rating is a quick process and it helps us get momentum so that others will also become aware of rsyslog. Would be great if you have a minute to do it.

Thanks,
Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1274
Joined: Thu Feb 13, 2003 11:57 am

Google Ads



Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests

cron