1832359 Members
2533 Online
110041 Solutions
New Discussion

can't make GD

 
SOLVED
Go to solution
Ancelmo Rodriguez Parra
Occasional Advisor

can't make GD

I am trying to make GD "GD.pm -- A perl5 interface to Thomas Boutell's gd library".
from README:
$perl Makefile.PL --> ok
$make ->
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
/usr/include/sys/socket.h:501: parse error before "__sendfile64"
/usr/include/sys/socket.h:501: parse error before "bsize_t"
/usr/include/sys/socket.h:502: parse error before "__sendpath64"
/usr/include/sys/socket.h:502: parse error before "bsize_t"
/usr/include/sys/socket.h:504: parse error before "sendfile"
/usr/include/sys/socket.h: In function `sendfile':
/usr/include/sys/socket.h:504: parse error before "bsize_t"
/usr/include/sys/socket.h: At top level:
/usr/include/sys/socket.h:505: parse error before "sendpath"
/usr/include/sys/socket.h: In function `sendpath':
/usr/include/sys/socket.h:505: parse error before "bsize_t"
*** Error exit code 1

any idea?
8 REPLIES 8
James A. Donovan
Honored Contributor
Solution

Re: can't make GD

Are you using a recent version of gcc (3.1.1+)? If not, you can download one from here.

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html

Remember, wherever you go, there you are...
Geoff Wild
Honored Contributor

Re: can't make GD

Did you build libgd.a first?

Which version of GCC are you using?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Ancelmo Rodriguez Parra
Occasional Advisor

Re: can't make GD

I am using gcc version 3.2 I'll get a new version
Ancelmo Rodriguez Parra
Occasional Advisor

Re: can't make GD

I compiled gd first:
gd-2.0.22
/usr/local/lib/libgd.a
Geoff Wild
Honored Contributor

Re: can't make GD

Sounds like this is may be related to Perl - which version of Perl do you have?

Or, what version is your OS?

Or, try using HP ANSI C instead of gcc?

Or, what version is socket.h - is it patched???

This is mine (just head the file):
/* @(#) socket.h $Date: 2002/05/17 16:33:35 $Revision: r11.11/4 PATCH_11.11 (PHNE_27063) */


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Ancelmo Rodriguez Parra
Occasional Advisor

Re: can't make GD

I installed a newer version of gcc (3.3.2) it pased make, but on make test:
---------------------------
make test
PERL_DL_NONLAZY=1 /usr/contrib/bin/perl -Iblib/arch -Iblib/lib -I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi -I/opt/perl/lib/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/GD................/usr/lib/dld.sl: Unresolved symbol: gdImageCreateFromJpeg (code) from ./blib/arch/auto/GD/GD.sl
/usr/lib/dld.sl: Unresolved symbol: gdImagePngPtrEx (code) from ./blib/arch/auto/GD/GD.sl
/usr/lib/dld.sl: Unresolved symbol: gdImageCreateFromPng (code) from ./blib/arch/auto/GD/GD.sl
/usr/lib/dld.sl: Unresolved symbol: gdImagePngPtr (code) from ./blib/arch/auto/GD/GD.sl
/usr/lib/dld.sl: Unresolved symbol: gdImageCreateFromJpegCtx (code) from ./blib/arch/auto/GD/GD.sl
/usr/lib/dld.sl: Unresolved symbol: gdImageJpegPtr (code) from ./blib/arch/auto/GD/GD.sl
/usr/lib/dld.sl: Unresolved symbol: gdImageCreateFromPngCtx (code) from ./blib/arch/auto/GD/GD.sl
Can't load './blib/arch/auto/GD/GD.sl' for module GD: Unresolved external at /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/DynaLoader.pm line 206.
at t/GD.t line 13
Compilation failed in require at t/GD.t line 13.
BEGIN failed--compilation aborted at t/GD.t line 13.
t/GD................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-10
Failed 10/10 tests, 0.00% okay
t/Polyline........../usr/lib/dld.sl: Unresolved symbol: gdImageCreateFromJpeg (code) from blib/arch/auto/GD/GD.sl
/usr/lib/dld.sl: Unresolved symbol: gdImagePngPtrEx (code) from blib/arch/auto/GD/GD.sl
/usr/lib/dld.sl: Unresolved symbol: gdImageCreateFromPng (code) from blib/arch/auto/GD/GD.sl
/usr/lib/dld.sl: Unresolved symbol: gdImagePngPtr (code) from blib/arch/auto/GD/GD.sl
/usr/lib/dld.sl: Unresolved symbol: gdImageCreateFromJpegCtx (code) from blib/arch/auto/GD/GD.sl
/usr/lib/dld.sl: Unresolved symbol: gdImageJpegPtr (code) from blib/arch/auto/GD/GD.sl
/usr/lib/dld.sl: Unresolved symbol: gdImageCreateFromPngCtx (code) from blib/arch/auto/GD/GD.sl
Can't load 'blib/arch/auto/GD/GD.sl' for module GD: Unresolved external at /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/DynaLoader.pm line 206.
at blib/lib/GD/Polyline.pm line 49
Compilation failed in require at blib/lib/GD/Polyline.pm line 49.
BEGIN failed--compilation aborted at blib/lib/GD/Polyline.pm line 49.
Compilation failed in require at t/Polyline.t line 10.
BEGIN failed--compilation aborted at t/Polyline.t line 10.
t/Polyline..........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
Failed Test Status Wstat Total Fail Failed List of Failed
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
t/GD.t 255 65280 10 10 100.00% 1-10
t/Polyline.t 255 65280 1 1 100.00% 1
Failed 2/2 test scripts, 0.00% okay. 11/11 subtests failed, 0.00% okay.
*** Error exit code 2

Stop.
------------
uname -a
HP-UX XXXXX B.11.11 U 9000/800 146474646 unlimited-user license
Ancelmo Rodriguez Parra
Occasional Advisor

Re: can't make GD

perl -->>
This is perl, v5.6.1 built for PA-RISC1.1-thread-multi
Jeroen Peereboom
Honored Contributor

Re: can't make GD

I have been struggling with DBDDBI modules.
Procura seems to know the solution in similar cases.

Check his answers http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=439328

Hope this helps.

(I searched on the forums for 'perl sendfile').

JP.