-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 3/4/10 9:40 AM, Alexander Hansen wrote:
> On 3/3/10 10:13 PM, Gavin Sherlock wrote:
>> Hi,
> 
>> I'm trying to install the Perl GD module, by using the CPAN download, rather 
>> than via fink - the reason I'm doing that is because I will have to hardcode:
> 
>> #!/sw/bin/perl5.8.8
> 
>> in my scripts if I use the perl gd-pm588 package, and these are scripts that 
>> are part of a module I release to CPAN, so I don't want to hardcode it 
>> there.  However, if I install the gd2 package via fink, then try to install 
>> GD.pm from CPAN, when I try to compile it, I get complaints about "file is 
>> not of required architecture" (see below my signature for full output of 
>> 'perl Makefile.PL'.  I tried clean installing fink from scratch, and still 
>> no dice.  I'm selected to default to 32-bit upon configuration.  Does anyone 
>> have any ideas?
> 
>> Thanks,
>> Gavin
> 
>> pliny 293 % fink -V
>> Package manager version: 0.29.10
>> Distribution version: selfupdate-rsync Wed Mar  3 17:36:47 2010, 10.6, i386
> 
>> pliny 295 % sw_vers 
>> ProductName: Mac OS X
>> ProductVersion:      10.6.2
>> BuildVersion:        10C540
> 
>> pliny 290 % perl Makefile.PL 
>> Notice: Type perl Makefile.PL -h for command-line option summary.
> 
>> Configuring for libgd version 2.0.35.
>> Checking for stray libgd header files...none found.
> 
>> Included Features:          GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_PNG 
>> GD_GIF GD_GIFANIM GD_OPENPOLYGON GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE 
>> VERSION_33
>> GD library used from:       /sw
>> Checking if your kit is complete...
>> Looks good
>> Writing Makefile for GD
>> pliny 291 % make
>> /usr/bin/perl 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
>> cp GD/Group.pm blib/lib/GD/Group.pm
>> /usr/bin/perl /System/Library/Perl/5.10.0/ExtUtils/xsubpp  -typemap 
>> /System/Library/Perl/5.10.0/ExtUtils/typemap -typemap typemap  GD.xs > 
>> GD.xsc && mv GD.xsc GD.c
>> gcc-4.2 -c  -I/sw/include -Wformat=0 -Os   -DVERSION=\"2.44\" 
>> -DXS_VERSION=\"2.44\"  
>> "-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE"  -DHAVE_JPEG 
>> -DHAVE_FT -DHAVE_XPM -DHAVE_GIF -DHAVE_PNG -DHAVE_ANIMGIF -DVERSION_33 
>> -DHAVE_UNCLOSEDPOLY -DHAVE_FONTCONFIG -DHAVE_FTCIRCLE 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.bundle
>> LD_RUN_PATH="/usr/X11R6/lib:/sw/lib:/sw/lib/fontconfig2/lib" gcc-4.2 
>> -mmacosx-version-min=10.6  -arch x86_64 -arch i386 -arch ppc -bundle 
>> -undefined dynamic_lookup -L/usr/local/lib GD.o  -o 
>> blib/arch/auto/GD/GD.bundle    \
>>         -L/sw/lib -L/sw/lib -L/sw/lib/fontconfig2/lib -L/sw/lib 
>> -L/usr/X11R6/lib -L/sw/lib/fontconfig2/lib -L/sw/lib -lXpm -lX11 -ljpeg 
>> -lfontconfig -lfreetype -lpng12 -lz -liconv -lgd     \
> 
>> ld: warning: in /sw/lib/libjpeg.dylib, file is not of required architecture
>> ld: warning: in /sw/lib/libfreetype.dylib, file is not of required 
>> architecture
>> ld: warning: in /sw/lib/libpng12.dylib, file is not of required architecture
>> ld: warning: in /sw/lib/libiconv.dylib, file is not of required architecture
>> ld: warning: in /sw/lib/libgd.dylib, file is not of required architecture
>> ld: warning: in GD.o, file is not of required architecture
>> ld: warning: in GD.o, file is not of required architecture
>> ld: warning: in /sw/lib/libjpeg.dylib, file is not of required architecture
>> ld: warning: in /sw/lib/libfreetype.dylib, file is not of required 
>> architecture
>> ld: warning: in /sw/lib/libpng12.dylib, file is not of required architecture
>> ld: warning: in /sw/lib/libiconv.dylib, file is not of required architecture
>> ld: warning: in /sw/lib/libgd.dylib, file is not of required architecture
> 
> I believe that the issue is that the system's Perl is set up to try to
> build universal binaries--cf. the "-arch x86_64 -arch i386 -arch
> ppc"--but none of Fink's libraries are universal (by design).  We have
> to go to some pains to have things build properly (for our purposes)
> using Snow Leopard's Perl.
> 
> Any reason not just to hardode "#!/usr/bin/env perl" ?
> 

Woops.  Forgot to add "and use fink's perl588 to test this out"?  Also,
have you tried contacting fink's maintainer for gd-pm5* for an update?
(though the lack of a 5100 variant quite possibly means he isn't active
anymore)
- -- 
Alexander Hansen
Fink User Liaison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuPyKcACgkQB8UpO3rKjQ/2XQCgnvScp4B9TjxyniMYOKD0JWUS
NGkAn3O0ndoxzQcG3f1Shxprn6AmKsBv
=WDEo
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to