Bug 217361 - dev-lang/gdl-0.9_pre6 fails to emerge with plplot-5.9.0
Bug#: 217361 Product:  Gentoo Linux Version: 2007.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: markusle@gentoo.org Reported By: rose@rz.uni-potsdam.de
Component: Applications
URL: 
Summary: dev-lang/gdl-0.9_pre6 fails to emerge with plplot-5.9.0
Keywords:  
Status Whiteboard: 
Opened: 2008-04-12 07:39 0000
Description:   Opened: 2008-04-12 07:39 0000
"emerge dev-lang/gdl" fails with:

        i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/include/ImageMagick -I/usr/include/netcdf-3 -I/usr/include/hdf
-I/usr/include/hdf -I/usr/include/hdf5 -I/usr/include -I/usr/include
-I/usr/include -I/usr/include/python2.5   -DPJ_LIB__  -O2 -march=athlon-xp
-fomit-frame-pointer -c -o gdl-gdlgstream.o `test -f 'gdlgstream.cpp' || echo
'./'`gdlgstream.cpp
gdlgstream.cpp: In static member function 'static void
GDLGStream::SetErrorHandlers()':
gdlgstream.cpp:41: error: invalid conversion from 'int (*)(char*)' to 'int
(*)(const char*)'
gdlgstream.cpp:41: error:   initializing argument 1 of 'void plsexit(int
(*)(const char*))'
gdlgstream.cpp:42: error: invalid conversion from 'void (*)(char*)' to 'void
(*)(const char*)'
gdlgstream.cpp:42: error:   initializing argument 1 of 'void plsabort(void
(*)(const char*))'
make[3]: *** [gdl-gdlgstream.o] Error 1


In /usr/include/plplot/plplot.h belonging to plplot-5.9.0 plsexit is declared
as:
plsexit(int (*handler) (const char *));


in gdlgstream.cpp the argument PLPlotExitHandler of plsexit is defined as:

int PLPlotExitHandler(char *c)




Reproducible: Always

------- Comment #1 From Markus Dittrich 2008-04-13 13:17:34 0000 -------
Thanks for the note, Juergen!
I'll look into it.

best,
Markus

------- Comment #2 From Markus Dittrich 2008-04-13 19:00:54 0000 -------
Hi Juergen,

I believe this should be fixed now in portage cvs.
Please give it an hour to propagate to the mirrors
and let us know if you still have problems.

Thanks,
Markus