MetaKit 2.01: problem with g++ 2.95.2

Gregor Hoffleit gregor at hoffleit.de
Tue Apr 25 02:19:32 EDT 2000


When I try to compile the Python extensions for MetaKit 2.01 on Debian
GNU/Linux (using GNU C++ 2.95.2), it fails (in python/PyView.cpp) with what
looks to me like an C++ error (see below for the transcript).

Furthermore, for some reason I'm unable to compile the kit with tcl8.0-dev
(see below for the error log in compiling tcl/mk4tcl.cpp), though, IIRC
tcl8.2-dev worked fine.


The README implies that the build would work with gcc 2.95.2. Has anybody
reports on success or problems with a similar configuration ? My C++
knowledge is so sparse that I don't see where the problem could be.


    Gregor 


PS: I already reported this to the MetaKit Bug Tracking system as #104541
(http://sourceforge.net/bugs/?func=detailbug&bug_id=104541&group_id=736),
but got no response yet.
    


clapton:3> make Mk4py.so
...
/bin/sh ./libtool --mode=compile c++ -c -O3 -fomit-frame-pointer -DNDEBUG \
   -I../include -I../python/scxx -I/usr/include/python1.5 ../python/PyView.cpp
rm -f .libs/PyView.lo
c++ -c -O3 -fomit-frame-pointer -DNDEBUG -I../include -I../python/scxx \
-I/usr/include/python1.5 ../python/PyView.cpp  -fPIC -DPIC -o .libs/PyView.lo
../python/PyView.cpp: In method void PyView::map(const PWOCallable &)':
../python/PyView.cpp:962: 
     initialization of non-const reference type class PWOBase &'
../python/PyView.cpp:962: from rvalue of type PWOBase'
../python/scxx/PWOSequence.h:121: 
     in passing argument 2 of PWOTuple::setItem(int, PWOBase &)'
../python/PyView.cpp: 
     In method void PyView::map(const PWOCallable &, const PyView &)':
../python/PyView.cpp:972: 
     initialization of non-const reference type class PWOBase &'
../python/PyView.cpp:972: from rvalue of type PWOBase'
../python/scxx/PWOSequence.h:121: 
     in passing argument 2 of PWOTuple::setItem(int, PWOBase &)'
../python/PyView.cpp: 
     In method class PyView * PyView::filter(const PWOCallable &)':
../python/PyView.cpp:1000: 
     initialization of non-const reference type class PWOBase &'
../python/PyView.cpp:1000: from rvalue of type PWOBase'
../python/scxx/PWOSequence.h:121: 
     in passing argument 2 of PWOTuple::setItem(int, PWOBase &)'
../python/PyView.cpp: 
 In method struct PyObject * PyView::reduce(const PWOCallable &, PWONumber &)':
../python/PyView.cpp:1015: 
     initialization of non-const reference type class PWOBase &'
../python/PyView.cpp:1015: from rvalue of type PWOBase'
../python/scxx/PWOSequence.h:121: 
     in passing argument 2 of PWOTuple::setItem(int, PWOBase &)'
make: *** [PyView.o] Error 1





freefly;40> make
/bin/sh ./libtool --mode=compile c++ -c -O3 -fomit-frame-pointer -DNDEBUG \
     -I../include -I../../include -I/usr/lib/../generic -DUSE_TCL_STUBS \
     ../tcl/mk4tcl.cpp
rm -f .libs/mk4tcl.lo
c++ -c -O3 -fomit-frame-pointer -DNDEBUG -I../include -I../../include \
     -I/usr/lib/../generic -DUSE_TCL_STUBS ../tcl/mk4tcl.cpp  -fPIC -DPIC -o \
     .libs/mk4tcl.lo
../tcl/mk4tcl.cpp:54: mkMutex' was not declared in this scope
../tcl/mk4tcl.cpp:66: ANSI C++ forbids declaration TCL_DECLARE_MUTEX' with
     no type
../tcl/mk4tcl.cpp:66: syntax error before {'
../tcl/mk4tcl.cpp:69: destructors must be member functions
../tcl/mk4tcl.cpp:71: non-member function GetLength()' cannot have const'
     method qualifier
../tcl/mk4tcl.cpp:74: non-member function GetData(int)' cannot have const'
     method qualifier
../tcl/mk4tcl.cpp:75: new declaration void * GetData(int)'
../tcl/mk4tcl.cpp:74: ambiguates old declaration const void * GetData(int)'
../tcl/mk4tcl.cpp:82: parse error before private'
../tcl/mk4tcl.cpp:85: parse error before }'
../tcl/mk4tcl.cpp:108: syntax error before ;'
../tcl/mk4tcl.cpp: In method int c4_PtrArray::GetSize() const':
../tcl/mk4tcl.cpp:127: _vector' undeclared (first use this function)
../tcl/mk4tcl.cpp:127: (Each undeclared identifier is reported only once
../tcl/mk4tcl.cpp:127: for each function it appears in.)
../tcl/mk4tcl.cpp: In function struct Tcl_Obj * GetAsObj(const c4_RowRef &,
     const c4_Property &, Tcl_Obj * = 0)':
../tcl/mk4tcl.cpp:459: implicit declaration of function int
     Tcl_SetByteArrayObj(...)'
../tcl/mk4tcl.cpp: In function int SetAsObj(Tcl_Interp *, const c4_RowRef &,
     const c4_Property &, Tcl_Obj *)':
../tcl/mk4tcl.cpp:514: implicit declaration of function int
     Tcl_GetByteArrayFromObj(...)'
../tcl/mk4tcl.cpp:514: initialization to const t4_byte *' from int' lacks a
     cast
../tcl/mk4tcl.cpp: In method int TclSelector::MatchOneString(int, const char
     *, const c4_String &)':
../tcl/mk4tcl.cpp:1668: implicit declaration of function int
     Tcl_StringCaseMatch(...)'
../tcl/mk4tcl.cpp:1668: warning: cannot pass objects of type const
     c4_String' through ...'
../tcl/mk4tcl.cpp: In method int MkTcl::Execute(int, Tcl_Obj *const *)':
../tcl/mk4tcl.cpp:2980: mkMutex' undeclared (first use this function)
../tcl/mk4tcl.cpp:2980: implicit declaration of function int
     Tcl_MutexLock(...)'
../tcl/mk4tcl.cpp:2982: implicit declaration of function int
     Tcl_MutexUnlock(...)'
../tcl/mk4tcl.cpp: In function int Mktcl_Cmds(Tcl_Interp *, int)':
../tcl/mk4tcl.cpp:3012: implicit declaration of function int
     Tcl_InitStubs(...)'
../tcl/mk4tcl.cpp:3012: warning: NULL used in arithmetic
make: *** [mk4tcl.o] Error 1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20000425/452a7b8b/attachment.sig>


More information about the Python-list mailing list