Skip to contentSkip to conversation

iptables compile trouble

DISCUSSION Andras Kis-Szabo 2 participants 2 messages Jun 5, 2002 – Jun 6, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

The

Quoted 4 lines

ip6tables.c:502: AI_CANONNAME' undeclared (first use in this function) ip6tables.c:509: warning: implicit declaration of function getaddrinfo' ip6tables.c:527: warning: implicit declaration of function freeaddrinfo' ip6tables.c:540: NI_MAXHOST' undeclared (first use in this function)

are definied in the /usr/include/netdb.h, which is included. These definitions depend on the __USE_POSIX define. (-D__USE_POSIX)

Regards,

kisza

Signature · 3 lines
    Andras Kis-Szabo       Security Development, Design and Audit
-------------------------/        Zorp, NetFilter and IPv6
 [email protected] /-----Member of the BUTE-MIS-SEARCHlab------>
#1 lore raw

tor, 2002-06-06 kl. 00:59 skrev Andras Kis-Szabo:

Quoted 7 lines

The

Quoted 4 lines

ip6tables.c:502: AI_CANONNAME' undeclared (first use in this function) ip6tables.c:509: warning: implicit declaration of function getaddrinfo' ip6tables.c:527: warning: implicit declaration of function freeaddrinfo' ip6tables.c:540: NI_MAXHOST' undeclared (first use in this function)

are definied in the /usr/include/netdb.h, which is included. These definitions depend on the __USE_POSIX define. (-D__USE_POSIX)

In which case Leif would do best to have a look at his glibc/glibc-developer version and install that which suits his compiler best.

I switch between gcc3.04 (standard for most compiles, including kernels) and gcc2.96 (Red Hat bastardization, should have been gcc2.95) and both use the same /usr/include/netdb.h. This comes from glibc-devel-2.2.4-24, a Red Hat update.

He should cut out the horrible workaround that I gave in my last post.

Best,

Tony

Signature · 11 lines
Tony Earnshaw

e-post:		[email protected]
www:		http://www.billy.demon.nl
gpg public key:	http://www.billy.demon.nl/tonni.armor

Telefoon:	(+31) (0)172 530428
Mobiel:		(+31) (0)6 51153356

GPG Fingerprint = 3924 6BF8 A755 DE1A 4AD6 FA2B F7D7 6051 3BE7 B981
3BE7B981