Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 166970
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Daniel Black <dragonheart@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Xie Yanbo <xieyanbo@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 166970 depends on: Show dependency tree
Bug 166970 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: 2007-02-15 08:22 0000
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 From Panagiotis Christopoulos 2007-02-15 14:06:20 0000 -------
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 From Xie Yanbo 2007-02-16 02:19:15 0000 -------
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 From Daniel Black 2007-02-17 09:19:00 0000 -------
Thanks  Panagiotis. The ebuild now checks this is the case. Thanks for the bug
report Xie.

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