pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45873: graphics/p5-GD broken on Solaris/i86 (but read the details)



>Number:         45873
>Category:       pkg
>Synopsis:       graphics/p5-GD broken on Solaris/i86 (but read the details)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 26 14:15:00 +0000 2012
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
I just realized, that with Perl 5.14, it is no longer possible to load the GD 
module:

$ perl -e 'use GD;'

Not a CODE reference at 
/usr/pkgsrc/20110809/lib/perl5/5.14.0/i386-solaris-thread-multi/DynaLoader.pm 
line 213.
END failed--call queue aborted at 
/usr/pkgsrc/20110809/lib/perl5/vendor_perl/5.14.0/i386-solaris-thread-multi/GD.pm
 line

A short search revealed a rather fundamental problem in ExtUtils-MakeMaker:

https://rt.cpan.org/Public/Bug/Display.html?id=68613

As a quick fix per

https://bugs.archlinux.org/task/25067

I added

CFLAGS+=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

to graphics/p5-GD/Makefile, and the error was gone.
>How-To-Repeat:

>Fix:
The problem seems to affect different architectures. I can confirm Solaris/i86 
with 32bit ABI is affected, Solaris/sparc with 32bit ABI and NetBSD-5.1/i386 
are not. The patch should be enclosed in an appropriate .if-clause, probably 
after the situation on other platforms has been evaluated.

And someone should probably take a close look on the development of 
ExtUtils-MakeMaker and pull up any fixes there quickly.



Home | Main Index | Thread Index | Old Index