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)
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
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!
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
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
db fix