libpng from Directadmin or CentOS?

roarkh

Verified User
Joined
Aug 30, 2005
Messages
139
Location
Bellingham, WA
I may be on the wrong track with this but after updating DirectAdmin using custombuild and while attempting to follow instructions on upgrading from CentOS 5.3 to 5.4 I am running into this error message...

Code:
gtk-update-icon-cache: symbol lookup error: /usr/local/lib/libpng12.so.0: undefined symbol: inflateInit_

It appears on probably 10 or 20 of the items yum updated but it did not stop the update process from completing and now yum update reports that everything is updated, however I'm nervous to complete the process with a server reboot until I understand more about this error message.

It looks as though I may have libpng installed from the CentOS distribution and from the DirectAdmin custombuild scripts. (It looks like the libraries are installed both in /usr/lib and /usr/local/lib)

Is libpng supposed to be excluded from yum update? Does anyone know just how serious this problem might be and what I should do to resolve it?

Thanks in advance
 
Roark,

Did you find out what the problem was?

I have the same errors during an CentOs upgrade from 5.4 to 5.5

Thanks!
 
Unfortunately, I have not resolved this yet, I still see these error messages. The good thing is it does not seem to affect any of the directadmin stuff so the server apparently seems to be working fine.

I've been toying with the idea of reinstalling the Centos libpng package to see if it helps but was kind of hoping to see if I could get some feedback here first.

If you figure it out please post back here.

Thank you.

Roark
 
Where are you getting this error exactly?
Have you tried to update libpng?

We have also our servers upgrade from CentOS 5.4 to CentOS 5.5 without any errors/problems.

NOTE: Never reboot a server if you get any 'error', mostly thats not resolving the problem. Only 'moving' the problem away. If you can't try anything else, then you can give it a try to reboot. But in your case, I'm pretty sure it won't resolve the problem.
 
Last edited:
Initially I thought this was a CentOS problem (it may still be) so I posted on the CentOS forums, if you read through this you will see how I came upon those errors...

https://www.centos.org/modules/newbb/viewtopic.php?topic_id=26036&forum=37&post_id=106215#forumpost106215

The warning appeared numerous times while upgrading from CentOS 5.3 to 5.4 though it did not seem to affect the installation of the packages. However, if I try to remove an affected package with Yum it will act like it worked (except for displaying the warning message) but the package will not actually be removed. I am not in the office now but last I checked I had the latest version of libpng (at least the latest version that Yum wanted to install).

It seems to me that when I last upgraded DirectAdmin it brought in a version of libpng that is incompatible with the CentOS packages. As you can see the error messages I am getting mention "/usr/local/lib/libpng12.so.0". The CentOS libraries are installed in /usr/lib.

By the way, I did need to reboot the server to deal with another issue, rebooting did not fix this issue (I did not expect it too) but it does not keep the server from starting and working fine at least as far as DirectAdmin is concerned (even though I did see that message appear during the reboot at least once).

I hope that answered you question, if you need any more info. please let me know and thank you for your help.

Roark
 
Last edited:
Well, first of all if you update directadmin panel it doesn't install/update libpng.
You could try this

cd /usr/local/directadmin/custombuild/
./build libpng
./build php n
Maybe it should be stupid if its working but yum clean all && yum install devhelp

I've tried to install devhelp with yum without any problems.

# whereis libpng12.so.0
libpng12.so: /usr/lib/libpng12.so.0 /usr/local/lib/libpng12.so /usr/local/lib/libpng12.so.0
===
# cd /usr/lib/
# dir -al | grep libpng
lrwxrwxrwx 1 root root 18 May 10 01:40 libpng12.so.0 -> libpng12.so.0.10.0
-rwxr-xr-x 1 root root 153956 Mar 25 2009 libpng12.so.0.10.0
lrwxrwxrwx 1 root root 16 May 10 01:40 libpng.so.3 -> libpng.so.3.10.0
-rwxr-xr-x 1 root root 162416 Mar 25 2009 libpng.so.3.10.0
===
# cd /usr/local/lib
# dir -al | grep libpng
-rw-r--r-- 1 root root 353058 May 10 02:26 libpng12.a
lrwxrwxrwx 1 root root 13 May 10 02:26 libpng12.so -> libpng12.so.0
lrwxrwxrwx 1 root root 20 May 10 02:26 libpng12.so.0 -> libpng12.so.0.1.2.42
-rwxr-xr-x 1 root root 266596 May 10 02:26 libpng12.so.0.1.2.42
lrwxrwxrwx 1 root root 10 May 10 02:26 libpng.a -> libpng12.a
lrwxrwxrwx 1 root root 11 May 10 02:26 libpng.so -> libpng.so.3
lrwxrwxrwx 1 root root 18 May 10 02:26 libpng.so.3 -> libpng.so.3.1.2.42
-rwxr-xr-x 1 root root 266596 May 10 02:26 libpng.so.3.1.2.42
Maybe this helps a bit, so you can check your server if you got almost the same.
 
Well, first of all if you update directadmin panel it doesn't install/update libpng.
You could try this

Maybe it should be stupid if its working but yum clean all && yum install devhelp

