Hello,
Mahogany 0.67 does not build on my system if using --with-python=none
option. It cannot cast Profile* to int:
mail/MailFolderCC.cpp: In member function `bool
MailFolderCC::Open(MailFolder::OpenMode)':
mail/MailFolderCC.cpp:2478: error: cast from `Profile*' to `int' loses precision
mail/MailFolderCC.cpp: In member function `virtual void
MailFolderCC::ExpungeMessages()':
mail/MailFolderCC.cpp:3314: error: cast from `Profile*' to `int' loses precision
mail/MailFolderCC.cpp: In destructor `CCStreamCleaner::~CCStreamCleaner()':
mail/MailFolderCC.cpp:4918: warning: dereferencing type-punned pointer will
break strict-aliasing rules
mail/MailFolderCC.cpp:4922: warning: dereferencing type-punned pointer will
break strict-aliasing rules
mail/MailFolderCC.cpp:4924: warning: dereferencing type-punned pointer will
break strict-aliasing rules
make[1]: *** [mail/MailFolderCC.o] Error 1
make[1]: Leaving directory
`/home/hs/drawer/projects/mahogany/mahogany/mahogany-0.67.cvs/src'
make: *** [all] Error 2
It probably affects only 64-bit systems. Change from int to long in
PY_CALLBACK stuff fixed it. Here is the patch:
--- mahogany-0.67.cvs/include/Mcommon.h 2006-01-16 21:32:01.000000000 +0100
+++ mahogany-0.67.buildfix/include/Mcommon.h 2007-05-08 15:36:50.000000000 +0
200
@@ -149,9 +149,9 @@
*/
# define PY_CALLBACKVA(arg,default) PythonCallback arg
#else
-# define PY_CALLBACK(name, profile, default) PythonCallback((int)default)
- inline int PythonCallback(int def) { return def; }
-# define PY_CALLBACKVA(arg,default) PythonCallback((int)default)
+# define PY_CALLBACK(name, profile, default) PythonCallback((long)default)
+ inline long PythonCallback(long def) { return def; }
+# define PY_CALLBACKVA(arg,default) PythonCallback((long)default)
#endif
//@}
If building _with_ python, there is another error (undefined
PyBool_FromLong), but it is already fixed in svn.
If someone is interested in building of Mahogany 0.67, a patch that
includes all build fixes can be found in Gentoo bugzilla: see
https://bugs.gentoo.org/attachment.cgi?id=118560 or check out the bug
#143894 for other patches as well.
My system specs: amd64, Gentoo Linux, gcc-4.1.1, wxGTK-2.6.3.3,
python-2.4.3.
Robert
--
Robert Cernansky
E-mail: [EMAIL PROTECTED]
Jabber: [EMAIL PROTECTED]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mahogany-Developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers