[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 01997) Re: problem with pluto usagi version whenusing IPv6 addresses



YOSHIFUJI Hideaki / 吉藤英明 wrote:

> In article <3DE49A7E.2C142754@xxxxxxxx> (at Wed, 27 Nov 2002 11:12:14 +0100), Abdelkader Lahmadi <Abdelkader.Lahmadi@xxxxxxxx> says:
>
> > i'm fixing the problem, there is a bug in the code of pluto. when seraching for local
> > interface pluto, find only ipv4
> > interfaces and no ipv6. so when trying to match the connection end with an interface it
> > can't find a matching one
> > beacause all local addresses that find are ipv4. So, in the code of pluto in the file
> > server.c i change this
> :
>
> Assume that your respondents will be reading mail on
> 80-character-wide text displays and set your line wrap
> accordingly, to something less than 80.
> (Quoted from <http://www.tuxedo.org/~esr/faqs/smart-questions.html>)
>
> > #ifndef _USAGI
> > static struct raw_iface *
> > find_raw_ifaces6(void)
> > {
> :
> > by
> >
> > #ifdef _USAGI
> > static struct raw_iface *
> > find_raw_ifaces6(void)
> > {
>
> USAGI's getifaddrs() support both IPv6 and IPv4, so
> original code should work; so this is not appropriate
> fix.
>
> What version of glibc do you use?
> Is plute linked with libinet6?
>
> --
> Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@xxxxxxxxxxxxxx>
> GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

when compiling pluto i have these error
../libinet6/libinet6.a(getnameinfo.o): In function `getnameinfo':
getnameinfo.o(.text+0x517): undefined reference to `__set_errno'
getnameinfo.o(.text+0x6c4): undefined reference to `__set_errno'
getnameinfo.o(.text+0x895): undefined reference to `__set_errno'
getnameinfo.o(.text+0x905): undefined reference to `__set_errno'
getnameinfo.o(.text+0xa27): undefined reference to `__set_errno'
../libinet6/libinet6.a(ifaddrs.o)(.text+0x558): more undefined references to `__set_errno' follow

so i add in the Makefile, in the section PLUTOLIBS -lc, and it compile
successfully.