Skip Menu |

This queue is for tickets about the WWW-Curl CPAN distribution.

Report information
The Basics
Id: 63375
Status: resolved
Priority: 0/
Queue: WWW-Curl

People
Owner: Nobody in particular
Requestors: sparvu [...] systemdatarecorder.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 4.14
Fixed in: (no value)



Subject: cant compile on Solaris 10 x86
$ perl Makefile.PL Locating required external dependency bin:curl-config... found at /opt/sdr/bin/curl-config. The version is libcurl 7.21.2 Found curl.h in /opt/sdr/include/curl/curl.h Building curlopt-constants.c for your libcurl version Building Easy.pm constants for your libcurl version Building Share.pm constants for your libcurl version Checking if your kit is complete... Looks good Writing Makefile for WWW::Curl $ make cp lib/WWW/Curl/Share.pm blib/lib/WWW/Curl/Share.pm cp lib/WWW/Curl/Form.pm blib/lib/WWW/Curl/Form.pm cp lib/WWW/Curl.pm blib/lib/WWW/Curl.pm cp lib/WWW/Curl/Multi.pm blib/lib/WWW/Curl/Multi.pm cp lib/WWW/Curl/Easy.pm blib/lib/WWW/Curl/Easy.pm /opt/sdr/perl/bin/perl "-Iinc" /opt/sdr/perl/lib/5.12.2/ExtUtils/xsubpp -typemap /opt/sdr/perl/lib/5.12.2/ExtUtils/typemap -typemap typemap Curl.xs > Curl.xsc && mv Curl.xsc Curl.c cc -c -I/opt/sdr/include -m64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -DVERSION=\"4.14\" -DXS_VERSION=\"4.14\" -KPIC "-I/opt/sdr/perl/lib/5.12.2/i86pc-solaris-64/CORE" Curl.c "/opt/sdr/include/curl/curlrules.h", line 143: zero or negative subscript "Curl.xs", line 113: warning: statement not reached "Curl.xs", line 132: warning: statement not reached "Curl.xs", line 866: warning: statement not reached "Curl.xs", line 1094: warning: enum type mismatch: arg #2 cc: acomp failed for Curl.c *** Error code 1 make: Fatal error: Command failed for target `Curl.o' I have perl compiled 64bit using Sun Studio. Any ideas what is this about ? stefan
From: sparvu [...] systemdatarecorder.org
Show quoted text
> $ make > cp lib/WWW/Curl/Share.pm blib/lib/WWW/Curl/Share.pm > cp lib/WWW/Curl/Form.pm blib/lib/WWW/Curl/Form.pm > cp lib/WWW/Curl.pm blib/lib/WWW/Curl.pm > cp lib/WWW/Curl/Multi.pm blib/lib/WWW/Curl/Multi.pm > cp lib/WWW/Curl/Easy.pm blib/lib/WWW/Curl/Easy.pm > /opt/sdr/perl/bin/perl "-Iinc" /opt/sdr/perl/lib/5.12.2/ExtUtils/xsubpp > -typemap /opt/sdr/perl/lib/5.12.2/ExtUtils/typemap -typemap typemap > Curl.xs > Curl.xsc && mv Curl.xsc Curl.c > cc -c -I/opt/sdr/include -m64 -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -xO3 -DVERSION=\"4.14\" -DXS_VERSION=\"4.14\" > -KPIC "-I/opt/sdr/perl/lib/5.12.2/i86pc-solaris-64/CORE" Curl.c > "/opt/sdr/include/curl/curlrules.h", line 143: zero or negative subscript > "Curl.xs", line 113: warning: statement not reached > "Curl.xs", line 132: warning: statement not reached > "Curl.xs", line 866: warning: statement not reached > "Curl.xs", line 1094: warning: enum type mismatch: arg #2 > cc: acomp failed for Curl.c > *** Error code 1 > make: Fatal error: Command failed for target `Curl.o' >
seems to be related with 64bit compilation. Trying same cc line without 64bits worked fine. $ cc -c -I/opt/sdr/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -DVERSION=\"4.14\" -DXS_VERSION=\"4.14\" -KPIC "-I/opt/sdr/perl/lib/5.12.2/i86pc-solaris-64/CORE" Curl.c "Curl.xs", line 113: warning: statement not reached "Curl.xs", line 132: warning: statement not reached "Curl.xs", line 866: warning: statement not reached "Curl.xs", line 1094: warning: enum type mismatch: arg #2 $ We might need to have 64bit support for WWW::Curl. Makes sense ?
From: sparvu [...] systemdatarecorder.org
Apologies: it was a defect in our build engine. A mistake compiling libcurl with gcc but using cc options :) Fixed in our build engine: ################################################## # SUMMARY # Target: SunOS # Module: rec # Version: 0.73 # Date: Sat Nov 27 14:34:08 EET 2010 # PERL SUBSYSTEM: not integrated # IDN SUBSYSTEM: not integrated # CURL SUBSYSTEM: not integrated # WCURL SUBSYSTEM: built and integrated # WEBREC SUBSYSTEM: not integrated ################################################## # Total Build time: 3.31 sec(s) ################################################## WWW::Curl build fine for Solaris 10 x64 ! Please close the CR. On Sat Nov 27 06:13:53 2010, stefanparvu wrote: Show quoted text
> $ perl Makefile.PL > Locating required external dependency bin:curl-config... found at > /opt/sdr/bin/curl-config. > The version is libcurl 7.21.2 > Found curl.h in /opt/sdr/include/curl/curl.h > Building curlopt-constants.c for your libcurl version > Building Easy.pm constants for your libcurl version > Building Share.pm constants for your libcurl version > Checking if your kit is complete... > Looks good > Writing Makefile for WWW::Curl > > > $ make > cp lib/WWW/Curl/Share.pm blib/lib/WWW/Curl/Share.pm > cp lib/WWW/Curl/Form.pm blib/lib/WWW/Curl/Form.pm > cp lib/WWW/Curl.pm blib/lib/WWW/Curl.pm > cp lib/WWW/Curl/Multi.pm blib/lib/WWW/Curl/Multi.pm > cp lib/WWW/Curl/Easy.pm blib/lib/WWW/Curl/Easy.pm > /opt/sdr/perl/bin/perl "-Iinc" /opt/sdr/perl/lib/5.12.2/ExtUtils/xsubpp > -typemap /opt/sdr/perl/lib/5.12.2/ExtUtils/typemap -typemap typemap > Curl.xs > Curl.xsc && mv Curl.xsc Curl.c > cc -c -I/opt/sdr/include -m64 -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -xO3 -DVERSION=\"4.14\" -DXS_VERSION=\"4.14\" > -KPIC "-I/opt/sdr/perl/lib/5.12.2/i86pc-solaris-64/CORE" Curl.c > "/opt/sdr/include/curl/curlrules.h", line 143: zero or negative subscript > "Curl.xs", line 113: warning: statement not reached > "Curl.xs", line 132: warning: statement not reached > "Curl.xs", line 866: warning: statement not reached > "Curl.xs", line 1094: warning: enum type mismatch: arg #2 > cc: acomp failed for Curl.c > *** Error code 1 > make: Fatal error: Command failed for target `Curl.o' > > > I have perl compiled 64bit using Sun Studio. > > Any ideas what is this about ? > > stefan
No worries! Thanks for taking your time to report that the issue was on your side. Regards, Bálint