Quantcast

php-gd: Cannot load specified object in Unknown on line 0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

php-gd: Cannot load specified object in Unknown on line 0

Leo Unglaub
Hey friends,
in the current snapshots the port "php-gd" is broken. The shiped file
/usr/local/lib/php-5.6/modules/gd.so is invalid. You cannot ldd it or
simple use it.

If you want to ldd it you get the following error:
> # ldd /usr/local/lib/php-5.6/modules/gd.so
> /usr/local/lib/php-5.6/modules/gd.so:
> Cannot load specified object
> /usr/local/lib/php-5.6/modules/gd.so: exit status 1

If you load it into PHP you get the following error message:
> # php-5.6 -m
> PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php-5.6/modules/gd.so' - Cannot load specified object in Unknown on line 0


I have tryed packages from multiple mirrors, but they all seam to have
the same problem.

Thanks and greetings
Leo

> # uname -a
> OpenBSD <hostname> 5.9 GENERIC.MP#1878 amd64

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: php-gd: Cannot load specified object in Unknown on line 0

Stuart Henderson
On 2016/02/23 12:21, Leo Unglaub wrote:

> Hey friends,
> in the current snapshots the port "php-gd" is broken. The shiped file
> /usr/local/lib/php-5.6/modules/gd.so is invalid. You cannot ldd it or simple
> use it.
>
> If you want to ldd it you get the following error:
> ># ldd /usr/local/lib/php-5.6/modules/gd.so
> >/usr/local/lib/php-5.6/modules/gd.so:
> >Cannot load specified object
> >/usr/local/lib/php-5.6/modules/gd.so: exit status 1
>
> If you load it into PHP you get the following error message:
> ># php-5.6 -m
> >PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php-5.6/modules/gd.so' - Cannot load specified object in Unknown on line 0
>
>
> I have tryed packages from multiple mirrors, but they all seam to have the
> same problem.
>
> Thanks and greetings
> Leo
>
> ># uname -a
> >OpenBSD <hostname> 5.9 GENERIC.MP#1878 amd64
>

Works here. Do you have the xbase set installed? See
http://www.openbsd.org/faq/faq4.html#AddFileSet (though actually
I think pkg_add would have refused to install php-gd if not..)

$ sha256 /usr/local/lib/php-5.6/modules/gd.so
SHA256 (/usr/local/lib/php-5.6/modules/gd.so) = 88469b5184488dede112a35b113105826252445cdad0c27bf0df0f1ed105d3be

$ ls -l /usr/local/lib/php-5.6/modules/gd.so
-r--r--r--  1 root  bin  434699 Feb 21 15:30 /usr/local/lib/php-5.6/modules/gd.so

$ php-5.6 -m | grep gd
gd

$ ldd /usr/local/lib/php-5.6/modules/gd.so
/usr/local/lib/php-5.6/modules/gd.so:
        Start            End              Type Open Ref GrpRef Name
        000012cd5848a000 000012cd588eb000 dlib 2    0   0      /usr/local/lib/php-5.6/modules/gd.so
        000012ccb7206000 000012ccb7662000 rlib 0    1   0      /usr/local/lib/libt1.so.6.0
        000012cd0fa7f000 000012cd0ffb8000 rlib 0    2   0      /usr/X11R6/lib/libX11.so.16.1
        000012cd544c6000 000012cd548d8000 rlib 0    1   0      /usr/X11R6/lib/libXpm.so.9.0
        000012cd588eb000 000012cd58d1b000 rlib 0    1   0      /usr/local/lib/libpng.so.17.2
        000012ccd6215000 000012ccd662a000 rlib 0    2   0      /usr/lib/libz.so.5.0
        000012cd6d716000 000012cd6db50000 rlib 0    1   0      /usr/local/lib/libjpeg.so.67.0
        000012cd10415000 000012cd108b4000 rlib 0    1   0      /usr/X11R6/lib/libfreetype.so.24.1
        000012cc91be9000 000012cc91ffb000 rlib 0    1   0      /usr/lib/libpthread.so.20.1
        000012cd5d586000 000012cd5d9ae000 rlib 0    2   0      /usr/lib/libm.so.9.0
        000012cd320a2000 000012cd324c6000 rlib 0    2   0      /usr/X11R6/lib/libxcb.so.3.2
        000012ccc6414000 000012ccc6816000 rlib 0    1   0      /usr/X11R6/lib/libpthread-stubs.so.2.0
        000012cca3e7d000 000012cca4280000 rlib 0    1   0      /usr/X11R6/lib/libXau.so.10.0
        000012cd5a5f7000 000012cd5a9fc000 rlib 0    1   0      /usr/X11R6/lib/libXdmcp.so.11.0

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: php-gd: Cannot load specified object in Unknown on line 0

Leo Unglaub
Hey,

On 02/23/16 16:51, Stuart Henderson wrote:
> Do you have the xbase set installed? See
> http://www.openbsd.org/faq/faq4.html#AddFileSet  (though actually
> I think pkg_add would have refused to install php-gd if not..)

yes i have xbase installed. I had to install it afterwards because the
installation was not possible without it.

> $ sha256 /usr/local/lib/php-5.6/modules/gd.so
> SHA256 (/usr/local/lib/php-5.6/modules/gd.so) = 88469b5184488dede112a35b113105826252445cdad0c27bf0df0f1ed105d3be
>
> $ ls -l /usr/local/lib/php-5.6/modules/gd.so
> -r--r--r--  1 root  bin  434699 Feb 21 15:30 /usr/local/lib/php-5.6/modules/gd.so

Now this is where it gets strange, my values are 100% identical.

> $ sha256 /usr/local/lib/php-5.6/modules/gd.so
> SHA256 (/usr/local/lib/php-5.6/modules/gd.so) = 88469b5184488dede112a35b113105826252445cdad0c27bf0df0f1ed105d3be

> $ ls -l /usr/local/lib/php-5.6/modules/gd.so
> -r--r--r--  1 root  bin  434699 Feb 21 16:30 /usr/local/lib/php-5.6/modules/gd.so

I am out of ideas to he hornest :(

Greetings
Leo

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: php-gd: Cannot load specified object in Unknown on line 0

Stuart Henderson
On 2016/02/23 22:31, Leo Unglaub wrote:
> Hey,
>
> On 02/23/16 16:51, Stuart Henderson wrote:
> >Do you have the xbase set installed? See
> >http://www.openbsd.org/faq/faq4.html#AddFileSet  (though actually
> >I think pkg_add would have refused to install php-gd if not..)
>
> yes i have xbase installed. I had to install it afterwards because the
> installation was not possible without it.

OK - I think all you need to do is follow the step mentioned at the
bottom of that faq entry and it should work right away.

> >$ sha256 /usr/local/lib/php-5.6/modules/gd.so
> >SHA256 (/usr/local/lib/php-5.6/modules/gd.so) = 88469b5184488dede112a35b113105826252445cdad0c27bf0df0f1ed105d3be
> >
> >$ ls -l /usr/local/lib/php-5.6/modules/gd.so
> >-r--r--r--  1 root  bin  434699 Feb 21 15:30 /usr/local/lib/php-5.6/modules/gd.so
>
> Now this is where it gets strange, my values are 100% identical.
>
> >$ sha256 /usr/local/lib/php-5.6/modules/gd.so
> >SHA256 (/usr/local/lib/php-5.6/modules/gd.so) = 88469b5184488dede112a35b113105826252445cdad0c27bf0df0f1ed105d3be
>
> >$ ls -l /usr/local/lib/php-5.6/modules/gd.so
> >-r--r--r--  1 root  bin  434699 Feb 21 16:30 /usr/local/lib/php-5.6/modules/gd.so
>
> I am out of ideas to he hornest :(
>
> Greetings
> Leo
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: php-gd: Cannot load specified object in Unknown on line 0

Leo Unglaub
Hey,

On 02/23/16 23:06, Stuart Henderson wrote:
> OK - I think all you need to do is follow the step mentioned at the
> bottom of that faq entry and it should work right away.

yeah, you where right. I had to run the following command to make it work.

> ldconfig -m /usr/X11R6/lib

Big thanks and greetings
Leo

Loading...