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

Re: Mathgl build failure




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]

There's a similar error here:
https://aur.archlinux.org/packages.php?ID=16851&detail=0&comments=all (Under "Comment by: ShadowKyogre on Mon, 06 Feb 2012 03:49:32 +0000")

/tmp/yaourt-tmp-shadowkyogre/aur-vba-m-gtk-svn/src/vbam-build/fex/fex/Data_Reader.cpp: In member function ‘virtual const char* Gzip_File_Reader::read_v(void*, int)’:
/tmp/yaourt-tmp-shadowkyogre/aur-vba-m-gtk-svn/src/vbam-build/fex/fex/Data_Reader.cpp:735:35: error: invalid conversion from ‘void*’ to ‘gzFile’ [-fpermissive]
/usr/include/zlib.h:1290:21: error: initializing argument 1 of ‘int gzread(gzFile, voidp, unsigned int)’ [-fpermissive]
/tmp/yaourt-tmp-shadowkyogre/aur-vba-m-gtk-svn/src/vbam-build/fex/fex/Data_Reader.cpp:739:35: error: invalid conversion from ‘void*’ to ‘gzFile’ [-fpermissive]
/tmp/yaourt-tmp-shadowkyogre/aur-vba-m-gtk-svn/src/vbam-build/fex/fex/Data_Reader.cpp:718:21: error: initializing argument 1 of ‘const char* convert_gz_error(gzFile)’ [-fpermissive]

They suggested to add to the CXX_FLAGS "-fpermissive":
Add -DCMAKE_CXX_FLAGS="-fpermissive" to the cmake line and it compile.

Cheers,
Savvas

Reply to: