Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gnucash won't update because of libpng
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Thu Jan 05, 2012 5:43 pm    Post subject: Gnucash won't update because of libpng Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Jan 05, 2012 5:49 pm    Post subject: Reply with quote

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. :wink:

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Thu Jan 05, 2012 10:28 pm    Post subject: Reply with quote

Yyyep. In fact I've done all that several times on this particular machine by now. I've noticed that Gnucash is the only package having this problem, and it has this problem with the same version on another machine on which I know the libpng issue was taken care of long ago. So I'm guessing the problem is Gnucash.
_________________
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
View user's profile Send private message
derk
Guru
Guru


Joined: 10 Mar 2003
Posts: 347
Location: St Thomas Ontario

PostPosted: Fri Jan 06, 2012 12:46 am    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Jan 06, 2012 2:01 am    Post subject: Reply with quote

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
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Fri Jan 06, 2012 2:13 am    Post subject: Reply with quote

Maybe it's a 64-bit thing for Gnucash as it intersects with libpng. 8O
_________________
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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Jan 06, 2012 2:36 am    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21490

PostPosted: Fri Jan 06, 2012 2:51 am    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Jan 06, 2012 11:49 am    Post subject: Reply with quote

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
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Fri Jan 06, 2012 12:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Fri Jan 06, 2012 1:51 pm    Post subject: Reply with quote

John R. Graham wrote:
Just to confirm, do me a favor & report the output of
Code:
locate -r 'libpng14.*\.so'
please.

- John


I get

Code:

/usr/lib32/libpng14.so.14
/usr/lib64/libpng14.so.14

_________________
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
View user's profile Send private message
derk
Guru
Guru


Joined: 10 Mar 2003
Posts: 347
Location: St Thomas Ontario

PostPosted: Fri Jan 06, 2012 3:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Sat Jan 07, 2012 3:23 pm    Post subject: Reply with quote

derk wrote:
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 )


I'll try that. 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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum