Hallo!
Has anyone of the osx developer an idea, why there are linking problems on osx (and only osx) with iem_t3 lib (see below) ?
I have not really an idea ...
Thanks LG Georg
cc -DPD -ftree-vectorize -ftree-vectorizer-verbose=2 -fast -fPIC -mcpu=7450 -mtune=7450 -I/Users/pd/auto-build/pd-extended/pd/src -Wall -W -ggdb -I/sw/include -DMACOSX -DUNIX -Dunix -o "/Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/iem_t3_lib.o" -c "/Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/iem_t3_lib.c" cc -bundle -bundle_loader /Users/pd/auto-build/pd-extended/pd/bin/pd -L/sw/lib -o "/Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/iem_t3_lib.pd_darwin" "/Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/iem_t3_lib.o" -lm -lc \ `test -f /Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/iem_t3_lib.libs && cat /Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/iem_t3_lib.libs` \ `test -f /Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/../darwin/iem_t3_lib.libs && \ cat /Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/../darwin/iem_t3_lib.libs` /usr/bin/ld: Undefined symbols: _t3_bpe_setup _t3_delay_setup _t3_line_tilde_setup _t3_metro_setup _t3_sig_tilde_setup _t3_timer_setup collect2: ld returned 1 exit status make[2]: *** [/Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/iem_t3_lib.pd_darwin] Error 1 rm /Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/iem_t3_lib.o make[1]: *** [externals_install] Error 2 make: *** [extended_install] Error 2
Well, the error is not OSX-specific, it's just a stanadard ld error when it can't find symbols:
/usr/bin/ld: Undefined symbols: _t3_bpe_setup _t3_delay_setup _t3_line_tilde_setup _t3_metro_setup _t3_sig_tilde_setup _t3_timer_setup
That's because it's trying to build iem_t3_lib.c, which is the lib glue file and not an external, and it's not linking in the .o files for each class. This change was made here (first one):
http://pure-data.cvs.sourceforge.net/pure-data/externals/Makefile? view=diff&pathrev=MAIN&r1=text&tr1=1.134&r2=text&tr2=1.135&diff_format=h
.hc
On Apr 1, 2007, at 6:16 AM, Georg Holzmann wrote:
Hallo!
Has anyone of the osx developer an idea, why there are linking problems on osx (and only osx) with iem_t3 lib (see below) ?
I have not really an idea ...
Thanks LG Georg
cc -DPD -ftree-vectorize -ftree-vectorizer-verbose=2 -fast -fPIC -mcpu=7450 -mtune=7450 -I/Users/pd/auto-build/pd-extended/pd/src -Wall -W -ggdb -I/sw/include -DMACOSX -DUNIX -Dunix -o "/Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/ iem_t3_lib.o" -c "/Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/ iem_t3_lib.c" cc -bundle -bundle_loader /Users/pd/auto-build/pd-extended/pd/bin/pd -L/sw/lib -o "/Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/ iem_t3_lib.pd_darwin" "/Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/ iem_t3_lib.o" -lm -lc \ `test -f /Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/ iem_t3_lib.libs && cat /Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/ iem_t3_lib.libs` \ `test -f /Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/../ darwin/iem_t3_lib.libs && \ cat /Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/../ darwin/iem_t3_lib.libs` /usr/bin/ld: Undefined symbols: _t3_bpe_setup _t3_delay_setup _t3_line_tilde_setup _t3_metro_setup _t3_sig_tilde_setup _t3_timer_setup collect2: ld returned 1 exit status make[2]: *** [/Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/ iem_t3_lib.pd_darwin] Error 1 rm /Users/pd/auto-build/pd-extended/externals/iemlib/iem_t3_lib/src/ iem_t3_lib.o make[1]: *** [externals_install] Error 2 make: *** [extended_install] Error 2
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
------------------------------------------------------------------------ ----
I have the audacity to believe that peoples everywhere can have three meals a day for their bodies, education and culture for their minds, and dignity, equality and freedom for their spirits. - Martin Luther King, Jr.
Hallo!
Well, the error is not OSX-specific, it's just a stanadard ld error when it can't find symbols:
Okay, I understand - the problem is that linking on osx works different than on linux, because on linux it works ...
That's because it's trying to build iem_t3_lib.c, which is the lib glue file and not an external, and it's not linking in the .o files for each class. This change was made here (first one):
Thanks - I fixed it !
LG Georg
On Apr 2, 2007, at 2:01 PM, Georg Holzmann wrote:
Hallo!
Well, the error is not OSX-specific, it's just a stanadard ld error when it can't find symbols:
Okay, I understand - the problem is that linking on osx works different than on linux, because on linux it works ...
That's because it's trying to build iem_t3_lib.c, which is the lib glue file and not an external, and it's not linking in the .o files for each class. This change was made here (first one):
Thanks - I fixed it !
There are some other related issues. It looks like you changed the regexps which chose which files to build. Those regexps were there so that the library glue files wouldn't be compiled and cause problems like this. Some examples of these kinds of files are:
externals/cxc/cx.c externals/iemlib/iemlib1/src/iemlib1.c externals/iemlib/iemlib3/src/iemlib2.c externals/iemlib/iem_t3_lib/src/iem_t3_lib.c
Here's the current error:
cc -DPD -O2 -I/Users/hans/cvs/pure-data/pd/src -Wall -W -ggdb -I/sw/ include -DMACOSX -DUNIX -Dunix -o "/Users/hans/cvs/pure-data/ externals/iemlib/iemlib1/src/iemlib1.o" -c "/Users/hans/cvs/pure-data/ externals/iemlib/iemlib1/src/iemlib1.c" cc -bundle -bundle_loader /Users/hans/cvs/pure-data/pd/bin/pd -L/sw/ lib -o "/Users/hans/cvs/pure-data/externals/iemlib/iemlib1/src/ iemlib1.pd_darwin" "/Users/hans/cvs/pure-data/externals/iemlib/ iemlib1/src/iemlib1.o" -lm -lc \ `test -f /Users/hans/cvs/pure-data/externals/iemlib/iemlib1/ src/iemlib1.libs && cat /Users/hans/cvs/pure-data/externals/iemlib/ iemlib1/src/iemlib1.libs` \ `test -f /Users/hans/cvs/pure-data/externals/iemlib/iemlib1/ src/../darwin/iemlib1.libs && \ cat /Users/hans/cvs/pure-data/externals/iemlib/ iemlib1/src/../darwin/iemlib1.libs` /usr/bin/ld: Undefined symbols: _FIR_tilde_setup _biquad_freq_resp_setup _db2v_setup _f2note_setup _filter_tilde_setup _forpp_setup _gate_setup _hml_shelf_tilde_setup _iem_cot4_tilde_setup _iem_delay_tilde_setup _iem_pow4_tilde_setup _iem_sqrt4_tilde_setup _lp1_t_tilde_setup _mov_avrg_kern_tilde_setup _para_bp2_tilde_setup _peakenv_tilde_setup _prvu_tilde_setup _pvu_tilde_setup _rvu_tilde_setup _sin_phase_tilde_setup _soundfile_info_setup _split_setup _v2db_setup _vcf_filter_tilde_setup collect2: ld returned 1 exit status make: *** [/Users/hans/cvs/pure-data/externals/iemlib/iemlib1/src/ iemlib1.pd_darwin] Error 1 rm /Users/hans/cvs/pure-data/externals/iemlib/iemlib1/src/iemlib1.o
.hc
LG Georg
------------------------------------------------------------------------ ----
Using ReBirth is like trying to play an 808 with a long stick. - David Zicarelli