Difference between coolstack x86 and sparc

Does anybody has any ideas why the same php code (specifically with graphs using gd) works on x86 and not on sparc?

Details

Ultra 20 - Solaris 10 11/06

CSKamp, CSKmysql and CSKphplibs installed. The Zabbix servers frontend creates graphs fine.

V240 - sparc Solaris 10 11/06

CSKamp, CSKmysql and CSKphplibs installed. The same zabbix code will not create graphs.

As far as I can tell, the environments are identical except for the arch of the box.

Any ideas?

[508 byte] By [linuxboy123a] at [2007-11-15]
# 1

I have found the difference....

Apparently, the sparc version of the coolstack phplibs does not include png support.

I looked at the phpinfo of both servers and indeed png is not listed as supported on the sparc side, just jpeg. Generating jpegs works however.

Maybe it will be in the next release.

linuxboy123a at 2007-7-12 > top of java,Open Source Technologies,OpenSPARC...
# 2

Thanks for reporting this issue. It turned out to be a bug in the way gd was built on SPARC. The math library needs to be explicitly added. I've fixed the issue and posted the new gd files. You can access them at http://cooltools.sunsource.net/coolstack/gd-2.0.33_sparc.tar.bz2

After you download the above, untar in /. It will update the gd files in place (in /opt/coolstack).

Let me know if this fixes the problem with png.

Shanti

shantiSa at 2007-7-12 > top of java,Open Source Technologies,OpenSPARC...
# 3

I am running in to the same problem with Drupal. I have applied the new gd files (coolstack/gd-2.0.33_sparc.tar.bz2), but I am still not seeing png support in gd under php. I believe that the problem is with the gd.so extension which was not updated by the new files. Note the following from ldd on gd.so:

libpng.so.3 =>/usr/lib/libpng.so.3

This appears to be pointing to the system libpng and not the coolstack one. What is strange is that the x86 one does work, and it looks the same in ldd.

--

dradma

dradmaa at 2007-7-12 > top of java,Open Source Technologies,OpenSPARC...
# 4

You are correct in that we need a new PHP extension gd.so. But the libpng is fine - we are using the system one.

It turns out the PHP configure is checking for the existing of various functions in libgd and accordingly building gd.so. That's the reason that the entire PHP had to be rebuilt. However, I'm taking a bet that it is sufficient to update the gd.so (not the entire PHP). Accordingly, I've repackaged the gd tar file which now includes gd.so.

Please let me know if this version works.

You can find it at http://cooltools.sunsource.net/coolstack/gd_patch2_sparc.tar.bz2

Shanti

shantiSa at 2007-7-12 > top of java,Open Source Technologies,OpenSPARC...
# 5
It looks like the new version you built with gd.so does indeed work. Thank you for the quick response, and for making my life a bit easier.--dradma
dradmaa at 2007-7-12 > top of java,Open Source Technologies,OpenSPARC...