pkgsrc-Bugs archive

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

pkg/28359: GD is only used by thread programs



>Number:         28359
>Category:       pkg
>Synopsis:       GD is only used by thread programs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 19 19:03:00 +0000 2004
>Originator:     Jaromir Dolecek
>Release:        NetBSD 2.99.10
>Organization:
>Environment:
System: NetBSD s102-n054.tele2.cz 2.99.10 NetBSD 2.99.10 (SARUMAN.MP) #293: Sat 
Oct 16 09:31:56 CEST 2004 
dolecek%s102-n054.tele2.cz@localhost:/usr/home/dolecek/soft/netbsd/sys/arch/i386/compile/SARUMAN.MP
 i386
Architecture: i386
Machine: i386
>Description:
        GD is built with thread safety and is linked against
        libpthread. As such, it is unusable with non-threaded
        applications when they load dynamic modules which are linked
        against GD, such as CLI PHP and PHP-gd extension.
>How-To-Repeat:
        install php-gd (either PHP 5.0.2 or PHP 4.3.9)
        add extension=gd.so to php.ini
        then:

        > /usr/pkg/bin/php
        Abort (core dumped)

        remove extension=gd.so from php.ini
        then:
        > /usr/pkg/bin/php
PHP Warning:  Unknown(): Unable to load dynamic library 
'/usr/pkg/lib/php/20020429/gd.so' - Cannot open 
"/usr/pkg/lib/php/20020429/gd.so" in Unknown on line 0

>Fix:
        Unforunately GD doesn't seem to have a configure switch
        to disable the thread-safe build. Workaround for php-gd
        is to switch back to the bundled gd and not depend/use GD package.




Home | Main Index | Thread Index | Old Index