[PD-dev] Patch for FreeBSD 6.0 (almost)

Hans-Christoph Steiner hans at eds.org
Wed Jun 14 17:12:12 CEST 2006


You probably want to submit this to the patch tracker if you want it  
included.

As for the linker errors, it seems that its missing some MIDI  
support, probably from the OS.  Does PortMIDI support FreeBSD?  I  
know basically nothing about either portmidi or midi on FreeBSD.

.hc

On Jun 1, 2006, at 8:21 AM, mal content wrote:

> Hi.
>
> I've nearly managed to get pd-0.40-test2 from CVS to compile
> on FreeBSD 6.0.
>
> I'm having some trouble though.
>
> The work is mostly based on these patches:
>
> http://www.freebsd.org/cgi/cvsweb.cgi/ports/audio/pd/files/
>
> However, they aren't all relevant and they are for a version of
> pd released a LONG time ago.
>
> I am getting this linker error on the last stage of compilation:
>
> cd ../obj;  cc -L/usr/local/lib  -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
> x_list.o d_soundfile.o s_audio_oss.o  \
> -lm -lpthread
> m_glob.o(.text+0x476): In function `glob_init':
> /home/aone/cvs/external/pd/src/m_glob.c:117: undefined reference to
> `glob_watchdog'
> s_inter.o(.text+0x5be): In function `sys_bail':
> /home/aone/cvs/external/pd/src/s_inter.c:1270: undefined reference to
> `sys_close_midi'
> s_midi.o(.text+0x18b): In function `sys_putnext':
> /home/aone/cvs/external/pd/src/s_midi.c:117: undefined reference to
> `sys_putmidibyte'
> s_midi.o(.text+0x1c6):/home/aone/cvs/external/pd/src/s_midi.c:118:
> undefined reference to `sys_putmidimess'
> s_midi.o(.text+0x923): In function `sys_pollmidiqueue':
> /home/aone/cvs/external/pd/src/s_midi.c:464: undefined reference to
> `sys_poll_midi'
> s_midi.o(.text+0x9ff): In function `sys_open_midi':
> /home/aone/cvs/external/pd/src/s_midi.c:531: undefined reference to
> `midi_oss_init'
> s_midi.o(.text+0xa64):/home/aone/cvs/external/pd/src/s_midi.c:539:
> undefined reference to `sys_do_open_midi'
> s_midi.o(.text+0xafd): In function `sys_listmididevs':
> /home/aone/cvs/external/pd/src/s_midi.c:572: undefined reference to
> `midi_getdevs'
> s_midi.o(.text+0xc4b): In function `glob_midi_properties':
> /home/aone/cvs/external/pd/src/s_midi.c:656: undefined reference to
> `midi_getdevs'
> s_midi.o(.text+0x1001): In function `glob_midi_setapi':
> /home/aone/cvs/external/pd/src/s_midi.c:619: undefined reference to
> `sys_close_midi'
> s_midi.o(.text+0x10f1): In function `glob_midi_dialog':
> /home/aone/cvs/external/pd/src/s_midi.c:761: undefined reference to
> `sys_close_midi'
> s_midi.o(.text+0x1046): In function `glob_midi_setapi':
> /home/aone/cvs/external/pd/src/s_midi.c:632: undefined reference to
> `sys_close_midi'
> x_midi.o(.text+0xf84): In function `midiout_float':
> /home/aone/cvs/external/pd/src/x_midi.c:681: undefined reference to
> `sys_putmidibyte'
> gmake: *** [../bin/pd] Error 1
>
> I believe the original patches above just disabled midi in order to  
> avoid
> this error, but that's hardly correct now, is it?
>
> Attached is my current patch, which adds a few #ifdefs here and there
> and includes a new section in configure.in. I'd be obliged if somebody
> could help me work out why I'm seeing the above linker errors.
>
> cheers,
> MC
> <patch_freebsd.diff>
> _______________________________________________
> PD-dev mailing list
> PD-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev


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

Man has survived hitherto because he was too ignorant to know how to  
realize his wishes.  Now that he can realize them, he must either  
change them, or perish.    -William Carlos Williams






More information about the Pd-dev mailing list