Hans-Christoph Steiner ha scritto:
Hey,
There is a strange build issue with tclpd. Basically, the first time you try to build it, swig throws an error, but generates tcl_wrap.cxx anyway. Then the second time things build. Here's the build transcript, the error seems to be "Syntax error in input":
pd@debian-stable-i386:externals > make tclpd
[...]
is your problem reproducible with vanilla pd? how's pd-extended's m_pd.h differs from vanilla's m_pd.h ?
I give a quick check, and I see that line 467 of pd-extended:
http://pure-data.svn.sourceforge.net/viewvc/pure-data/branches/pd-extended/v...
it's different from vanilla pd:
http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/pd/src/m_pd.h?re...
just compare the two sources. you will find the answer by yourself (I hope). I am not sure what "__attribute__ ((format (printf, 1, 2)));" is for.
if it gives trouble, you can always disable the wrapping of this function by swig, but I believe error() is required by externals written in Tcl, so it would not be a clever solution.