Hi Self-Compiling-Users, I'm compiling mahogany myself, but when I'm trying to build it --with-python I get two compilation situations which fail:
1) --with-python=static --without-swig gives me: pts/0 /z/src/M/BUILD % ../configure --with-python=static --without-swig creating cache ./config.cache *** Configuring Mahogany for linux-gnu *** checking for debugging... no checking for optimization... yes checking for profiling... no checking for strict compiler options... no checking for i18n support... yes checking for Python scripting... static checking for whether we should use SWIG... no [...] checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc ) works... yes [...] checking for c++... c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no [...] checking for Python.h (2.1)... yes (in /usr/include/python2.1) checking for main in -lpython2.1... yes (in standard location) [...] checking for msgfmt... /usr/bin/msgfmt checking for wx-config... /usr/local/bin/wx-config checking for wxWindows version >= 2.3.2... yes (version 2.3.3) [...] pts/0 /z/src/M/BUILD % make [...] make[1]: Entering directory `/usr/local/src/M/BUILD/src' cp -f Python/MailFolder.cpp-swig Python/MailFolder.cpp cp -f Python/MailFolder.py-swig Python/MailFolder.py c++ -o Python/MailFolder.o -c -fPIC -I/usr/local/src/M/BUILD/include -I/usr/local/src/M/include -I/usr/include/python2.1 -I/usr/local/lib/wx/include/gtk-2.3 -I/usr/local/include -DGTK_NO_CHECK_CASTS -D__WXGTK__ -I/usr/local/src/M/extra/include -I/usr/local/src/M/BUILD/extra/src/c-client -I/usr/local/src/M/extra/src/compface -I/usr/local/src/M/src/wx/vcard -O2 -MMD -Wall Python/MailFolder.cpp Python/MailFolder.cpp: In function `char * SWIG_UnpackData(char *, void *, int)': Python/MailFolder.cpp:338: warning: `unsigned char uu' might be used uninitialized in this function Python/MailFolder.cpp: In function `struct PyObject * _wrap_MailFolder_CreateFolder(PyObject *, PyObject *)': Python/MailFolder.cpp:639: no method `MailFolder::CreateFolder' Python/MailFolder.cpp:632: warning: `bool result' might be used uninitialized in this function Python/MailFolder.cpp: In function `struct PyObject * _wrap_MailFolder_ConvertMessageStatusToString(PyObject *, PyObject *)': Python/MailFolder.cpp:665: no method `MailFolder::ConvertMessageStatusToString' Python/MailFolder.cpp: In function `struct PyObject * _wrap_MailFolder_SetSequenceFlag(PyObject *, PyObject *)': Python/MailFolder.cpp:882: no matching function for call to `MailFolder::SetSequenceFlag (const wxString &, int &, bool &)' /usr/local/src/M/include/MailFolder.h:583: candidates are: bool MailFolder::SetSequenceFlag(MailFolder::SequenceKind, const Sequence &, int, bool = true) /usr/local/src/M/include/MailFolder.h:587: bool MailFolder::SetSequenceFlag(const Sequence &, int, bool = true) Python/MailFolder.cpp:876: warning: `bool result' might be used uninitialized in this function Python/MailFolder.cpp: In function `struct PyObject * _wrap_FolderListingEntry_GetName(PyObject *, PyObject *)': Python/MailFolder.cpp:1371: `FolderListingEntry' undeclared (first use this function) Python/MailFolder.cpp:1371: (Each undeclared identifier is reported only once Python/MailFolder.cpp:1371: for each function it appears in.) Python/MailFolder.cpp:1371: `arg0' undeclared (first use this function) make[1]: *** [Python/MailFolder.o] Error 1 make[1]: Leaving directory `/usr/local/src/M/BUILD/src' make: *** [all] Error 2 2) --with-python=static pts/0 /z/src/M/BUILD % swig -version SWIG Version 1.1 (Build 883) Copyright (c) 1995-98 University of Utah and the Regents of the University of California Compiled with c++ pts/0 /z/src/M/BUILD % ../configure --with-python=static loading cache ./config.cache *** Configuring Mahogany for linux-gnu *** [...] checking for Python scripting... static checking for whether we should use SWIG... (cached) yes [...] checking for swig... (cached) /usr/bin/swig [...] pts/0 /z/src/M/BUILD % make [...] make[1]: Entering directory `/usr/local/src/M/BUILD/src' /usr/bin/swig -IPython/ -c++ -python -shadow -c -o Python/MAppBase.cpp Python/MAppBase.i Generating wrappers for Python Python/MAppBase.i : Line 9. Syntax error in input. Python/MAppBase.i : Line 25. Syntax error in input. Python/MAppBase.i : Line 38. Syntax error in input. SWIG : *** Warning. No module name specified. make[1]: *** [Python/MAppBase.o] Error 3 make[1]: Leaving directory `/usr/local/src/M/BUILD/src' make: *** [all] Error 2 I have nearly no knowledge of embedding python and of swig, so I ask before I'll try investigate the problem deeper. Currently I can't see why swig doesn't like lines with %module and %import, may be it's the wrong version for compiling mahogany? Anyone has a tip for me? Have a nice day, Harald ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mahogany-Users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mahogany-users
