hi all
i followed the README.cvs file included and when doing 'make' i get:
Making all in config make[1]: Entering directory `/home/roman/pd-svn/externals/moocow/pdstring/config' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/roman/pd-svn/externals/moocow/pdstring/config' Making all in src make[1]: Entering directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make all-recursive make[2]: Entering directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make[3]: Entering directory `/home/roman/pd-svn/externals/moocow/pdstring/src' gcc pdstring.c -o pdstring pdstring.c:41: error: expected ',' or ';' before 'PACKAGE_VERSION' In file included from pdstring.c:62: any2string.c:76: error: expected ',' or ';' before 'PACKAGE_VERSION' In file included from pdstring.c:63: string2any.c:59: error: expected ',' or ';' before 'PACKAGE_VERSION' make[3]: *** [pdstring] Error 1 make[3]: Leaving directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make: *** [all-recursive] Error 1
i am on ubuntu hardy i686, which uses comes with gcc version 4.2.3
roman
___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
Roman Haefeli wrote:
hi all
i followed the README.cvs file included and when doing 'make' i get:
Making all in config make[1]: Entering directory `/home/roman/pd-svn/externals/moocow/pdstring/config' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/roman/pd-svn/externals/moocow/pdstring/config' Making all in src make[1]: Entering directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make all-recursive make[2]: Entering directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make[3]: Entering directory `/home/roman/pd-svn/externals/moocow/pdstring/src' gcc pdstring.c -o pdstring pdstring.c:41: error: expected ',' or ';' before 'PACKAGE_VERSION' In file included from pdstring.c:62: any2string.c:76: error: expected ',' or ';' before 'PACKAGE_VERSION' In file included from pdstring.c:63: string2any.c:59: error: expected ',' or ';' before 'PACKAGE_VERSION' make[3]: *** [pdstring] Error 1 make[3]: Leaving directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make: *** [all-recursive] Error 1
i am on ubuntu hardy i686, which uses comes with gcc version 4.2.3
For some reason PACKAGE_VERSION is defined here: externals\build\src\any2string.c(1):#define PACKAGE_VERSION "CVS" I think it should properly be defined in a .h file that is #included by the above files.
Martin
moin all,
I take it all back (well, some of it at any rate). Looks like m_pd.h isn't the only problem after all -- you're missing at least one other compiler flag too...
On 2008-08-13 00:52:13, Martin Peach martin.peach@sympatico.ca appears to have written:
Roman Haefeli wrote:
hi all
i followed the README.cvs file included and when doing 'make' i get:
Making all in config make[1]: Entering directory `/home/roman/pd-svn/externals/moocow/pdstring/config' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/roman/pd-svn/externals/moocow/pdstring/config' Making all in src make[1]: Entering directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make all-recursive make[2]: Entering directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make[3]: Entering directory `/home/roman/pd-svn/externals/moocow/pdstring/src' gcc pdstring.c -o pdstring pdstring.c:41: error: expected ',' or ';' before 'PACKAGE_VERSION' In file included from pdstring.c:62: any2string.c:76: error: expected ',' or ';' before 'PACKAGE_VERSION' In file included from pdstring.c:63: string2any.c:59: error: expected ',' or ';' before 'PACKAGE_VERSION' make[3]: *** [pdstring] Error 1 make[3]: Leaving directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make: *** [all-recursive] Error 1
i am on ubuntu hardy i686, which uses comes with gcc version 4.2.3
For some reason PACKAGE_VERSION is defined here: externals\build\src\any2string.c(1):#define PACKAGE_VERSION "CVS" I think it should properly be defined in a .h file that is #included by the above files.
PACKAGE_VERSION ought to get defined in externals/moocow/pdstring/src/config.h via autoheader. Still, the redefinition shouldn't cause any (major) headaches unless you try to compile with "-Werror", which Roman is not.
Your observation brings to light another Truly Odd Thing, however: config.h only gets included if autoconf and autoheader are playing together nicely: in this case, the gcc call should include the argument "-DHAVE_CONFIG_H", which the above make log shows is not the case. So apparently, config.h isn't getting included, PACKAGE_VERSION isn't getting defined, and the errors we're seeing are plain old lexical errors from the C compiler.
Curioser and curioser... Roman, please do send along a copy of your config.log when you get a chance ;-) also the output (stdout and stderr) of ./autogen.sh and ./configure would be helpful:
bash$ (sh ./autogen.sh && ./configure && make) 2>&1 | tee build.log
marmosets, Bryan
On Tue, 2008-08-12 at 18:52 -0400, Martin Peach wrote:
Roman Haefeli wrote:
hi all
i followed the README.cvs file included and when doing 'make' i get:
Making all in config make[1]: Entering directory `/home/roman/pd-svn/externals/moocow/pdstring/config' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/roman/pd-svn/externals/moocow/pdstring/config' Making all in src make[1]: Entering directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make all-recursive make[2]: Entering directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make[3]: Entering directory `/home/roman/pd-svn/externals/moocow/pdstring/src' gcc pdstring.c -o pdstring pdstring.c:41: error: expected ',' or ';' before 'PACKAGE_VERSION' In file included from pdstring.c:62: any2string.c:76: error: expected ',' or ';' before 'PACKAGE_VERSION' In file included from pdstring.c:63: string2any.c:59: error: expected ',' or ';' before 'PACKAGE_VERSION' make[3]: *** [pdstring] Error 1 make[3]: Leaving directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/roman/pd-svn/externals/moocow/pdstring/src' make: *** [all-recursive] Error 1
i am on ubuntu hardy i686, which uses comes with gcc version 4.2.3
For some reason PACKAGE_VERSION is defined here: externals\build\src\any2string.c(1):#define PACKAGE_VERSION "CVS" I think it should properly be defined in a .h file that is #included by the above files.
how can i compile moocow then?
i tried: ./autogen.sh && ./configure && make
and:
cd <pd-svn>/externals make moocow
and both give a lot of errors.
roman
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
moin Roman,
On 2008-08-13 13:22:07, Roman Haefeli reduzierer@yahoo.de appears to have written:
how can i compile moocow then?
I'm feeling quite compiled enough already, thanks ;-)
i tried: ./autogen.sh && ./configure && make
this (above) is the "official" way to do it: calling this from e.g. externals/moocow/pdstring ought to build cleanly on normal(TM) systems.
and:
cd <pd-svn>/externals make moocow
... this looks like a pd-extended build idiom to me. The pd-extended build rules for my externals don't really do anything more than iterate (./autogen.sh && ./configure && make), in a more or less error-tolerant, autobuild-safe sort of way. The pd-extended rules I wrote expect certain make variables to be set which are only really valid for pd-extended builds though, so I think you're asking for trouble going the "make moocow" route, unless in the course of a whole pd-extended build (I still have to check out why and how those builds are failing). Using the first method (./autogen.sh && ./configure && make) is your best bet.
and both give a lot of errors.
Have you tried building from the pre-packaged sources on my pd page?
http://www.ling.uni-potsdam.de/~moocow/projects/pd
If these compile but the SVN sources don't, there might be a compatibility problem with your auto-tools (automake, autoconf, autoheader).
marmosets, Bryan
moin Roman,
I suspect that your CFLAGS aren't getting defined properly; in particular, I suspect you are missing an "-I$PD_SRC", where "$PD_SRC" is the directory containing your "m_pd.h". If this suspicion is correct, you should have seen something like the following from ./configure:
checking for m_pd.h... no configure: WARNING:-------------------------------------------------- configure: WARNING: could not find PD header file 'm_pd.h' configure: WARNING: -- things might get ugly. configure: WARNING:--------------------------------------------------
and `./configure --help` should have produced something like: bash$ ./configure --help `configure' configures pdstring 0.06 to adapt to many kinds of systems ... Optional Packages: --with-pd-include=DIR PD include directory (default=NONE) ... Some influential environment variables: ... CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> ... Report bugs to moocow@ling.uni-potsdam.de.
So, there are various ways of setting this flag when calling ./configure, e.g.: bash$ ./configure --with-pd-include="$PD_SRC"
or: bash$ ./configure CPPFLAGS="-I$PD_SRC"
or: bash$ export CPPFLAGS="-I$PD_SRC"; ./configure
or (less pedantically correct but ought to work anyways, at least for pdstring): bash$ ./configure CFLAGS="-I$PD_SRC"
... that said, your m_pd.h ought to be found auto-magically by ./configure, unless you have it in a non-standard location. By default, my ./configure scripts look for m_pd.h only in the c preprocessor's default include path (e.g. /usr/include, /usr/local/include, ...). I used to try to "guess" where the pd was installed by looking for /usr/local/pd, /usr/local/lib/pd, etc., but that got hairy for pd-extended builds, so now you have to either install m_pd.h in a default location (I use /usr/local/include, and I think pd-vanilla does too), or tell ./configure where to look.
If problems persist, please send me (or post) the file "config.log" produced by ./configure.
marmosets, Bryan
On 2008-08-12 19:41:11, Roman Haefeli reduzierer@yahoo.de appears to have written:
hi all
i followed the README.cvs file included and when doing 'make' i get:
Making all in config
...
gcc pdstring.c -o pdstring pdstring.c:41: error: expected ',' or ';' before 'PACKAGE_VERSION' In file included from pdstring.c:62: any2string.c:76: error: expected ',' or ';' before 'PACKAGE_VERSION' In file included from pdstring.c:63: string2any.c:59: error: expected ',' or ';' before 'PACKAGE_VERSION'
...
i am on ubuntu hardy i686, which uses comes with gcc version 4.2.3
I foresee no problems with your system: I just did a test build here at work on a debian box with gcc 4.2.3.