Hi. I'm trying to build MathGL 1.11.2 on my Arch Linux 64bit system. I'm
getting the following error:
...
...
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../include/mgl
-I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/libpng14
-DWITH_QT -DWITH_WX -DWITH_FLTK -DWITH_GLUT
-DMGL_FONT_PATH=\"/usr/share/mathgl/fonts/\" -DMOD_LIB_DIR=\"/usr/lib/mgl/\"
-DHAVE_GIF -DHAVE_JPEG -I/usr/include/freetype2 -march=x86-64 -mtune=generic
-O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -Wall
-I/usr/include -I../include -I../include -DHAVE_PTHREAD -march=x86-64
-mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4
-D_FORTIFY_SOURCE=2 -MT libmgl_la-mgl_eps.lo -MD -MP -MF .deps/libmgl_la-
mgl_eps.Tpo -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'
/usr/include/zlib.h:1488:24: error: initializing argument 1 of 'int
gzclose(gzFile)'
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'
/usr/include/zlib.h:1488:24: error: initializing argument 1 of 'int
gzclose(gzFile)'
make: Error 1
make: se sale del directorio `/tmp/yaourt-tmp-unc/aur-
mathgl/src/mathgl-1.11.2/mgl'
make: Error 1
I'm not a programmer, so I really have no idea what this could be.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2012-02-23
Hi,
Yep, I got the exact same error trying to install MathGL 1.11.2 on Mac OSX
10.6.
By commenting out the problematic parts, the compiler continued only to find
similar errors in mgl_export.cpp
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi. I'm trying to build MathGL 1.11.2 on my Arch Linux 64bit system. I'm
getting the following error:
...
...
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../include/mgl
-I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/libpng14
-DWITH_QT -DWITH_WX -DWITH_FLTK -DWITH_GLUT
-DMGL_FONT_PATH=\"/usr/share/mathgl/fonts/\" -DMOD_LIB_DIR=\"/usr/lib/mgl/\"
-DHAVE_GIF -DHAVE_JPEG -I/usr/include/freetype2 -march=x86-64 -mtune=generic
-O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -Wall
-I/usr/include -I../include -I../include -DHAVE_PTHREAD -march=x86-64
-mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4
-D_FORTIFY_SOURCE=2 -MT libmgl_la-mgl_eps.lo -MD -MP -MF .deps/libmgl_la-
mgl_eps.Tpo -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'
/usr/include/zlib.h:1488:24: error: initializing argument 1 of 'int
gzclose(gzFile)'
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'
/usr/include/zlib.h:1488:24: error: initializing argument 1 of 'int
gzclose(gzFile)'
make: Error 1
make: se sale del directorio `/tmp/yaourt-tmp-unc/aur-
mathgl/src/mathgl-1.11.2/mgl'
make: Error 1
I'm not a programmer, so I really have no idea what this could be.
Hi,
Yep, I got the exact same error trying to install MathGL 1.11.2 on Mac OSX
10.6.
By commenting out the problematic parts, the compiler continued only to find
similar errors in mgl_export.cpp
This is due to incompatible changes in new zlib version. I commit a fix into
SVN which bypass it.