Sorry to bother with this but I'm trying to compile Pd from the CVS and it keeps failing and something that caught my attention at the end of the configure process is this:
checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for _LARGE_FILES value needed for large files... no configure: creating ./config.status config.status: creating makefile config.status: WARNING: makefile.in seems to ignore the --datarootdir setting
Could it be possible that not having support for large files is causing the problem and if so can anyone indicate how to turn it on? (am using gcc under openSUSE)
Thanks for your time helping out a Newbie!
Cheers
Eric
eric labelle wrote:
Sorry to bother with this but I'm trying to compile Pd from the CVS and it keeps failing and something that caught my attention at the end of the configure process is this:
checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for _LARGE_FILES value needed for large files... no configure: creating ./config.status config.status: creating makefile config.status : WARNING: makefile.in http://makefile.in seems to ignore the --datarootdir setting
Could it be possible that not having support for large files is causing the problem and if so can anyone indicate how to turn it on? (am using gcc under openSUSE)
the whole point to use configure is to detect certain features and do the build according to these. if a certain feature is unavailable, pd should be built without this feature (or the configure should stop with an error). your configure-output seems fine to me, mine does not look really different (well, my _FILE_OFFSET_BITS is 64, but i don't think that this will fail your build)
in order to give some valuable help, it would be interesting to know where the build fails, instead of showing some random lines where the problem might be (or as well not)...
anyhow, please post the actual error.
mfa.sdr IOhannes
hi Iohannes
Here are the last few lines it outputs when the make fails:
-I../portmidi/pm_linux -fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -O6 -funroll-loops -fomit-frame-pointer -D_LARGEFILE64_SOURCE -DINSTALL_PREFIX="/usr/local" -c -o ../obj/x_misc.o x_misc.c x_misc.c: In function 'cputime_bang2': x_misc.c:233: error: 'HZ' undeclared (first use in this function) x_misc.c:233: error: (Each undeclared identifier is reported only once x_misc.c:233: error: for each function it appears in.) make: *** [x_misc.o] Error 1
I hope this is in fact what you need to see I'm still pretty new at all this lol
Thanks for offering to help
Eric
2007/9/5, IOhannes m zmoelnig zmoelnig@iem.at:
eric labelle wrote:
Sorry to bother with this but I'm trying to compile Pd from the CVS and it keeps failing and something that caught my attention at the end of the configure process is this:
checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for _LARGE_FILES value needed for large files... no configure: creating ./config.status config.status: creating makefile config.status : WARNING: makefile.in http://makefile.in seems to ignore the --datarootdir setting
Could it be possible that not having support for large files is causing the problem and if so can anyone indicate how to turn it on? (am using gcc under openSUSE)
the whole point to use configure is to detect certain features and do the build according to these. if a certain feature is unavailable, pd should be built without this feature (or the configure should stop with an error). your configure-output seems fine to me, mine does not look really different (well, my _FILE_OFFSET_BITS is 64, but i don't think that this will fail your build)
in order to give some valuable help, it would be interesting to know where the build fails, instead of showing some random lines where the problem might be (or as well not)...
anyhow, please post the actual error.
mfa.sdr IOhannes
eric labelle wrote:
hi Iohannes
Here are the last few lines it outputs when the make fails:
-I../portmidi/pm_linux -fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -O6 -funroll-loops -fomit-frame-pointer -D_LARGEFILE64_SOURCE -DINSTALL_PREFIX="/usr/local" -c -o ../obj/x_misc.o x_misc.c x_misc.c: In function 'cputime_bang2': x_misc.c:233: error: 'HZ' undeclared (first use in this function) x_misc.c:233: error: (Each undeclared identifier is reported only once x_misc.c:233: error: for each function it appears in.) make: *** [x_misc.o] Error 1
weird. it seems like there is some mysterious preprocessor magic going on...
are you trying to compile vanilla pd or a special version of pd?
what is the exact compiler command that gets called to compile x_misc.c? (in your code snippet the 1st part is missing; it should start with "cc" or "gcc")
try running the preprocessor on the x_misc.c and send us the output [1]
mfa.sdr IOhannes
[1] on my machine the call to the compiler looks like: cc -g -O2 -DPD -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -DDL_OPEN -DPA_USE_OSS -DUNIX -DUNISTD -DUSEAPI_OSS -I../portaudio/pa_common -I../portaudio/pablio -I../portmidi/pm_common -I../portmidi/pm_linux -fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -D_LARGEFILE64_SOURCE -DINSTALL_PREFIX="/usr/local" -c -o ../obj/x_misc.o x_misc.c
so i call the preprocessor with: cpp -g -O2 -DPD -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -DDL_OPEN -DPA_USE_OSS -DUNIX -DUNISTD -DUSEAPI_OSS -I../portaudio/pa_common -I../portaudio/pablio -I../portmidi/pm_common -I../portmidi/pm_linux -fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -D_LARGEFILE64_SOURCE -DINSTALL_PREFIX="/usr/local" -o x_misc.m x_misc.c
(in short: replace "cc" with "cpp" and "../obj/x_misc.o" with "x_misc.m" and remove the "-c" flag; the interesting output is now in x_misc.m)
you can run these commands from the cmdline in pd/src/
hello
IOhannes m zmoelnig a écrit :
eric labelle wrote:
hi Iohannes
Here are the last few lines it outputs when the make fails:
-I../portmidi/pm_linux -fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -O6 -funroll-loops -fomit-frame-pointer -D_LARGEFILE64_SOURCE -DINSTALL_PREFIX="/usr/local" -c -o ../obj/x_misc.o x_misc.c x_misc.c: In function 'cputime_bang2': x_misc.c:233: error: 'HZ' undeclared (first use in this function) x_misc.c:233: error: (Each undeclared identifier is reported only once x_misc.c:233: error: for each function it appears in.) make: *** [x_misc.o] Error 1
weird. it seems like there is some mysterious preprocessor magic going on...
are you trying to compile vanilla pd or a special version of pd?
what is the exact compiler command that gets called to compile x_misc.c? (in your code snippet the 1st part is missing; it should start with "cc" or "gcc")
try running the preprocessor on the x_misc.c and send us the output [1]
mfa.sdr IOhannes
[1] on my machine the call to the compiler looks like: cc -g -O2 -DPD -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -DDL_OPEN -DPA_USE_OSS -DUNIX -DUNISTD -DUSEAPI_OSS -I../portaudio/pa_common -I../portaudio/pablio -I../portmidi/pm_common -I../portmidi/pm_linux -fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -D_LARGEFILE64_SOURCE -DINSTALL_PREFIX="/usr/local" -c -o ../obj/x_misc.o x_misc.c
so i call the preprocessor with: cpp -g -O2 -DPD -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -DDL_OPEN -DPA_USE_OSS -DUNIX -DUNISTD -DUSEAPI_OSS -I../portaudio/pa_common -I../portaudio/pablio -I../portmidi/pm_common -I../portmidi/pm_linux -fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -D_LARGEFILE64_SOURCE -DINSTALL_PREFIX="/usr/local" -o x_misc.m x_misc.c
(in short: replace "cc" with "cpp" and "../obj/x_misc.o" with "x_misc.m" and remove the "-c" flag; the interesting output is now in x_misc.m)
you can run these commands from the cmdline in pd/src/
here is the answer:
http://lists.puredata.info/pipermail/pd-dev/2007-08/009267.html
IOhannes m zmoelnig wrote:
eric labelle wrote:
hi Iohannes
Here are the last few lines it outputs when the make fails:
-I../portmidi/pm_linux -fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -O6 -funroll-loops -fomit-frame-pointer -D_LARGEFILE64_SOURCE -DINSTALL_PREFIX="/usr/local" -c -o ../obj/x_misc.o x_misc.c x_misc.c: In function 'cputime_bang2': x_misc.c:233: error: 'HZ' undeclared (first use in this function) x_misc.c:233: error: (Each undeclared identifier is reported only once x_misc.c:233: error: for each function it appears in.) make: *** [x_misc.o] Error 1
weird. it seems like there is some mysterious preprocessor magic going on...
http://lists.puredata.info/pipermail/pd-dev/2007-08/009267.html
Hope this helps.
Yes I followed the advice from the dev list that claude suggested (just a small tweak to the x_misc.c file) and it compiled like a charm!
Thanks everyone!
Eric
2007/9/5, Claude Heiland-Allen claudiusmaximus@goto10.org:
IOhannes m zmoelnig wrote:
eric labelle wrote:
hi Iohannes
Here are the last few lines it outputs when the make fails:
-I../portmidi/pm_linux -fno-strict-aliasing -DPA_USE_ALSA -DUSEAPI_ALSA -O6 -funroll-loops -fomit-frame-pointer -D_LARGEFILE64_SOURCE -DINSTALL_PREFIX="/usr/local" -c -o ../obj/x_misc.o x_misc.c x_misc.c: In function 'cputime_bang2': x_misc.c:233: error: 'HZ' undeclared (first use in this function) x_misc.c:233: error: (Each undeclared identifier is reported only once x_misc.c:233: error: for each function it appears in.) make: *** [x_misc.o] Error 1
weird. it seems like there is some mysterious preprocessor magic going
on...
http://lists.puredata.info/pipermail/pd-dev/2007-08/009267.html
Hope this helps.
Claude