Bug#661292: mathgl: FTBFS: conditional expression between distinct pointer types 'gzFile' and 'FILE* {aka _IO_FILE*}' lacks a cast

Dimitrios Eftaxiopoulos eftaxi12 at otenet.gr
Sun Feb 26 08:47:37 UTC 2012


Tags: pending

Hello,

I have been working on this for the last three days, I have managed to build 
mathgl and an upload will be done shortly.

Thank you for your report
Dimitris

Στις Κυρ 26 Φεβ 2012 01:47:55 γράψατε:
> Source: mathgl
> Version: 1.11.2-8
> Severity: serious
> Justification: fails to build from source
> 
> mathgl FTBFS:
> | /bin/bash ../libtool  --tag=CXX   --mode=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 -o libmgl_la-mgl_eps.lo `test -f
> | 'mgl_eps.cpp' || echo './'`mgl_eps.cpp 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[2]: Leaving directory
> | `/build/buildd-mathgl_1.11.2-8+b2-i386-IgzP3R/mathgl-1.11.2/mgl'
> | make[1]: *** [all-recursive] Error 1
> | make[1]: Leaving directory
> | `/build/buildd-mathgl_1.11.2-8+b2-i386-IgzP3R/mathgl-1.11.2'
> | dh_auto_build: make -j1 returned exit code 2
> | make: *** [build-stamp] Error 2
> 
> Full build log:
> https://buildd.debian.org/status/fetch.php?pkg=mathgl&arch=i386&ver=1.11.2-
> 8%2Bb2&stamp=1330212006





More information about the debian-science-maintainers mailing list