From: Sisyphus > 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.) >
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-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/