[PD-dev] (no subject)
august
august at alien.mur.at
Fri Feb 20 22:24:48 CET 2004
downloading cvs from yesterday and trying to compile, I get these errors.
gcc -DPD -DUNIX -Wall -W -Wstrict-prototypes -Werror -Wno-unused
-Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer
-DDL_OPEN -DUSEAPI_PORTAUDIO -DPA_USE_OSS -DPA_LITTLE_ENDIAN
-DUSEAPI_OSS -I../portaudio/pa_common
-I../portaudio/pablio -I../portaudio/portmidi-macosx -Werror -DPA_USE_ALSA
-DUSEAPI_ALSA -DINSTALL_PREFIX=\"/usr/local\" -I. -c -o
../obj/g_mycanvas.o g_mycanvas.c
g_mycanvas.c: In function `my_canvas_new':
g_mycanvas.c:322: warning: implicit declaration of function
`iemgui_new_dogetname'
g_mycanvas.c:323: error: structure has no member named `x_labelbindex'
fix is to comment out those lines of code.
gcc -DPD -DUNIX -Wall -W -Wstrict-prototypes -Werror -Wno-unused
-Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer
-DDL_OPEN -DUSEAPI_PORTAUDIO -DPA_USE_OSS -DPA_LITTLE_ENDIAN
-DUSEAPI_OSS -I../portaudio/pa_common
-I../portaudio/pablio -I../portaudio/portmidi-macosx -Werror -DPA_USE_ALSA
-DUSEAPI_ALSA -DINSTALL_PREFIX=\"/usr/local\" -I. -c -o ../obj/d_ctl.o
d_ctl.c
d_ctl.c: In function `line_tilde_perform':
d_ctl.c:110: warning: dereferencing type-punned pointer will break
strict-aliasing rules
d_ctl.c:110: warning: dereferencing type-punned pointer will break
strict-aliasing rules
d_ctl.c: In function `vline_tilde_float':
d_ctl.c:285: warning: dereferencing type-punned pointer will break
strict-aliasing rules
d_ctl.c:285: warning: dereferencing type-punned pointer will break
strict-aliasing rules
make: *** [d_ctl.o] Error 1
fix is to take out the -Werror
gcc -DPD -DUNIX -W -Wstrict-prototypes -Wno-unused -Wno-parentheses
-Wno-switch -O6 -funroll-loops -fomit-frame-pointer -DDL_OPEN
-DUSEAPI_PORTAUDIO -DPA_USE_OSS -DPA_LITTLE_ENDIAN -DUSEAPI_OSS
-I../portaudio/pa_common -I../portaudio/pablio
-I../portaudio/portmidi-macosx -DPA_USE_ALSA -DUSEAPI_ALSA
-DINSTALL_PREFIX=\"/usr/local\" -I. -c -o ../obj/d_ctl.o d_ctl.c
same with d_osc.c
same with d_filter.c
same with math.c
same with d_array.c
same with d_delay.c
same with d_soundfile.c
then, a lot of problems with alsa.
I gave up after that.
this is with gcc v3.3.2
any ideas? am I doing something wrong?
-august.
More information about the Pd-dev
mailing list