Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166970 - media-libs/ploticus-2.33 doesn't compile
Summary: media-libs/ploticus-2.33 doesn't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Daniel Black (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-15 08:22 UTC by Xie Yanbo
Modified: 2007-02-17 09:19 UTC (History)
1 user (show)

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 Xie Yanbo 2007-02-15 08:22:39 UTC
Installation broken when compile pl.o, looks like libgd headers do not setup very well.

Reproducible: Always

Steps to Reproduce:
1. Prepare
echo "media-libs/ploticus ~* *" >> /etc/portage/package.keywords
echo "media-libs/ploticus gd -plpng" >> /etc/portage/package.use

2. Install
sudo emerge -vat media-libs/ploticus

[ebuild  N    ] media-libs/ploticus-2.33  USE="gd nls -X -cpulimit -flash -svg -svgz -truetype" 456 kB 
[ebuild  N    ]  media-libs/gd-2.0.33  USE="-fontconfig -jpeg -png -truetype -xpm" 573 kB 
[ebuild  N    ]  media-libs/libpng-1.2.14  USE="-doc" 605 kB 
[ebuild  NS   ]   sys-devel/automake-1.10  872 kB 

3. Failed

Actual Results:  
The last information is:

x86_64-pc-linux-gnu-gcc -march=nocona -O3 -pipe  -DPLOTICUS -DUNIX -DTDH_NOREC -DWZ  -DLOCALE -DGD18=1  -DNOX11  -DNOSVG -DNOSWF -I/usr/X11R6/include  -DNORLIMIT -DPREFABS_DIR=\"/usr/share/ploticus/prefabs\" pl.o grgd.o devstuff.o proc_annotate.o proc_areadef.o proc_axis.o proc_bars.o proc_rect.o proc_breakaxis.o proc_categories.o proc_curvefit.o proc_settings.o proc_defineunits.o proc_drawcommands.o proc_getdata.o proc_import.o proc_legend.o proc_legendentry.o proc_line.o proc_lineplot.o proc_page.o proc_pie.o proc_print.o proc_rangebar.o proc_rangesweep.o proc_usedata.o proc_scatterplot.o proc_vector.o proc_symbol.o proc_processdata.o proc_tabulate.o proc_venndisk.o clickmap.o plhead.o execscriptfile.o execline.o lib.o details.o parse.o units.o preliminaries.o process_arg.o plvalue_subst.o cats.o fieldnames.o autorange.o nearest.o select.o memstuff.o color.o plg.o init.o arrow.o mark.o block.o pcode.o ps.o svg.o swf.o stub.o winscale.o lineclip.o smoothfit.o condex.o dates.o dbinterface.o err.o functions.o glroutines.o reslimits.o secondaryops.o shell.o sinterp.o tdhkit.o times.o value.o value_subst.o variable.o custom.o datetime.o localef.o  -lgd -lpng -lz -ljpeg  -lm    -o pl
grgd.o: In function `PLGG_eof':
grgd.c:(.text+0x373): undefined reference to `gdImageJpeg'
grgd.c:(.text+0x4f4): undefined reference to `gdImagePng'
grgd.o: In function `PLGG_imload':
grgd.c:(.text+0x7fe): undefined reference to `gdImageCreateFromJpeg'
grgd.c:(.text+0x86b): undefined reference to `gdImageCreateFromPng'
collect2: ld returned 1 exit status
make: *** [plgd18] Error 1
make: *** Waiting for unfinished jobs....
x86_64-pc-linux-gnu-gcc -c -march=nocona -O3 -pipe  -DPLOTICUS -DUNIX -DTDH_NOREC -DWZ  -DLOCALE -DGD18=1  -DNOX11  -DNOSVG -DNOSWF -I/usr/X11R6/include  -DNORLIMIT -DPREFABS_DIR=\"/usr/share/ploticus/prefabs\" devstuff.c -DGD16 -o devstuff16.o
x86_64-pc-linux-gnu-gcc -c -march=nocona -O3 -pipe  -DPLOTICUS -DUNIX -DTDH_NOREC -DWZ  -DLOCALE -DGD18=1  -DNOX11  -DNOSVG -DNOSWF -I/usr/X11R6/include  -DNORLIMIT -DPREFABS_DIR=\"/usr/share/ploticus/prefabs\" -I./gd16 -I./  gd16.c gd_io.c gd_io_dp.c gd_io_file.c gd_png.c
echo "done with gd16files" > gd16files

!!! ERROR: media-libs/ploticus-2.33 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ploticus-2.33.ebuild, line 94:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.




uname -a
Linux legalos 2.6.18-gentoo-r6 #2 SMP Sun Jan 7 00:01:52 CST 2007 x86_64 Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz GenuineIntel GNU/Linux
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2007-02-15 14:06:20 UTC
I'm pretty sure that this happens because you compile media-libs/gd without jpeg and png support(you have enabled gd support in ploticus) 
>[ebuild  N    ] media-libs/ploticus-2.33  USE="gd nls -X -cpulimit -flash -svg
----------------------------------------------  ^^  --------------------------

A solution is to recompile gd with png and jpeg flags enabled, and re-emerge ploticus, so:
echo media-libs/gd png jpeg >> /etc/portage/package.use;
emerge gd;emerge ploticus;

I'm not a dev, but I hope I helped,

Panagiotis
Comment 2 Xie Yanbo 2007-02-16 02:19:15 UTC
Thanks Panagiotis, it works great!

Can we let emerge check the dependence of jpeg and png support if people install ploticus with gd and png? An alert message from emerge can help peoples like me locate this mistake.
Comment 3 Daniel Black (RETIRED) gentoo-dev 2007-02-17 09:19:00 UTC
Thanks  Panagiotis. The ebuild now checks this is the case. Thanks for the bug report Xie.