Re: Build Errors with compilation on FC4 64bit

Hi Nigel,

I replaced www-amaya@w3.org by www-amaya-dev@w3.org

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

> .../../../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

> .../../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

> 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

-- 
     Irène.
-----
Irène Vatton                     INRIA Rhône-Alpes
INRIA                               ZIRST
e-mail: Irene.Vatton@inria.fr       655 avenue de l'Europe
Tel.: +33 4 76 61 53 61             Montbonnot
Fax:  +33 4 76 61 52 07             38334 Saint Ismier Cedex - France

Received on Thursday, 5 January 2006 14:31:28 UTC