Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge php fails
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
Mordarion_Drakenhoff
n00b
n00b


Joined: 29 Oct 2002
Posts: 5

PostPosted: Sat Nov 09, 2002 3:29 am    Post subject: Emerge php fails Reply with quote

I have a problem when trying to emerge php. It says that no usable png libaray is found, however I emerged libpng. Here's the exact error:


checking for png_create_read_struct in -lpng... no
configure: error: No usable pnglib library found.

!!! ERROR: The ebuild did not complete successfully.
!!! Function econf, Line 10, Exitcode 1
!!! econf failed


Any suggestions would be appreciated.
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Sat Nov 09, 2002 3:58 pm    Post subject: Reply with quote

Try to rebuild libpng cause it's definitly in there well it's in libpng-1.2.4 and libpng-1.2.5 anyway. Maybe there's another reason check the config.log (i think) file in the /var/tmp/portage/php*/work/???? directory.

Cya lX.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
int1
Tux's lil' helper
Tux's lil' helper


Joined: 08 Nov 2002
Posts: 139

PostPosted: Sat Nov 09, 2002 4:34 pm    Post subject: You could also try... Reply with quote

You could also try running ldconfig before emerge. I've noticed that occasionally (rarely) the library bindings don't get properly updated after some packages.

Hope this helps!
int1
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Sun Nov 10, 2002 12:15 am    Post subject: solution LDFLAGS="-lm -lz" Reply with quote

Got the same error and checked updating pdflib or something. Checked config.log and saw some familiar undefined symbols. Somehow the ld command (configure script) doesn't include -lm -lz for the libpng package, although it is in /usr/lib/pkgconfig/libpng12.pk. So I don't think these packages use the pkgconfig system.

So use the following:
Code:
LDFLAGS="-lm -lz" emerge <packages>


Cya lX.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
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