Posted on 2008-05-22 15:58:36-07 by balpraba
Unable to compile or install Socket6
I tried to compile Socket6.pm in HPUX 11.31 PA. But, it ended with the following error. Please let me know if you know how to fix or any workaround.
sapph3:/tmp/bala_sapph3_8550_v6pm/sw/Socket6-0.20>perl Makefile.PL checking for gcc... no checking for cc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... no checking whether cc accepts -g... yes checking for cc option to accept ANSI C... none needed checking whether your Perl5 have PL_sv_undef... no checking how to run the C preprocessor... cc -E checking for egrep... grep -E checking for getaddrinfo... yes checking for getnameinfo... yes checking for gethostbyname2... no checking for gethostbyname2 in -lsocket... no checking whether your system has IPv6 directory... no checking for getipnodebyname... yes checking for getipnodebyaddr... yes checking for inet_pton... yes checking for inet_ntop... yes checking whether you have sa_len in struct sockaddr... no checking whether you have sin6_scope_id in struct sockaddr_in6... yes checking for socklen_t... yes configure: creating ./config.status config.status: creating config.pl config.status: creating gailookup.pl config.status: creating config.h config.status: config.h is unchanged Checking if your kit is complete... Looks good Writing Makefile for Socket6 sapph3:/tmp/bala_sapph3_8550_v6pm/sw/Socket6-0.20>make cp Socket6.pm blib/lib/Socket6.pm /usr/bin/perl /opt/perl_32/lib/5.8.8/ExtUtils/xsubpp -noprototypes -typemap /opt/perl_32/li +b/5.8.8/ExtUtils/typemap Socket6.xs > Socket6.xsc && mv Socket6.xsc Socket6.c cc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings + +Z -DUSE_SITECUSTOMIZE -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +DSitanium2 ++Ofltacc=strict -DVERSION=\"0.20\" -DXS_VERSION=\"0.20\" +Z "-I/opt/perl_32/lib/5.8.8/IA64.ARC +HREV_0-thread-multi/CORE" Socket6.c Warning 129: "Socket6.xs", line 104 # Redefinition of macro 'PL_sv_undef' differs from previous definition at ["/opt/perl_32/lib/5.8.8/IA64.ARCHREV_0-thread-multi/CORE/perlapi.h", line 609]. #define PL_sv_undef sv_undef ^^^^^^^^^^^ Error 172: "Socket6.xs", line 747 # Undeclared variable 'sv_undef'. PUSHs(&PL_sv_undef); ^^^^^ *** Error exit code 2 Stop. sapph3:/tmp/bala_sapph3_8550_v6pm/sw/Socket6-0.20>
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.