Compile error when running Perl cpan


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Compile error when running Perl cpan
# 1  
Old 10-29-2008
Compile error when running Perl cpan

Hello all!

I'm trying to compile the GD module for Perl on Redhat AS 4.
It fails when trying to link to libjpeg. The machine is a AMD Opteron 64 machine so I figure it's some kind of 32 vs 64bit interference in the lib dir?

Any idéas?

Code:
  CPAN.pm: Going to build L/LD/LDS/GD-2.41.tar.gz

Notice: Type perl Makefile.PL -h for command-line option summary.

Configuring for libgd version 2.0.28.
Checking for stray libgd header files...none found.

Included Features:          GD_XPM GD_JPEG GD_FREETYPE GD_PNG GD_GIF
GD library used from:       /usr
Checking if your kit is complete...
Looks good
Writing Makefile for GD
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" GD/Image.pm.PLS GD/Image.pm
Extracting Image.pm (with variable substitutions)
cp GD/Polyline.pm blib/lib/GD/Polyline.pm
cp qd.pl blib/lib/qd.pl
cp GD/Image.pm blib/lib/GD/Image.pm
cp GD.pm blib/lib/GD.pm
AutoSplitting blib/lib/GD.pm (blib/lib/auto/GD)
cp GD/Simple.pm blib/lib/GD/Simple.pm
cp GD/Polygon.pm blib/lib/GD/Polygon.pm
/usr/bin/perl /usr/lib/perl5/5.8.5/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.5/ExtUtils/typemap -typemap typemap  GD.xs > GD.xsc && mv GD.xsc GD.c
gcc -c  -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m64   -DVERSION=\"2.41\" -DXS_VERSION=\"2.41\" -fPIC "-I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE"  -DHAVE_JPEG -DHAVE_FT -DHAVE_XPM -DHAVE_GIF -DHAVE_PNG GD.c
GD.xs: In function `XS_GD__Image_STORABLE_thaw':
GD.xs:923: warning: cast from pointer to integer of different size
Running Mkbootstrap for GD ()
chmod 644 GD.bs
rm -f blib/arch/auto/GD/GD.so
gcc  -shared GD.o  -o blib/arch/auto/GD/GD.so   -L/usr/lib -L/usr/X11R6/lib -L/usr/lib -L/usr/lib64 -L/usr/X11R6/lib64 -L/usr/lib64 -lXpm -lX11 -ljpeg -lfreetype -lpng12 -lz -lm -lgd   
/usr/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/libjpeg.a when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/libjpeg.a when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../libjpeg.so when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../libjpeg.a when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/libjpeg.a when searching for -ljpeg
/usr/bin/ld: cannot find -ljpeg
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/GD/GD.so] Error 1
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

PERL compile

I have PERL program( which uses diff modules inside the program) and running it using installed PERL ( PERL 5.8.8) on unix box. Now I want to run these programs on a diff unix box , but, they don't want to install PERL . I never compiled PERL before . what are my options to run this program... (2 Replies)
Discussion started by: talashil
2 Replies

2. Ubuntu

Compile smbfs module in kernel version 3.10 running Ubuntu 12.04 LTS

Is there any way to compile smbfs module in kernel 3.10 running Ubuntu 12.04 LTS. I did a 'make menuconfig' and it shows cifs. I found out online that smbfs is deprecated and replaced by cifs. I have an old system with kernel version 2.4 which only has smbfs (no cifs). Is it possible to compile... (1 Reply)
Discussion started by: Monil
1 Replies

3. OS X (Apple)

Unable to install Perl module via CPAN

Hi, I am trying to install Unicode::String from the cpan shell, and here is what I get: Checking if your kit is complete... Looks good Writing Makefile for Unicode::String cp String.pm blib/lib/Unicode/String.pm cp lib/Unicode/CharName.pm blib/lib/Unicode/CharName.pm... (3 Replies)
Discussion started by: psychomachine
3 Replies

4. Shell Programming and Scripting

Error while trying to install from CPAN

Hi i was trying to install Text::CSV from cpan... it seemed to have downloaded everythign properly but was not able to run the make file... do u have any idea as to why this happened?? Install: ============================= If you install Text::CSV_XS v.0.70, it makes Text::CSV faster. ... (5 Replies)
Discussion started by: VGR
5 Replies

5. Shell Programming and Scripting

[Perl] How to install with CPAN specified version of module

Hello all, i am searching how to install a module but the question is : howto specify CPAN to install a determined version of the module ? In my case i want to install DBD:Oracle1.14 and not version 1.23 proposed ! Any idea welcome ! :rolleyes: Thanks ! (1 Reply)
Discussion started by: sun_cracker
1 Replies

6. Shell Programming and Scripting

Perl - problem with CPAN module XML::Simple

Hi All, I am trying to run the following program #!/usr/bin/perl # use module use XML::Simple; use Data::Dumper; # create object $xml = new XML::Simple; # read XML file $data = $xml->XMLin("dump.xml"); # print output print Dumper($dump); At first i had the error mesage saying... (5 Replies)
Discussion started by: userscript
5 Replies

7. Shell Programming and Scripting

[PERL] Running unix commands within Perl Scripts

I understand that in order to run basic unix commands I would normally type at the prompt, I would have to use the following format system(ls -l); or exec(ls -l); But when I actually try to use the command, the script fails to compile and keeps telling me there is an error with this line. ... (1 Reply)
Discussion started by: userix
1 Replies

8. Solaris

invalid getconf output and Perl compile

I was compiling perl on a Solaris 10 server. The compile failed because the output of getconf is wrong (it indicates xarch is generic64 not v9. This is a known bug but I cannot find a fix. I wrote a script as suggested that changes it but when you run getconf again it goes back to generic64. ... (2 Replies)
Discussion started by: csross
2 Replies

9. Filesystems, Disks and Memory

Compile a code for running on boot

How can I compile a code that can be runned on boot:?? (2 Replies)
Discussion started by: d4n1l0d
2 Replies

10. Tips and Tutorials

PERL & CPAN Intro for Newbies

So you want to learn a unix scripting language that you'll be able to use in any situation? Perl is your answer ! This is a little intro to installing CPAN modules. If you don't know what CPAN is, check out http://search.cpan.org/. Basicly, it is a massive archive of perl libraries that will... (0 Replies)
Discussion started by: obitus
0 Replies
Login or Register to Ask a Question