Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11481 - graphviz fails on ebuild...
Summary: graphviz fails on ebuild...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: George Shapovalov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-02 06:45 UTC by Jan Gutter
Modified: 2003-04-04 01:28 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Gutter 2002-12-02 06:45:06 UTC
Graphviz fails on ebuild is looks like something from libpng isn't found:

gcc -mcpu=pentium4 -O3 -pipe -Wall -Wno-unknown-pragmas "-DDATE=\"Mon Dec  2
14:38:40 SAST 2002\"" -o .libs/dot dot.o  dotgen/.libs/libdot.al
common/.libs/libdotneato.al ../pathplan/.libs/libpathplan.so
../graph/.libs/libgraph.so ../cdt/.libs/libcdt.so ../gd/.libs/libgd.so
/usr/lib/libfreetype.so /usr/lib/libjpeg.so -lz -lm -Wl,--rpath
-Wl,/usr/lib/graphviz
common/.libs/libdotneato.al(gdgen.lo)(.text+0x2935): In function `loadimage':
: undefined reference to `gdImageCreateFromPng'
collect2: ld returned 1 exit status
make[3]: *** [dot] Error 1
make[3]: Leaving directory
`/var/tmp/portage/graphviz-1.8.10/work/graphviz-1.8.10/dotneato'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/graphviz-1.8.10/work/graphviz-1.8.10/dotneato'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/graphviz-1.8.10/work/graphviz-1.8.10'
make: *** [all-recursive-am] Error 2

!!! ERROR: media-gfx/graphviz-1.8.10 failed.
!!! Function src_compile, Line 39, Exitcode 2
!!! (no error message)
Comment 1 George Shapovalov (RETIRED) gentoo-dev 2002-12-02 22:31:16 UTC
Hi Jan.

Could you please check what versions of libpng you have isntalled:
What's the output of gpkg -i libpng?

Graphviz requires libpng-1.0.x to compile and will break with 1.2.x series..
Though this shouldn't happen since graphviz has =libpng-1.x* in its DEPEND (and
libpng is SLOTted, meaning that both versions can coexist..), coould you please
check if this is true in your case (did you get  an old version of ebuild by
some (weird) chance)?

George
Comment 2 Jan Gutter 2002-12-03 08:21:08 UTC
Ah... might explain it...

I've got media-libs/libpng-1.0.12-r1 and media-libs/libpng-1.2.5
I re-emerged media-libs/libpng-1.0.12-r1 and graphviz was fixed!

This might point to something fishy with libpng 1.0 and libpng 1.2 coexisting...


Thanks!
Comment 3 George Shapovalov (RETIRED) gentoo-dev 2002-12-04 16:27:52 UTC
Hi Jan.

Yes, it looks like this coexistance of both versions of libpng is problematic
and not only for this package. kdelibs is just one of the "major" ones that can
get broken (this was a big huck we had to do to resolve the problems caused by
abrupt api/abi change by libpng people). In this regard you might consider
emerging libpng-1.2 on top of what you have in order to avoid possible future
problems.

On somewhat brighter side :), well its actually kind of mixed.
I managed to make graphviz build without libpng support. This should resolve
this issue. More importantly looks like this will allow us to remove libpng-1.0
from portage *completely* as graphviz is the last package that depends on 1.0
specifically. 
Could you please test if the new revision (media-gfx/graphviz-1.8.10-r1) builds
and works fine? Are we missing any gravely crytical functionality in the new
package? As a benefit you will not have to worry about libpng issue coming up
when you do emerge -u world in future ;).
The ebuild is both "hard" and key-masked. Please comment it out in the package
mask and remove '~' from KEYWORDS to test it.
Thenks!

George
Comment 4 George Shapovalov (RETIRED) gentoo-dev 2003-01-14 18:38:39 UTC
Ok, libpng-1.0 finally got fixed. I updated graphviz-1.8.10 to take advantage of
this and link against correct version of libpng. Should work now.
Please test graphviz-1.8.10-r2.ebuild, it is keymasked at the moment.

George
Comment 5 John Davis (zhen) (RETIRED) gentoo-dev 2003-04-04 01:23:09 UTC
db fix
Comment 6 John Davis (zhen) (RETIRED) gentoo-dev 2003-04-04 01:28:03 UTC
db fix