On Wed, 15 Oct 2003 09:15:14 +1000 (EST) Mark Livingstone <[EMAIL PROTECTED]> wrote:

ML> 
ML> OK. I have installed SWIG 1.3.19.
ML> 
ML> When I make M, I get the following:
ML> 
ML> /usr/bin/swig -I.src/Python/ -c++ -python -shadow -c -o
ML> Python/MailFolder.cpp .src/Python/MailFolder.i.src/Python/MailFolder.i:10:
ML> Syntax error in input.make[1]: *** [Python/MailFolder.o] Error 1
ML> make[1]: Leaving directory `/home/markl/M/build/src'
ML> make: *** [all] Error 2

OK. With a total absense of documentation on the new SWIG version bar a few
contrived examples, I finally figured out that the error was not line 10 as it
suggested but line 9. It did not like the %nodefaults directive it seems.

ML> If someone can give me a clue as good as the one Robert gave me on fixing up
ML> header file dependencies, I'll try to be as successful at figuring this out
ML> too :-)

I am now one step further. I will commit my changes to .src/Python ASAP.

/usr/bin/swig -I.src/Python/ -c++ -python -shadow -c -o Python/MailFolder.cpp 
.src/Python/MailFolder.i
c++ -o Python/MailFolder.o -c -I/home/markl/M/build/include -I/home/markl/M/include 
-I/usr/local/include/python2.3 -DNO_IDEA -DNO_DSA -DOPENSSL_NO_KRB5 -DDEBUG 
-DDEBUG_markl -I/usr/local/lib/wx/include/gtkd-2.5 -D__WXDEBUG__ -D__WXGTK__ 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/home/markl/M/extra/include 
-I/home/markl/M/build/extra/src/c-client -I/home/markl/M/extra/src/compface 
-I/home/markl/M/src/wx/vcard -fno-exceptions -fno-rtti -fno-operator-names -g3 -O0 
-MMD -Wall Python/MailFolder.cpp
Python/MailFolder.cpp: In function `PyObject* _wrap_MailFolder_CreateFolder(PyObject*, 
PyObject*)':
Python/MailFolder.cpp:764: no method `MailFolder::CreateFolder'
Python/MailFolder.cpp: In function `PyObject* 
_wrap_MailFolder_ConvertMessageStatusToString(PyObject*, PyObject*)':
Python/MailFolder.cpp:796: no method `MailFolder::ConvertMessageStatusToString'
Python/MailFolder.cpp: In function `PyObject* 
_wrap_MailFolder_SetSequenceFlag(PyObject*, PyObject*)':
Python/MailFolder.cpp:1101: no matching function for call to 
`MailFolder::SetSequenceFlag(const wxString&, int&, bool&)'
/home/markl/M/include/MailFolder.h:619: candidates are: virtual bool 
MailFolder::SetSequenceFlag(MailFolder::SequenceKind, const Sequence&, int, bool = 
true)
/home/markl/M/include/MailFolder.h:623:                 bool 
MailFolder::SetSequenceFlag(const Sequence&, int, bool = true)
Python/MailFolder.cpp: In function `PyObject* _wrap_new_MailFolder(PyObject*, 
PyObject*)':
Python/MailFolder.cpp:1510: cannot allocate an object of type `MailFolder'
Python/MailFolder.cpp:1510:   because the following virtual functions are abstract:
/home/markl/M/include/MailFolder.h:399:         virtual void 
MailFolder::ListFolders(ASMailFolder*, const String& = "*", bool = false, const 
String& = "", void* = 0, int = -1)
/home/markl/M/include/MailFolder.h:407:         virtual bool MailFolder::IsOpened() 
const
/home/markl/M/include/MailFolder.h:419:         virtual bool MailFolder::IsReadOnly() 
const
/home/markl/M/include/MailFolder.h:429:         virtual bool 
MailFolder::CanSetFlag(int) const
/home/markl/M/include/MailFolder.h:438:         virtual String MailFolder::GetName() 
const
/home/markl/M/include/MailFolder.h:444:         virtual String 
MailFolder::GetImapSpec() const
/home/markl/M/include/MailFolder.h:447:         virtual MFolderType 
MailFolder::GetType() const
/home/markl/M/include/MailFolder.h:450:         virtual int MailFolder::GetFlags() 
const
/home/markl/M/include/MailFolder.h:455:         virtual Profile* 
MailFolder::GetProfile() const
/home/markl/M/include/MailFolder.h:458:         virtual bool 
MailFolder::IsInCriticalSection() const
/home/markl/M/include/MailFolder.h:469:         virtual ServerInfoEntry* 
MailFolder::CreateServerInfo(const MFolder*) const
/home/markl/M/include/MailFolder.h:477:         virtual char 
MailFolder::GetFolderDelimiter() const
/home/markl/M/include/MailFolder.h:508:         virtual HeaderInfoList* 
MailFolder::GetHeaders() const
/home/markl/M/include/MailFolder.h:520:         virtual MsgnoType 
MailFolder::GetHeaderInfo(ArrayHeaderInfo&, const Sequence&)
/home/markl/M/include/MailFolder.h:528:         virtual long unsigned int 
MailFolder::GetMessageCount() const
/home/markl/M/include/MailFolder.h:534:         virtual long unsigned int 
MailFolder::CountNewMessages() const
/home/markl/M/include/MailFolder.h:537:         virtual long unsigned int 
MailFolder::CountRecentMessages() const
/home/markl/M/include/MailFolder.h:540:         virtual long unsigned int 
MailFolder::CountUnseenMessages() const
/home/markl/M/include/MailFolder.h:543:         virtual long unsigned int 
MailFolder::CountDeletedMessages() const
/home/markl/M/include/MailFolder.h:551:         virtual bool 
MailFolder::CountAllMessages(MailFolderStatus*) const
/home/markl/M/include/MailFolder.h:559:         virtual MsgnoType 
MailFolder::GetMsgnoFromUID(long unsigned int) const
/home/markl/M/include/MailFolder.h:567:         virtual bool MailFolder::Ping()
/home/markl/M/include/MailFolder.h:573:         virtual void MailFolder::Checkpoint()
/home/markl/M/include/MailFolder.h:579:         virtual Message* 
MailFolder::GetMessage(long unsigned int) const
/home/markl/M/include/MailFolder.h:585:         virtual bool 
MailFolder::DeleteMessage(long unsigned int)
/home/markl/M/include/MailFolder.h:590:         virtual bool 
MailFolder::UnDeleteMessage(long unsigned int)
/home/markl/M/include/MailFolder.h:603:         virtual bool 
MailFolder::SetMessageFlag(long unsigned int, int, bool = true)
/home/markl/M/include/MailFolder.h:619:         virtual bool 
MailFolder::SetSequenceFlag(MailFolder::SequenceKind, const Sequence&, int, bool = 
true)
/home/markl/M/include/MailFolder.h:641:         virtual bool 
MailFolder::AppendMessage(const Message&)
/home/markl/M/include/MailFolder.h:647:         virtual bool 
MailFolder::AppendMessage(const String&)
/home/markl/M/include/MailFolder.h:651:         virtual void 
MailFolder::ExpungeMessages()
/home/markl/M/include/MailFolder.h:668:         virtual UIdArray* 
MailFolder::SearchByFlag(MailFolder::MessageStatus, int = 2, long unsigned int = 0) 
const
/home/markl/M/include/MailFolder.h:678:         virtual UIdArray* 
MailFolder::SearchMessages(const SearchCriterium*, int = SEARCH_UID)
/home/markl/M/include/MailFolder.h:694:         virtual bool 
MailFolder::SaveMessages(const UIdArray*, MFolder*)
/home/markl/M/include/MailFolder.h:702:         virtual bool 
MailFolder::SaveMessages(const UIdArray*, const String&)
/home/markl/M/include/MailFolder.h:712:         virtual bool 
MailFolder::SaveMessagesToFile(const UIdArray*, const String&, wxWindow* = 0)
/home/markl/M/include/MailFolder.h:721:         virtual bool 
MailFolder::DeleteOrTrashMessages(const UIdArray*, int = DELETE_ALLOW_TRASH)
/home/markl/M/include/MailFolder.h:729:         virtual bool 
MailFolder::DeleteMessages(const UIdArray*, int = DELETE_NO_EXPUNGE)
/home/markl/M/include/MailFolder.h:735:         virtual bool 
MailFolder::UnDeleteMessages(const UIdArray*)
/home/markl/M/include/MailFolder.h:744:         virtual void 
MailFolder::ReplyMessages(const UIdArray*, const MailFolder::Params&, wxWindow* = 0)
/home/markl/M/include/MailFolder.h:753:         virtual void 
MailFolder::ForwardMessages(const UIdArray*, const MailFolder::Params&, wxWindow* = 0)
/home/markl/M/include/MailFolder.h:763:         virtual bool 
MailFolder::SortMessages(MsgnoType*, const SortParams&)
/home/markl/M/include/MailFolder.h:773:         virtual bool 
MailFolder::ThreadMessages(const ThreadParams&, ThreadData*)
/home/markl/M/include/MailFolder.h:784:         virtual bool MailFolder::Lock() const
/home/markl/M/include/MailFolder.h:788:         virtual void MailFolder::UnLock() const
/home/markl/M/include/MailFolder.h:791:         virtual bool MailFolder::IsLocked() 
const
/home/markl/M/include/MailFolder.h:813:         virtual bool 
MailFolder::ProcessNewMail(UIdArray&, const MFolder* = 0)
/home/markl/M/include/MailFolder.h:819:         virtual int 
MailFolder::ApplyFilterRules(const UIdArray&)
/home/markl/M/include/MailFolder.h:920:         virtual wxFrame* 
MailFolder::SetInteractiveFrame(wxFrame*)
/home/markl/M/include/MailFolder.h:925:         virtual wxFrame* 
MailFolder::GetInteractiveFrame() const
/home/markl/M/include/MailFolder.h:942:         virtual void 
MailFolder::RequestUpdate()
/home/markl/M/include/MailFolder.h:945:         virtual void 
MailFolder::SuspendUpdates()
/home/markl/M/include/MailFolder.h:948:         virtual void 
MailFolder::ResumeUpdates()
/home/markl/M/include/MailFolder.h:959:         virtual void MailFolder::Close(bool = 
true)
Python/MailFolder.cpp: In function `PyObject* _wrap_new_HeaderInfoList(PyObject*, 
PyObject*)':
Python/MailFolder.cpp:1781: cannot allocate an object of type `HeaderInfoList'
Python/MailFolder.cpp:1781:   because the following virtual functions are abstract:
/home/markl/M/include/HeaderInfo.h:197:         virtual MsgnoType 
HeaderInfoList::Count() const
/home/markl/M/include/HeaderInfo.h:200:         virtual HeaderInfo* 
HeaderInfoList::GetItemByIndex(long unsigned int) const
/home/markl/M/include/HeaderInfo.h:218:         virtual MsgnoType 
HeaderInfoList::GetIdxFromUId(long unsigned int) const
/home/markl/M/include/HeaderInfo.h:238:         virtual MsgnoType 
HeaderInfoList::GetIdxFromPos(long unsigned int) const
/home/markl/M/include/HeaderInfo.h:241:         virtual MsgnoType 
HeaderInfoList::GetPosFromIdx(long unsigned int) const
/home/markl/M/include/HeaderInfo.h:260:         virtual MsgnoType 
HeaderInfoList::GetOldPosFromIdx(long unsigned int) const
/home/markl/M/include/HeaderInfo.h:268:         virtual size_t 
HeaderInfoList::GetIndentation(long unsigned int) const
/home/markl/M/include/HeaderInfo.h:278:         virtual void 
HeaderInfoList::OnRemove(long unsigned int)
/home/markl/M/include/HeaderInfo.h:281:         virtual void 
HeaderInfoList::OnAdd(long unsigned int)
/home/markl/M/include/HeaderInfo.h:284:         virtual void HeaderInfoList::OnClose()
/home/markl/M/include/HeaderInfo.h:305:         virtual MsgnoType 
HeaderInfoList::FindHeaderByFlag(MailFolder::MessageStatus, bool = true, long int = -1)
/home/markl/M/include/HeaderInfo.h:313:         virtual MsgnoType 
HeaderInfoList::FindHeaderByFlagWrap(MailFolder::MessageStatus, bool = true, long int 
= -1)
/home/markl/M/include/HeaderInfo.h:320:         virtual UIdArray* 
HeaderInfoList::GetAllHeadersByFlag(MailFolder::MessageStatus, bool = true)
/home/markl/M/include/HeaderInfo.h:334:         virtual bool 
HeaderInfoList::SetSortOrder(const SortParams&)
/home/markl/M/include/HeaderInfo.h:343:         virtual bool 
HeaderInfoList::SetThreadParameters(const ThreadParams&)
/home/markl/M/include/HeaderInfo.h:366:         virtual long unsigned int 
HeaderInfoList::GetLastMod() const
/home/markl/M/include/HeaderInfo.h:375:         virtual bool 
HeaderInfoList::HasChanged(long unsigned int) const
/home/markl/M/include/HeaderInfo.h:384:         virtual void 
HeaderInfoList::CachePositions(const Sequence&)
/home/markl/M/include/HeaderInfo.h:389:         virtual void 
HeaderInfoList::CacheMsgnos(long unsigned int, long unsigned int)
/home/markl/M/include/HeaderInfo.h:397:         virtual bool 
HeaderInfoList::IsInCache(long unsigned int) const
/home/markl/M/include/HeaderInfo.h:402:         virtual bool 
HeaderInfoList::ReallyGet(long unsigned int)
Python/MailFolder.cpp: In function `PyObject* 
_wrap_FolderListingEntry_GetName(PyObject*, PyObject*)':
Python/MailFolder.cpp:1815: `FolderListingEntry' undeclared (first use this function)
Python/MailFolder.cpp:1815: (Each undeclared identifier is reported only once for each 
function it appears in.)
Python/MailFolder.cpp:1815: `arg1' undeclared (first use this function)
Python/MailFolder.cpp:1815: parse error before `)' token
Python/MailFolder.cpp: In function `PyObject* 
_wrap_FolderListingEntry_GetAttribute(PyObject*, PyObject*)':
Python/MailFolder.cpp:1835: parse error before `)' token
Python/MailFolder.cpp: In function `PyObject* 
_wrap_delete_FolderListingEntry(PyObject*, PyObject*)':
Python/MailFolder.cpp:1852: parse error before `)' token
Python/MailFolder.cpp: In function `PyObject* _wrap_new_FolderListingEntry(PyObject*, 
PyObject*)':
Python/MailFolder.cpp:1868: `result' undeclared (first use this function)
Python/MailFolder.cpp:1871: parse error before `)' token
make[1]: *** [Python/MailFolder.o] Error 1
make[1]: Leaving directory `/home/markl/M/build/src'
make: *** [all] Error 2
[EMAIL PROTECTED] build]#




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to