Re: Build Errors with compilation on FC4 64bit
"Nigel J. Terry" <[email protected]>
| Newsgroups | gmane.comp.web.amaya.devel |
|---|---|
| Message-ID | <[email protected]> |
Irene. See comments / updates below: Irene Vatton wrote: Hi Nigel, I replaced [email protected] by [email protected] On Thursday 05 January 2006 00:57, Nigel J. Terry wrote: I'm trying to build Amaya on my Fedora Core4 system. This is a 64bit system and I suspect that is at the root of these problems. I run Gnome as my desktop and it is not clear to me whether I need specify --with-gtk. When I $ ../configure $ make all I get .... -DTEMPLATES -DDAV -DHT_DAV -c ../../davlib/AHTLockBase.c -o AHTLockBase.o In file included from ../../davlib/h/AHTLockBase.h:21, from ../../davlib/AHTLockBase.c:20: .../../../libwww/Library/src/wwwsys.h:132:21: error: wwwconf.h: No such file or directory wwwconf.h should be generated by configure and localized in your Amaya/obj/libwww directory This is not produced. In fact there is no libwww directory. The obj directore contains [nterry@homepc obj]$ ls amaya davlib pluginlib thotlib annotlib libjpeg script_install tools batch libpng script_install_gnomekde wxWidgets_RELEASE config.h Makefile script_install_macosxbundle config.log Mesa script_uninstall config.status Options.orig stamp-h [nterry@homepc obj]$ The only similar file I can find is wwwconf.h.in in Amaya_Build/libwww. Amaya_Build is the base directory into which I extracted the download. I attach the config.log in case this helps .../../../libwww/Library/src/wwwsys.h:1324: error: conflicting declaration ‘char* sys_errlist []’ /usr/include/bits/sys_errlist.h:28: error: ‘sys_errlist’ has a previous declaration as ‘const char* const sys_errlist []’ the configure should "define HAVE_STRERROR" to avoid this problem config.h already contains the line #define HAVE_STRERROR 1 does this need to be changed? .../../davlib/AHTLockBase.c: In function ‘BOOLEAN removeFromBase(char*, LockLine*)’: .../../davlib/AHTLockBase.c:964: warning: zero-length printf format string make[1]: *** [AHTLockBase.o] Error 1 make[1]: Leaving directory `/home/nterry/Desktop/Amaya_Build/Amaya/GTK/davlib' When I try $ ../configure --with-gtk $ make all I get .... g++ -O2 -Wall -x c++ -D__cplusplus -DHAVE_CONFIG_H -I.. -I../amaya -I../../davlib/f -I../../amaya -I../../amaya/f -I../libwww -I../../thotlib/include -I../../../libwww/Library/src -I../../../libwww/modules/expat/lib -I../../davlib/tree/h -I../../davlib/h -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include -I/usr/X11R6/include -I/usr/include -D_UNIX -DXML_GENERIC -D_GTK -DDAV -DHT_DAV -c ../../davlib/davlibUI.c -o davlibUI.o .../../davlib/davlibUI.c: In function ‘void DAVPreferencesDlg_callback(int, int, char*)’: .../../davlib/davlibUI.c:1188: error: cast from ‘char*’ to ‘int’ loses precision Could you test if it works when you replace (int) by l(ong int) line 1188 in davlib/davlibUI.c - GProp_DAV.numberTimeout = (int)data; + GProp_DAV.numberTimeout = (long int)data; Pay attention you must clean upt the object directory or use a different object directory to compile WX and GTK versions I made this change and tried again. I got more errors and fixed similar problems in davlib/davlibUI.c at line 1188 and annotlib/ANNOTmenu.c at lines 96 and 790 and amaya/MENUconf.c line 4130. Now it builds and delivers a binary. When I execute this I get: Gdk-ERROR **: BadValue (integer parameter out of range for operation) serial 164 error_code 2 request_code 51 minor_code 0 Whtd do you suggest next? Which version should I be running with Gnome? Nigel make[1]: *** [davlibUI.o] Error 1 make[1]: Leaving directory `/home/nterry/Desktop/Amaya_Build/Amaya/GTK/davlib' I'd be grateful for any advice. I have Amaya running on an old Windoze laptop, but would prefer it on my Linux box Many Thanks -- --------------------------------------------------------------------- Nigel J. Terry 345 Market Street West #214 Gaithersburg, MD 20878, USA Phone: +1 301 512 4952 Skype: nterry PGP Key: 0xA3D2F8E6 39º07.21N 077º14.17W ---------------------------------------------------------------------
config.log
(text/x-log, 133.9 KB) - not displayed