Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 9792
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Linux Gnome Desktop Team <gnome@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: pkize@yahoo.com
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
libpng-1.2.5.ebuild Updated ebuild to "fix" libpng text/plain Ken Brush 2002-10-31 01:14 0000 1.20 KB Details
libpng.patch Patch to libpng.1.2.5.ebuild patch Ken Brush 2002-10-31 01:36 0000 356 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 9792 depends on: Show dependency tree
Bug 9792 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2002-10-27 18:50 0000
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 From Martin Vollrathson 2002-10-27 23:05:14 0000 -------
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 From SpanKY 2002-10-28 10:45:49 0000 -------
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 From foser (RETIRED) 2002-10-29 05:21:01 0000 -------
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 From foser (RETIRED) 2002-10-29 05:25:37 0000 -------
*** Bug 9769 has been marked as a duplicate of this bug. ***

------- Comment #5 From foser (RETIRED) 2002-10-29 05:25:52 0000 -------
*** Bug 9757 has been marked as a duplicate of this bug. ***

------- Comment #6 From Spider (RETIRED) 2002-10-29 07:56:20 0000 -------
can't we just hack the libpng "config" script to include -lz -lstdc++ for
CFLAGS/LDFLAGS ? 

------- Comment #7 From foser (RETIRED) 2002-10-29 08:40:33 0000 -------
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 From SpanKY 2002-10-29 10:29:47 0000 -------
*** Bug 9897 has been marked as a duplicate of this bug. ***

------- Comment #9 From SpanKY 2002-10-29 11:35:17 0000 -------
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 From foser (RETIRED) 2002-10-29 12:53:10 0000 -------
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 From Spider (RETIRED) 2002-10-29 13:26:49 0000 -------
okay, then we need to patch and nudge at upstream people. 

------- Comment #12 From Marcus Bradley 2002-10-29 14:49:21 0000 -------
more people having problems with libpng:
http://forums.gentoo.org/viewtopic.php?t=19967&highlight=libpng
http://forums.gentoo.org/viewtopic.php?t=20216&highlight=libpng

------- Comment #13 From foser (RETIRED) 2002-10-29 19:22:23 0000 -------
Ok a fixed gnome-panel is in (1.4.2-r2). please test

------- Comment #14 From foser (RETIRED) 2002-10-29 19:32:04 0000 -------
And a fixed gnome-core (1.4.2-r1). Please test - can't test this one myself at
all.

------- Comment #15 From Angel Ortiz 2002-10-29 20:57:29 0000 -------
gnome-core (1.4.2-r1) emerged no problems :)  
Gnome started no problems after emerging the new package. 

------- Comment #16 From zealott@attbi.com 2002-10-30 19:53:08 0000 -------
Whence might one find a copy of the gnome-core-1.4.2-r1 ebuild?

------- Comment #17 From Angel Ortiz 2002-10-30 20:14:09 0000 -------
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 From zealott@attbi.com 2002-10-30 22:23:37 0000 -------
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 From Ken Brush 2002-10-31 01:14:45 0000 -------
Created an attachment (id=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 From Ken Brush 2002-10-31 01:36:29 0000 -------
Created an attachment (id=5230) [details]
Patch to libpng.1.2.5.ebuild

Same as the above fix, just in patch form, rather than the whole ebuild.

------- Comment #21 From foser (RETIRED) 2002-10-31 06:27:18 0000 -------
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 From zealott@attbi.com 2002-10-31 08:09:57 0000 -------
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 From foser (RETIRED) 2002-10-31 08:14:20 0000 -------
gnome-core-1.4.2-r1 is in the tree right now. give it some time to progate.

------- Comment #24 From zealott@attbi.com 2002-10-31 08:27:15 0000 -------
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 From Ken Brush 2002-10-31 10:12:17 0000 -------
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 From SpanKY 2002-10-31 10:21:33 0000 -------
i already fixed pdflib ;) 

------- Comment #27 From foser (RETIRED) 2002-10-31 16:25:09 0000 -------
Well, developers shouldnt expect anything from a package then specified by the
package itsself. And im sure they will adapt.

------- Comment #28 From Nathan W. Labadie 2002-11-15 09:24:12 0000 -------
I was having the same problems. The updated ebuild (Updated ebuild to "fix"
libpng) corrected the errors.

------- Comment #29 From Matt Keadle 2002-11-22 04:32:30 0000 -------
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 From foser (RETIRED) 2002-11-22 07:34:37 0000 -------
Thats was not so much a comment in general, but my objection to the proposed
fix.

------- Comment #31 From foser (RETIRED) 2002-11-26 19:03:43 0000 -------
gqcam is fixed

------- Comment #32 From foser (RETIRED) 2002-12-20 17:37:48 0000 -------
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.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug