Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9792 - libpng.1.2.5 does not allow emerge gnome-core to succeed
Summary: libpng.1.2.5 does not allow emerge gnome-core to succeed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: Low major (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 9757 9769 9897 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-10-27 18:50 UTC by pkize
Modified: 2003-02-04 19:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Updated ebuild to "fix" libpng (libpng-1.2.5.ebuild,1.20 KB, text/plain)
2002-10-31 01:14 UTC, Ken Brush
Details
Patch to libpng.1.2.5.ebuild (libpng.patch,356 bytes, patch)
2002-10-31 01:36 UTC, Ken Brush
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pkize 2002-10-27 18:50:36 UTC
during # emerge libpng numerous warnings about non-system search sequence
but # emerge libpng succeeds

during # emerge gnome-core cannot find "png_init_io in -lpng" causes termination
and # emerge gnome-core fails

as a result it appears that i am unable to successfully install and use gnome
Comment 1 Martin Vollrathson 2002-10-27 23:05:14 UTC
Almost the same problem observed with app-games/lbreakout2:
...
checking for main in -lm... yes
checking for main in -lpng... no
configure: error: libpng is needed
Comment 2 SpanKY gentoo-dev 2002-10-28 10:45:49 UTC
when compiling applications against libpng-1.2.5 they need to link in libzlib 
and libstc++ ... 
 
many configure scripts just do '-lpng' when they now have to do '-lpng -lz 
-lstdc++' 
Comment 3 foser (RETIRED) gentoo-dev 2002-10-29 05:21:01 UTC
Hmm.. so that means we should hack every configure script that comes with this
problem ? *bareuh* 

libpng.pc doesn't mention libstdc++ btw
Comment 4 foser (RETIRED) gentoo-dev 2002-10-29 05:25:37 UTC
*** Bug 9769 has been marked as a duplicate of this bug. ***
Comment 5 foser (RETIRED) gentoo-dev 2002-10-29 05:25:52 UTC
*** Bug 9757 has been marked as a duplicate of this bug. ***
Comment 6 Spider (RETIRED) gentoo-dev 2002-10-29 07:56:20 UTC
can't we just hack the libpng "config" script to include -lz -lstdc++ for
CFLAGS/LDFLAGS ? 
Comment 7 foser (RETIRED) gentoo-dev 2002-10-29 08:40:33 UTC
Suppose we could, it wouldn't harm anything else adding those extra libs would it ?

libpng21-config is a simple script, so its trivial to add.
Comment 8 SpanKY gentoo-dev 2002-10-29 10:29:47 UTC
*** Bug 9897 has been marked as a duplicate of this bug. ***
Comment 9 SpanKY gentoo-dev 2002-10-29 11:35:17 UTC
these new libraries are because of libpng-1.2.5 ... 
 
and libpng.pc probably doesnt mention libstdc++ because its a new thing with 
glibc/gcc ... 
they partitioned up the libraries even more (namespace and such) 
 
libstdc++ has been a common source of breakage with the new gcc/glibc 
Comment 10 foser (RETIRED) gentoo-dev 2002-10-29 12:53:10 UTC
Done some investegating, the problem is that these failing programs do not use
libpng-config or pkg-config. So they need to be patched im afraid. For example
gnome-panel-1.4.2 built fine when i added -lpng -lz -lm to it's config script.
Comment 11 Spider (RETIRED) gentoo-dev 2002-10-29 13:26:49 UTC
okay, then we need to patch and nudge at upstream people. 
Comment 13 foser (RETIRED) gentoo-dev 2002-10-29 19:22:23 UTC
Ok a fixed gnome-panel is in (1.4.2-r2). please test
Comment 14 foser (RETIRED) gentoo-dev 2002-10-29 19:32:04 UTC
And a fixed gnome-core (1.4.2-r1). Please test - can't test this one myself at all.
Comment 15 Angel Ortiz 2002-10-29 20:57:29 UTC
gnome-core (1.4.2-r1) emerged no problems :)  
Gnome started no problems after emerging the new package. 
Comment 16 zealott 2002-10-30 19:53:08 UTC
Whence might one find a copy of the gnome-core-1.4.2-r1 ebuild?
Comment 17 Angel Ortiz 2002-10-30 20:14:09 UTC
For zealott@attbi.com

emerge rsync
cd /usr/portage/gnome-base/gnome-panel
emerge gnome-panel-1.4.2-r1.ebuild

Thats it :)
Comment 18 zealott 2002-10-30 22:23:37 UTC
I have gnome-panel-1.4.2-r1.  It ebuilds fine.  I need a gnome-core that will
ebuild without an error.  I didn't get it from emerge sync.
Comment 19 Ken Brush 2002-10-31 01:14:45 UTC
Created attachment 5229 [details]
Updated ebuild to "fix" libpng

rather than fix every ebuild that uses -lpng without -lz & -lm. I decided to
just have libpng compiled with -lz & -lm in them (like 1.2.4 and all the other
distros).

The line I added was to the sed in src_compile (line #21): 
 -e "s/OBJSDLL = /OBJSDLL = -lz -lm /" \
Comment 20 Ken Brush 2002-10-31 01:36:29 UTC
Created attachment 5230 [details, diff]
Patch to libpng.1.2.5.ebuild

Same as the above fix, just in patch form, rather than the whole ebuild.
Comment 21 foser (RETIRED) gentoo-dev 2002-10-31 06:27:18 UTC
Hmm... sorry i hadn't committed the updated gnome-core. It should work now
(1.4.2-r1).

About the libpng patch, it's a possible solution but i don't like it much.
Upstream should use pkg-config or similar to find out the deps, not hardcode
them as they did here. Better get this fixed upstream, then have us 'fix' libpng
every release. So far only 2 packages really affected. I don't think that's much.
Comment 22 zealott 2002-10-31 08:09:57 UTC
gnome-panel compiles just fine.  I need a gnome-core that can compile.  I don't
have gnome-core-1.4.2-r1 in my portage tree after syncing.
Comment 23 foser (RETIRED) gentoo-dev 2002-10-31 08:14:20 UTC
gnome-core-1.4.2-r1 is in the tree right now. give it some time to progate.
Comment 24 zealott 2002-10-31 08:27:15 UTC
Okay d:^) I got it.  Just a little confusion on my part.  gnome-core-1.4.2-r1 is
compiling as I write.  I now know that at least the first problem is fixed. 
Thank you all so much.
Comment 25 Ken Brush 2002-10-31 10:12:17 UTC
Well, developers of these programs are expecting zlib and math to be already
compiled into libpng.  You can add pdflib to the list of things that you will
need to fix.
Comment 26 SpanKY gentoo-dev 2002-10-31 10:21:33 UTC
i already fixed pdflib ;) 
Comment 27 foser (RETIRED) gentoo-dev 2002-10-31 16:25:09 UTC
Well, developers shouldnt expect anything from a package then specified by the
package itsself. And im sure they will adapt.
Comment 28 Nathan W. Labadie 2002-11-15 09:24:12 UTC
I was having the same problems. The updated ebuild (Updated ebuild to "fix"
libpng) corrected the errors.
Comment 29 Matt Keadle 2002-11-22 04:32:30 UTC
add media-video/gqcam to the mix. needs to be fixed. also, the notion that this
is an upsteam problem may be correct, but that's not much of an excuse to offer
a user when something breaks. 
Comment 30 foser (RETIRED) gentoo-dev 2002-11-22 07:34:37 UTC
Thats was not so much a comment in general, but my objection to the proposed fix.
Comment 31 foser (RETIRED) gentoo-dev 2002-11-26 19:03:43 UTC
gqcam is fixed
Comment 32 foser (RETIRED) gentoo-dev 2002-12-20 17:37:48 UTC
I had a mail conversation with the current libpng maintainer and it turned out
altough the choice was made to do it this way, by now they had decided to revert
it back 2.1.4 style again for the next release. So I fixed libpng itsself.
libpng-1.2.5-r1 is in, thanks all for the help.