LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   libgmp and libpng in latest -current upgrades (https://www.linuxquestions.org/questions/slackware-14/libgmp-and-libpng-in-latest-current-upgrades-792497/)

dive 03-01-2010 11:23 PM

libgmp and libpng in latest -current upgrades
 
libgmp

If you found slackpkg failed for this upgrade because of libgmp not found you will need to grab the gmp package and install manually.

This way ought to work:

Code:

slackpkg update
slackpkg upgrade glibc-solibs
slackpkg upgrade glibc*
slackpkg upgrade gmp
slackpkg install-new
slackpkg upgrade-all

But if it doesn't work - for a manual install:

Grab the package:

32 bit:
ftp://ftp.osuosl.org/pub/slackware/s...0.1-i486-1.txz

x86_64:
ftp://ftp.osuosl.org/pub/slackware/s...1-x86_64-1.txz

Installpkg probably won't run so move the package to / and do the following:

Code:

cd /
tar xf gmp*txz
source /install/doinst.sh
ldconfig
rm -r /install

When that is done and the rest of the packages are upgraded install gmp package properly.

libpng

There is a problem with icons in xfce and other things which is connected with libpng (workaround below).

http://www.linuxquestions.org/questi...13#post3882213

rworkman 03-01-2010 11:44 PM

Be sure you're in / before doing that untar operation.

Re gtk, it's not a problem with gtk - it's a libpng problem.
I won't say any more right now because I don't want to create any bad blood with an upstream project, and it's not clear as to how it will be solved. For now, if you search around online, find libpng-1.4.0.tar.xz, comment out the manual symlink creation in the SlackBuild script for libpng, and build that version yourself, everything should be fine for now.

If anyone has some spare understanding of how shared library versioning is supposed to work, feel free to FedEx it to the libpng devel team.

rworkman 03-01-2010 11:45 PM

Oh, and I'm off to bed, and the rest of the team is sleeping or busy, so don't wait up expecting a fix.

escaflown 03-01-2010 11:47 PM

Thanks dive! The libgmp was driving me nut:)

escaflown 03-01-2010 11:49 PM

Quote:

Originally Posted by rworkman (Post 3881953)
Oh, and I'm off to bed, and the rest of the team is sleeping or busy, so don't wait up expecting a fix.

:) go get some well deserved sleep, rworkman!

dive 03-01-2010 11:58 PM

Deleted.

ponce 03-02-2010 01:10 AM

thanx dive :)

(i edited the message)

botnet 03-02-2010 03:46 AM

i hope i am not the only one still with the libpng problem (no icons or buttons in gtk applications)



using the stock libpng, i get no icons

using the stock libpng and making a symlink from libpng14.so.14 to libpng.so.14, no icons

building libpng-1.4.0 without the symlinking included in the slackbuild, no icons

building libpng-1.4.0 without the symlinking included in the slackbuild and then manually making a symlink from libpng14.so.14 to libpng.so.14, no icons



Does anyone have icons and buttons in gtk applications after these updates?

gegechris99 03-02-2010 03:57 AM

Quote:

Originally Posted by botnet (Post 3882168)
Does anyone have icons and buttons in gtk applications after these updates?

From Alien Bob's blog:

Quote:

Note for self-compiling folk:

Something you may experience when you compiled your own applications: some of them may suddenly refuse to show buttons/bitmaps. This is because the application is linked in an incompatible way with libpng… it means you will have to recompile it. For instance, I will have to update my own VLC package because the control interface is now showing empty grey squares… bummer.
So do you have problem with all gtk applications or only with the ones you compiled yourself? In the latter case, just recompile your applications.

botnet 03-02-2010 04:02 AM

the problem exists in pidgin and firefox, where i get "broken" icons (a small page with a red X) and with self compiled applications like deluge, i do not get an icon at all

i also have no buttons in firefox i.e. i cannot post with firefox because the submit post button is missing (using chrome to post now)

gegechris99 03-02-2010 04:17 AM

Quote:

Originally Posted by botnet (Post 3882189)
the problem exists in pidgin and firefox

If you feel like it, you can try to recompile pidgin using the official SlackBuild script and see if the icon issue is solved.

The firefox Slackware package is not compiled from source (it's rather a repackaging of firefox binaries). So I'm afraid that, if the root cause of the problem is a wrong link with libpng, then we are stuck for now.

sahko 03-02-2010 04:27 AM

Quote:

Originally Posted by gegechris99 (Post 3882203)
The firefox Slackware package is not compiled from source (it's rather a repackaging of firefox binaries). So I'm afraid that, if the root cause of the problem is a wrong link with libpng, then we are stuck for now.

Thats only for 32bit. The x86_64 package is built from source.

dive 03-02-2010 04:30 AM

OK AlienBob suggested downgrading libpng to 1.4.0 and that seems to have fixed the icon problem.

1) For 32 bit grab the patch libpng.libs.diff.gz from here:

ftp://ftp.osuosl.org/pub/slackware/s...urce/l/libpng/

2) Get the source for libpng 1.2 libpng-1.2.43.tar.xz and slack-desc from here:

ftp://ftp.osuosl.org/pub/slackware/s...urce/l/libpng/

3) Grab the 1.4.0 source here:

http://downloads.sourceforge.net/pro...g-1.4.0.tar.xz

4) You also need the slackbuild but it must be edited for 1.4.0 VERSION and a patch line added. I have one here:

http://www.unrealize.co.uk/source/libpng.SlackBuild

5) Run the script as root ./libpng.SlackBuild

6) Upgradepkg to the new one dropped in /tmp

7) Run update-gdk-pixbuf-loaders and is there is no message/error then it should have worked and you will have icons once more.

For x86_64 you can install AlienBob's package from here:

http://slackware.com/~alien/libpng-1.4.0-x86_64-1.txz

Do as in 6, 7 above.

Hopefully that will have xfce working again :)

piratesmack 03-02-2010 05:39 AM

Quote:

Originally Posted by dive (Post 3882213)
6) Run update-gdk-pixbuf-loaders

I'm getting this error when I run update-gdk-pixbuf-loaders:
Code:

g_module_open() failed for /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so: /usr/lib/libpng14.so.14: undefined symbol: inflateReset
Is anybody else?

dive 03-02-2010 05:59 AM

Quote:

Originally Posted by piratesmack (Post 3882304)
I'm getting this error when I run update-gdk-pixbuf-loaders:
Code:

g_module_open() failed for /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so: /usr/lib/libpng14.so.14: undefined symbol: inflateReset
Is anybody else?

That's the linpng error. See workaround above.


All times are GMT -5. The time now is 10:16 AM.