Socket6 won"t install

Socket6 won"t install

am 23.08.2011 22:00:07 von Bob McConnell

I am using Strawberry on WinXP. I need to test some IPv6 connectivity
but can't get Socket6 to install. It all boils down to two errors during
the compile stage.

Socket6.o:Socket6.c:(.text+0xa47): undefined reference to `inet_pton'
Socket6.o:Socket6.c:(.text+0xd11): undefined reference to `inet_ntop'
collect2: ld returned 1 exit status

How do I resolve this problem?

Bob McConnell

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: Socket6 won"t install

am 24.08.2011 03:12:26 von sisyphus1

----- Original Message -----
From: "Bob McConnell"

>I am using Strawberry on WinXP. I need to test some IPv6 connectivity
> but can't get Socket6 to install. It all boils down to two errors during
> the compile stage.
>
> Socket6.o:Socket6.c:(.text+0xa47): undefined reference to `inet_pton'
> Socket6.o:Socket6.c:(.text+0xd11): undefined reference to `inet_ntop'
> collect2: ld returned 1 exit status
>
> How do I resolve this problem?

Applying this patch to Socket6.xs should fix the problem:

###########################
--- Socket6.xs_orig Mon Dec 13 21:33:48 2010
+++ Socket6.xs Mon Dec 13 21:40:56 2010
@@ -101,6 +101,11 @@
#define HAVE_INET_PTON 1
#endif

+#ifdef __MINGW32__
+#include "inet_ntop.c"
+#include "inet_pton.c"
+#endif
+
#ifndef HAVE_PL_SV_UNDEF
#define PL_sv_undef sv_undef
#endif

##########################

(Worked for me.)

Cheers,
Rob

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

RE: Socket6 won"t install

am 24.08.2011 15:30:35 von Bob McConnell

From: Sisyphus
> From: "Bob McConnell"
>=20
>>I am using Strawberry on WinXP. I need to test some IPv6 connectivity
>> but can't get Socket6 to install. It all boils down to two errors
during
>> the compile stage.
>>=20
>> Socket6.o:Socket6.c:(.text+0xa47): undefined reference to `inet_pton'
>> Socket6.o:Socket6.c:(.text+0xd11): undefined reference to `inet_ntop'
>> collect2: ld returned 1 exit status
>>=20
>> How do I resolve this problem?
>=20
> Applying this patch to Socket6.xs should fix the problem:
>=20
> ###########################
> --- Socket6.xs_orig Mon Dec 13 21:33:48 2010
> +++ Socket6.xs Mon Dec 13 21:40:56 2010
> @@ -101,6 +101,11 @@
> #define HAVE_INET_PTON 1
> #endif
>=20
> +#ifdef __MINGW32__
> +#include "inet_ntop.c"
> +#include "inet_pton.c"
> +#endif
> +
> #ifndef HAVE_PL_SV_UNDEF
> #define PL_sv_undef sv_undef
> #endif
>=20
> ##########################
>=20
> (Worked for me.)
>=20

How do I insert that in the middle of an install? CPAN is downloading a
fresh copy of the source each time it runs.

Thanks,

Bob McConnell

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: Socket6 won"t install

am 24.08.2011 17:14:40 von Shlomi Fish

On Wed, 24 Aug 2011 09:30:35 -0400
"Bob McConnell" wrote:

> From: Sisyphus
> > From: "Bob McConnell"
> >=20
> >>I am using Strawberry on WinXP. I need to test some IPv6 connectivity
> >> but can't get Socket6 to install. It all boils down to two errors
> during
> >> the compile stage.
> >>=20
> >> Socket6.o:Socket6.c:(.text+0xa47): undefined reference to `inet_pton'
> >> Socket6.o:Socket6.c:(.text+0xd11): undefined reference to `inet_ntop'
> >> collect2: ld returned 1 exit status
> >>=20
> >> How do I resolve this problem?
> >=20
> > Applying this patch to Socket6.xs should fix the problem:
> >=20
> > ###########################
> > --- Socket6.xs_orig Mon Dec 13 21:33:48 2010
> > +++ Socket6.xs Mon Dec 13 21:40:56 2010
> > @@ -101,6 +101,11 @@
> > #define HAVE_INET_PTON 1
> > #endif
> >=20
> > +#ifdef __MINGW32__
> > +#include "inet_ntop.c"
> > +#include "inet_pton.c"
> > +#endif
> > +
> > #ifndef HAVE_PL_SV_UNDEF
> > #define PL_sv_undef sv_undef
> > #endif
> >=20
> > ##########################
> >=20
> > (Worked for me.)
> >=20
>=20
> How do I insert that in the middle of an install? CPAN is downloading a
> fresh copy of the source each time it runs.
>=20

You cannot do it using the "perl -MCPAN" shell. Instead, download the source
archive, unpack it, patch it, and run "perl Makefile.PL", "make", "make
test" and "make install".

Regards,

Shlomi Fish

> Thanks,
>=20
> Bob McConnell
>=20



--=20
------------------------------------------------------------ -----
Shlomi Fish http://www.shlomifish.org/
Interview with Ben Collins-Sussman - http://shlom.in/sussman

Judaism: God is all the shit, all the nonâ€=90shit and all the intermed=
iate
demiâ€=90shits in between.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/