View previous topic :: View next topic |
Author |
Message |
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
Posted: Thu Jan 05, 2012 5:43 pm Post subject: Gnucash won't update because of libpng |
|
|
Despite having run
Code: |
revdep-rebuild --library '/usr/lib64/libpng14.so.14'
|
I can't update gnucash:
Code: |
-pthread -pthread -pthread -Wl,--export-dynamic -pthread -Wl,-soname -Wl,libgncmod-gnome-utils.so -o .libs/libgncmod-gnome-utils.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpng14
collect2: ld returned 1 exit status
make[4]: *** [libgncmod-gnome-utils.la] Error 1
make[4]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.4.8/work/gnucash-2.4.8/src/gnome-utils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.4.8/work/gnucash-2.4.8/src/gnome-utils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.4.8/work/gnucash-2.4.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.4.8/work/gnucash-2.4.8'
make: *** [all] Error 2
* ERROR: app-office/gnucash-2.4.8 failed (compile phase):
* emake failed
*
* If you need support, post the output of 'emerge --info =app-office/gnucash-2.4.8',
* the complete build log and the output of 'emerge -pqv =app-office/gnucash-2.4.8'.
* The complete build log is located at '/var/tmp/portage/app-office/gnucash-2.4.8/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-office/gnucash-2.4.8/temp/environment'.
* S: '/var/tmp/portage/app-office/gnucash-2.4.8/work/gnucash-2.4.8'
|
_________________ decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Thu Jan 05, 2012 5:49 pm Post subject: |
|
|
Did you read the whole 2011-10-15 "eselect news" item? That described the special manual things you need to do to clean up the libpng-1.5* upgrade issues. See also the libpng-1.5.x entered stable - upgrade tips sticky.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
derk Guru
Joined: 10 Mar 2003 Posts: 347 Location: St Thomas Ontario
|
Posted: Fri Jan 06, 2012 12:46 am Post subject: |
|
|
sometimes gcc needs to be rebuilt against the new libpng or so I discovered .. don't know if that is your issue .. looks like somewhere something is still linked to libpng14 .. have you tried lafilefixer ? or re-emerging libtool once gcc is rebuilt ? |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Jan 06, 2012 2:01 am Post subject: |
|
|
Well, it's either a libpng update thing or it's a 64-bit thing. Just installed it successfully on one of my 32-bit boxen.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Jan 06, 2012 2:36 am Post subject: |
|
|
Just to confirm, do me a favor & report the output of Code: | locate -r 'libpng14.*\.so' | please.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21490
|
Posted: Fri Jan 06, 2012 2:51 am Post subject: |
|
|
Is this a fresh install of GNUcash or an upgrade of an existing version? Some packages, notably Wireshark, tend to reuse files from their installed version when they ought to use only their build tree. That type of failure normally manifests as bad dynamic links, but the right kind of mistake could also cause the problem seen here. To check for that, emerge --unmerge app-office/gnucash && emerge app-office/gnucash. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Jan 06, 2012 11:49 am Post subject: |
|
|
Well, for me, it was an update (2.4.7 → 2.4.8) but a subsequent unmerge / emerge succeeded also.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Fri Jan 06, 2012 12:25 pm Post subject: |
|
|
gnucash has a long track record of linking to the old installed libraries instead of the new just built ones. in other words, gnucash's build system sucks.
try
Code: |
# emerge -C gnucash
# emerge gnucash
|
|
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
derk Guru
Joined: 10 Mar 2003 Posts: 347 Location: St Thomas Ontario
|
Posted: Fri Jan 06, 2012 3:31 pm Post subject: |
|
|
I discovered that some ebuild missbehave and link to libpng14.so.14 if it is present so to finally get rid of libpng14.so.14 remove both of the files or if you wish to play it safe move them to a folder in your home directory .. get them out of the linker path .. then do: revdep-rebuild --library libpng14.so.14
then re-emerge gnucash if necessary ( it may be picked up in the above revdep-rebuild ) |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
|