[PD-dev] compilation broken @ FreeBSD

Kenneth Peiruza kenneth at gnunetworks.com
Wed Nov 5 15:21:26 CET 2003


Hi all,

	I'm quite new @ PD, moreover at this list, so, don't hesitate if I'm
completly wrong :)


	I've been trying to compile new versions of PD into my FreeBSD 5.1. At
this time, compilation breaks everywhere.



	Some errors  found:

	- ./configure generates a "makefile" despite "Makefile".
		In some  pd distributions exist a Makefile file by 
		default, so "make" uses it despite "makefile".

	- After ./configure, I do make ( Actually "gmake" gnu-make ):
----------------------------------------
cc -DPD -DUNIX  -Wall -W -Wstrict-prototypes -Werror -Wno-unused
-Wno-parentheses -Wno-switch   -DINSTALL_PREFIX=\"/usr/local\" -I. -c -o
../obj/s_main.o s_main.c 
s_main.c:308: `API_DEFSTRING' undeclared here (not in a function)
s_main.c:308: initializer element is not constant
s_main.c:308: (near initialization for `usagemessage[17]')
gmake: *** [s_main.o] Error 1

----------------------------------------

	This is due to NO DEFAULTS at s_stuff.h

	I change it to make it compile. I dunno much about sound capabilities
at freebsd, but it's certainly true that it supports OSS, so i add these
lines at s_stuff:

#define API_DEFAULT API_OSS
#define API_DEFSTRING "OSS"

Now it compiles a bit more :)

But, of course, it breaks down at pthreads.... :

--------------------------------------------
cd ../obj;  cc   -o ../bin/pd g_canvas.o g_graph.o g_text.o g_rtext.o
g_array.o g_template.o g_io.o g_scalar.o g_traversal.o g_guiconnect.o
g_readwrite.o g_editor.o g_all_guis.o g_bang.o g_hdial.o g_hslider.o
g_mycanvas.o g_numbox.o g_toggle.o g_vdial.o g_vslider.o g_vumeter.o
m_pd.o m_class.o m_obj.o m_atom.o m_memory.o m_binbuf.o m_conf.o
m_glob.o m_sched.o s_main.o s_inter.o s_file.o s_print.o s_loader.o
s_path.o s_entry.o s_audio.o s_midi.o d_ugen.o d_ctl.o d_arithmetic.o
d_osc.o d_filter.o d_dac.o d_misc.o d_math.o d_fft.o d_mayer_fft.o
d_fftroutine.o d_array.o d_global.o d_delay.o d_resample.o
x_arithmetic.o x_connective.o x_interface.o x_midi.o x_misc.o x_time.o
x_acoustics.o x_net.o x_qlist.o x_gui.o d_soundfile.o   \
-lm
s_inter.o: In function `sys_bail':
s_inter.o(.text+0x1313): undefined reference to `sys_close_midi'
s_midi.o: In function `sys_putnext':
s_midi.o(.text+0x1e7): undefined reference to `sys_putmidibyte'
s_midi.o(.text+0x224): undefined reference to `sys_putmidimess'
s_midi.o: In function `sys_pollmidiqueue':
s_midi.o(.text+0xa03): undefined reference to `sys_poll_midi'
s_midi.o: In function `sys_open_midi':
s_midi.o(.text+0xb1b): undefined reference to `sys_do_open_midi'
s_midi.o: In function `sys_listmididevs':
s_midi.o(.text+0xbb9): undefined reference to `midi_getdevs'
s_midi.o: In function `glob_midi_properties':
s_midi.o(.text+0xd05): undefined reference to `midi_getdevs'
s_midi.o: In function `glob_midi_dialog':
s_midi.o(.text+0x1222): undefined reference to `sys_close_midi'
x_midi.o: In function `midiout_float':
x_midi.o(.text+0x16a6): undefined reference to `sys_putmidibyte'
d_soundfile.o: In function `readsf_new':
d_soundfile.o(.text+0x3897): undefined reference to `pthread_create'
d_soundfile.o: In function `readsf_free':
d_soundfile.o(.text+0x4155): undefined reference to `pthread_join'
d_soundfile.o: In function `writesf_new':
d_soundfile.o(.text+0x4b5b): undefined reference to `pthread_create'
d_soundfile.o: In function `writesf_free':
d_soundfile.o(.text+0x5235): undefined reference to `pthread_join'
gmake: *** [../bin/pd] Error 1

---------------------------------




Any ideas?


Thanks in advance!

--------

Faithfully yours,

Kenneth Peiruza
Systems Engineer
+34-666.23.64.33
GNUnetworks Barcelona
http://www.gnunetworks.com





More information about the Pd-dev mailing list