#2)
$ gcc -DHAVE_CONFIG_H -I. -I.. -DZEXY_LIBRARY -g -O2 -mms-bitfields 0x2e.c
-fPIC -DPIC
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/crt1.o: In function
_start': /home/abuild/rpmbuild/BUILD/glibc-2.18/csu/../sysdeps/x86_64/start.S:118: undefined reference to
main'
/tmp/ccWpG6TE.o: In function scalmul_free': /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:119: undefined reference to
freebytes'
/tmp/ccWpG6TE.o: In function scalmul_lst2': /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:43: undefined reference to
freebytes'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:45:
undefined reference to getbytes' /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:48: undefined reference to
atom_getfloat'
/tmp/ccWpG6TE.o: In function scalmul_lst': /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:60: undefined reference to
freebytes'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:62:
undefined reference to getbytes' /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:65: undefined reference to
atom_getfloat'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:103:
undefined reference to post' /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:106: undefined reference to
getbytes'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:114:
undefined reference to gensym' /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:114: undefined reference to
outlet_list'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:78:
undefined reference to getbytes' /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:89: undefined reference to
getbytes'
/tmp/ccWpG6TE.o: In function scalmul_new': /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:128: undefined reference to
pd_new'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:129:
undefined reference to gensym' /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:129: undefined reference to
gensym'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:129:
undefined reference to inlet_new' /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:132: undefined reference to
outlet_new'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:135:
undefined reference to getbytes' /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:141: undefined reference to
getbytes'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:130:
undefined reference to pd_new' /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:132: undefined reference to
outlet_new'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:135:
undefined reference to getbytes' /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:138: undefined reference to
gensym'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:145:
undefined reference to floatinlet_new' /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:138: undefined reference to
gensym'
/tmp/ccWpG6TE.o: In function setup_0x2e': /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:157: undefined reference to
gensym'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:157:
undefined reference to class_new' /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:159: undefined reference to
class_addlist'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:160:
undefined reference to gensym' /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:160: undefined reference to
class_addmethod'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:161:
undefined reference to gensym' /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:161: undefined reference to
class_addmethod'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:163:
undefined reference to gensym' /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:163: undefined reference to
class_new'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:165:
undefined reference to class_addlist' /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:166: undefined reference to
gensym'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:166:
undefined reference to class_addmethod' /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:168: undefined reference to
gensym'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:168:
undefined reference to class_sethelpsymbol' /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:169: undefined reference to
gensym'
/tmp/ccWpG6TE.o: In function scalmul_help': /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:152: undefined reference to
post'
/tmp/ccWpG6TE.o: In function scalmul_free': /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:120: undefined reference to
freebytes'
/tmp/ccWpG6TE.o: In function scalmul_lst': /home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:115: undefined reference to
freebytes'
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:69:
undefined reference to outlet_float' /tmp/ccWpG6TE.o: In function
setup_0x2e':
/home/unclechu/.compile_n_build/pd-extended/externals/zexy/src/0x2e.c:169:
undefined reference to `class_sethelpsymbol'
collect2: error: ld returned 1 exit status
On 31 January 2014 16:08, IOhannes m zmoelnig zmoelnig@iem.at wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2014-01-31 12:10, John Smith wrote:
I built zexy from svn-repo (revision: r17214) and I have same issue as in zexy tarball release, -- I have no [pack~] and [unpack~], but if I using zexy from binary debian package (Pd-0.44.0-extended-20140130-debian-wheezy-amd64), -- then I have [pack~] and [unpack~], and because pd-extended zexy version has this object, -- I trying to build pd-extended zexy version, but I can't.
then you have something else wrong. [pack~] and [unpack~] *are* part of zexy-2.2.4, zexy-2.2.5 and today's zexy-svn (rev.17259). i just checked all of them.
#1) by default, zexy will build a single binary "zexy.pd_linux"; you have to load this library (e.g. "-lib zexy", or [declare -lib zexy]) in order to use any zexy objects. this is different from pd-extended, where you get multiple binary objects (e.g. "pack~.pd_linux") and you have to use [import zexy] (or add the path/to/zexy to Pd's search paths). if you want to build zexy the same way as pd-extended builds it, you ought to use the "--disable-library" flag when running "./configure" (don't forget to run "make clean" before running "make" again).
#2) i still don't really understand your error message when compiling. there is explicit code in zexy that prevents "setup" from being multiply defined. what's the output when you run the f ollowing command in the src/ subfolder? gcc -DHAVE_CONFIG_H -I. -I.. -DZEXY_LIBRARY -g -O2 -mms-bitfields 0x2e.c -fPIC -DPIC
fgsdmr IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/
iQIcBAEBCAAGBQJS65IqAAoJELZQGcR/ejb4JYYP/2RTURy/yt89yYd4ZXiNWvgW dOj0fhQlZ4ro3AM5wxDlAPDC4mxvxmZwsxuwG8tft+1x3/VSDey+M3ZXKC56lAeP CP3OAPQmzooi1eH+pMWUXd3NQSfr9eSgPNAk/qRYR1+ZdZO9U9tKvS6Sb4xouSsL TwxWLJiPLiyzV4NZT5VGps07FWYmsXBx204QyH2yu8J+mkYjGsvVM006DzRqVM+H 7MlVDCcmbqiaDm1gDuMRmVhH9yL6ai/r0a0x35/DqgeIbru1FKloJ9nMMHA5/SK5 ki2EZvJT1TdMGSPM95UxmZloIP4Bpouw5iuvBzGD2ZxfOT9xkNeci296QMD4aiuZ UnhMncpyS9ebzBXBW3anEg1ACGlH1WOb7RsL1aHswOvjIcnT/sJ1sJzFcX6diTCF uvKjCqUatxkms7C74SI6U52+4XDD7jNHKcK+/mZ3KovZnROw2raslkrMrWih4M1z QdgXfOASK42IPTCrQBsTPbZa3PCFx67B+uIFdUfak/IiUhthGVP1wjnR3KiMd24q FRIKMqIoMZCxSms1YD98enEuKvtZhvoeRIlnB8ycRCC6HpIxLIkGwHWpsS3X2ou+ gjQP8Ch6PgjRuUSh6yh1AeLkBQydC28uMGl6ZilEoB+69MbnSIu3yTKctgHcBLea cDYI3cwSyivVvlbyv7pH =9yYW -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list