On Wed, 24 Aug 2011 09:30:35 -0400
"Bob McConnell" <r...@cbord.com> wrote:

> 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.
> 

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,
> 
> Bob McConnell
> 



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

Judaism: God is all the shit, all the non‐shit and all the intermediate
demi‐shits in between.

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

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


Reply via email to