amaya-9.1 build fails with gcc 4

Trying to build amaya-fullsrc-9.1 with gcc-4:

g++ -O2 -W -x c++ -D__cplusplus -D_UNIX  -D_GL -D_WX  -DHAVE_CONFIG_H
-I.. -I../../amaya/xpm -I../../thotlib/include
-I../../thotlib/internals/var -I../../thotlib/internals/h
-I../../thotlib/internals/f   
-I/usr/src/redhat/BUILD/wxWidgets/src/png
-I/usr/src/redhat/BUILD/wxWidgets/src/jpeg
-I/usr/src/redhat/BUILD/wxWidgets/src/tiff
-I/usr/src/redhat/BUILD/Amaya/linux/wxWidgets_RELEASE/lib/wx/include/gtk2-unicode-release-static-2.5
-I/usr/src/redhat/BUILD/wxWidgets/include
-I/usr/src/redhat/BUILD/wxWidgets/contrib/include -DGTK_NO_CHECK_CASTS
-D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA  
-I/usr/src/redhat/BUILD/Amaya/linux/Mesa/include 
-I/usr/include/X11/Xft -I/usr/include/freetype2  -DNODISPLAY -c
../../thotlib/base/fileaccess.c -o base/fileaccessND.o
../../thotlib/base/fileaccess.c: In function 'void
TtaExtractName(char*, char*, char*)':
../../thotlib/base/fileaccess.c:687: error: cast from 'char*' to 'int'
loses precision
../../thotlib/base/fileaccess.c:687: error: cast from 'char*' to 'int'
loses precision
make[1]: *** [base/fileaccessND.o] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/Amaya/linux/thotlib'

sean

Received on Thursday, 14 April 2005 02:18:08 UTC