Hello,

I want to share with you my experinces of running Mahogany on 64-bit system
(Gentoo linux on amd64 arch.).

I was trying several combinations of Mahogany and wxWidgets versions. Then
I end up with cvs sources of Mahogany (from 6th april, I think) and
wxWidgets 2.5.5. wxWidgets builds fine on 64-bit. Howewer Mahogany did not
build successfully. I got this error:

c++ -o classes/Sequence.o -c -I/home/hs/unsettled/mahogany-test/M/include
-DNO_IDEA -DNO_DSA -DOPENSSL_NO_KRB5
-I/home/hs/unsettled/mahogany/wxGTK-2.5.5/lib/wx/include/gtk2-ansi-release-2.5
-I/home/hs/unsettled/mahogany/wxGTK-2.5.5/include
-I/home/hs/unsettled/mahogany/wxGTK-2.5.5/contrib/include
-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA
-I/home/hs/unsettled/mahogany-test/M/lib/imap/c-client
-I/home/hs/unsettled/mahogany-test/M/lib/compface
-I/home/hs/unsettled/mahogany-test/M/src/wx/vcard -fno-exceptions -fno-rtti
-fno-operator-names
-I/home/hs/unsettled/mahogany/wxGTK-2.5.5/lib/wx/include/gtk2-ansi-release-2.5
-I/home/hs/unsettled/mahogany/wxGTK-2.5.5/include
-I/home/hs/unsettled/mahogany/wxGTK-2.5.5/contrib/include
-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -O2 -MMD -Wall classes/Sequence.cpp
In file included from classes/Sequence.cpp:35:
/home/hs/unsettled/mahogany-test/M/include/UIdArray.h:27: error: zero width
for bit-field `wxAssert_UIdArray::TypeTooBigToBeStoredInwxBaseArrayInt'
make[1]: *** [classes/Sequence.o] Error 1 make[1]: Leaving directory
`/home/hs/unsettled/mahogany-test/M/src' make: *** [all] Error 2

However, fix is easy. Just replace WX_DEFINE_ARRAY_INT with
WX_DEFINE_ARRAY_LONG in file include/UIdArray.h (line 27):

27c27
< WX_DEFINE_ARRAY_INT(UIdType, UIdArray);
---
> WX_DEFINE_ARRAY_LONG(UIdType, UIdArray);

I'm using 64-bit Mahogany few days and it seem it works correctly. There
are few minor issues, but I think these are not 64-bit specific. Maybe I'll
discuss them here in future.

Oh, I almost forgot. I was use these configure options: ./configure
--with-wxdir=<path/to/wxGTK-2.5.5> --with-python=none

Happy 64-bit building. :-)

Robert


-- 
Robert Cernansky
E-mail: [EMAIL PROTECTED]
Jabber: [EMAIL PROTECTED]


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Mahogany-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-users

Reply via email to