I've tried to install devhelp with yum without any problems.

Maybe this helps a bit, so you can check your server if you got almost the same.
When I mentioned updating directadmin I meant doing a full update using custombuild, not just the control panel update itself. Custombuild apparently upgraded the libpng in /usr/local then and it was after that that the problem started.

Here is the output of those commands from my system...

Code:
[root@ns1 admin]# whereis libpng12.so.0
libpng12.so: /usr/lib/libpng12.so /usr/lib/libpng12.so.0 /usr/local/lib/libpng12.so /usr/local/lib/libpng12.so.0
[root@ns1 admin]# cd /usr/lib
[root@ns1 lib]# dir -al | grep libpng
-rw-r--r--   1 root root   193662 Mar 24  2009 libpng12.a
lrwxrwxrwx   1 root root       18 Apr 13  2009 libpng12.so -> libpng12.so.0.10.0
lrwxrwxrwx   1 root root       18 Apr 13  2009 libpng12.so.0 -> libpng12.so.0.10.0
-rwxr-xr-x   1 root root   152412 Mar 24  2009 libpng12.so.0.10.0
lrwxrwxrwx   1 root root       10 Apr 13  2009 libpng.a -> libpng12.a
lrwxrwxrwx   1 root root       11 Apr 13  2009 libpng.so -> libpng12.so
lrwxrwxrwx   1 root root       16 Apr 13  2009 libpng.so.3 -> libpng.so.3.10.0
-rwxr-xr-x   1 root root   162416 Mar 24  2009 libpng.so.3.10.0
[root@ns1 lib]# cd /usr/local/lib
[root@ns1 lib]# dir -al | grep libpng
-rw-r--r--  1 root root   282138 May  3 12:22 libpng12.a
lrwxrwxrwx  1 root root       13 May  3 12:22 libpng12.so -> libpng12.so.0
lrwxrwxrwx  1 root root       20 May  3 12:22 libpng12.so.0 -> libpng12.so.0.1.2.42
-rwxr-xr-x  1 root root   257440 Oct 16  2008 libpng12.so.0.1.2.32
-rwxr-xr-x  1 root root   257973 May  3 12:22 libpng12.so.0.1.2.42
lrwxrwxrwx  1 root root       10 May  3 12:22 libpng.a -> libpng12.a
lrwxrwxrwx  1 root root       11 May  3 12:22 libpng.so -> libpng.so.3
lrwxrwxrwx  1 root root       18 May  3 12:22 libpng.so.3 -> libpng.so.3.1.2.42
-rwxr-xr-x  1 root root   257440 Oct 16  2008 libpng.so.3.1.2.32
-rwxr-xr-x  1 root root   257973 May  3 12:22 libpng.so.3.1.2.42

devhelp was just one package that was giving me this problem but there are many more, I really don't need devhelp as far as I know so I'm really not worried about it specifically.

It does seem that libpng is typically installed both by CentOS and DirectAdmin, how does the system know which one to use and when?
 
Last edited:
We always setup a CentOS system with minimal requirements (de-selecting all packages) and then install the required one first, then install DA.

You could try to do yum remove libpng and install it again with custombuild (If libpng already was installed as you're saying)
 
I appreciate your help with this, I went ahead and reinstalled the CentOS libpng packages using "yum reinstall libpng", then I followed the instructions above to rebuild the custombuild supplied libpng (./build libpng and ./build php n). Everything compiled and installed fine. Now, to test to see if my problem is still there I try a "yum reinstall devhelp" which displays the following output...

Code:
Is this ok [y/N]: y
Downloading Packages:
devhelp-0.12-20.el5.i386.rpm                             | 179 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing        : devhelp                                                  1/2 
  Installing     : devhelp                                                  1/2 
gtk-update-icon-cache: symbol lookup error: /usr/local/lib/libpng12.so.0: undefined symbol: inflateInit_
error: %post(devhelp-0.12-20.el5.i386) scriptlet failed, exit status 127

Removed:
  devhelp.i386 0:0.12-20.el5                                                    

Installed:
  devhelp.i386 0:0.12-20.el5
As you can see I'm still getting the error message about the symbol lookup error (though the reinstall did appear to complete). Is it possible that the version of libpng that directadmin supplies in not compatible with this version of CentOS?
 
Well I ment;

- Uninstall libpng with YUM
- Install libpng with CustomBuild
- Install devhelp with YUM
 
I didn't try removing libpng with yum because "yum remove libpng" wants to remove 217 packages. Also, I really don't want to get too caught up on devhelp, it was just one of many files that was exhibiting that error message when I started noticing the problem (during a yum update from CentOS 5.3 to 5.4), the only reason I reinstalled devhelp was because I remembered it was one of the affected packages and wanted to see if the error was still occuring. In fact, the error message itself does not seem to stop packages from installing and working with yum. Where I have run into troubles is when trying to remove packages with yum, if I try to yum remove a package that has the problem yum will report that the package was removed but it is not actually removed. Any more ideas how I might resolve this libpng problem?

Thanks again for your input.
 
I am having a somewhat similar error with libpng. Did you ever get your problem resolved?
 
Back
Top