[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Mathgl build failure



Hello,
I get the following error trying to build mathgl since yesterday:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../include/mgl -DWITH_QT -
DWITH_WX -DWITH_FLTK -DWITH_GLUT -DMGL_FONT_PATH=\"/usr/share/mathgl/fonts/\" 
-DMOD_LIB_DIR=\"/usr/lib/mgl/\" -DHAVE_HDF5 -DH5_USE_16_API -DHAVE_HDF4 -
DHAVE_GIF -DHAVE_JPEG -pthread -I/usr/include/pixman-1 -
I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/glib-2.0 -
I/usr/lib/glib-2.0/include -I/usr/include/libpng12 -I/usr/include/freetype2 -
pthread -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/cairo 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libpng12 -
D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE 
-D_REENTRANT -Wall -I/usr/include -I../include -I../include -DHAVE_PTHREAD -g 
-O2 -c mgl_eps.cpp  -fPIC -DPIC -o .libs/libmgl_la-mgl_eps.o
mgl_eps.cpp: In member function 'virtual void mglGraphPS::WriteEPS(const 
char*, const char*)':
mgl_eps.cpp:308:55: error: conditional expression between distinct pointer 
types 'gzFile' and 'FILE* {aka _IO_FILE*}' lacks a cast
mgl_eps.cpp:456:19: error: invalid conversion from 'void*' to 'gzFile' [-
fpermissive]
/usr/include/zlib.h:1488:24: error:   initializing argument 1 of 'int 
gzclose(gzFile)' [-fpermissive]
mgl_eps.cpp: In member function 'virtual void mglGraphPS::WriteSVG(const 
char*, const char*)':
mgl_eps.cpp:467:55: error: conditional expression between distinct pointer 
types 'gzFile' and 'FILE* {aka _IO_FILE*}' lacks a cast
mgl_eps.cpp:623:19: error: invalid conversion from 'void*' to 'gzFile' [-
fpermissive]
/usr/include/zlib.h:1488:24: error:   initializing argument 1 of 'int 
gzclose(gzFile)' [-fpermissive]
make[2]: *** [libmgl_la-mgl_eps.lo] Error 1
make[1]: *** [all-recursive] Error 1
dh_auto_build: make -j1 returned exit code 2
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

It seems that this happens after a recent upload of zlib1g-dev 1.2.6.
Can someone give me a hint whether this error is related to zlib1g-dev (that 
is what I think) or to mathgl?

thanks
Dimitris


Reply to: