I was compiling PureData from scratch today and after automake/configure/make, I received this error:
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 -O6 -funroll-loops -fomit-frame-pointer -DUSEAPI_JACK -D_LARGEFILE64_SOURCE -DINSTALL_PREFIX=\"/home/ssteve/.local\" -c -o ../obj/s_audio_jack.o s_audio_jack.c
s_audio_jack.c:197: error: ‘jack_error_callback’ redeclared as different kind of symbol
/usr/include/jack/jack.h:776: error: previous declaration of ‘jack_error_callback’ was here
make: *** [s_audio_jack.o] Error 1
The solution was to rename the jack_error_callback function, so I added an underscore. Maybe there is a better solution. I am using Ubuntu Gutsy (development version of Ubuntu), with gcc-4.1.3:
$ gcc --version
gcc (GCC) 4.1.3 20070718 (prerelease) (Ubuntu 4.1.2-14ubuntu1)
Anonymous
Fix jack-related compile error on Ubuntu Gutsy, gcc-4.1.3
Logged In: NO
This should already be fixed in 0.41-test05
Logged In: YES
user_id=616837
Originator: YES
If it's already been fixed that's fine, though I did check the project fresh out of CVS before compiling it and getting this error. Running it, I see that I have version 0.41.0-test04, so I'm not sure why I don't have the latest if that's the case.
Logged In: YES
user_id=27104
Originator: NO
seems to be fixed, or at least Pd is building again from the HEAD of MAIN. Please reopen this bug if it is still a problem.