Hi list,
I've recently built miXed/toxy for pd-l2ork successfully but now I've run into errors with pd-extended. The errors concern tot. I've noticed that they are not the same version (see the diff below), however copying the l2ork one over the extended one doesn't solve the problem but triggers different errors. Could there be an easy way out?
160c160 < sprintf(buf, ".x%lx.c", (int)cv); ---
sprintf(buf, ".x%x.c", (int)cv);
402c402 < sprintf(buf, ".x%lx", (int)cv); ---
sprintf(buf, ".x%x", (int)cv);
429c429 < sprintf(buf, ".x%lx", (int)cv); ---
sprintf(buf, ".x%x", (int)cv);
464c464 < sprintf(buf, ".x%lx", (int)cv); ---
sprintf(buf, ".x%x", (int)cv);
595c595 < sprintf(buf, ".x%lx.c", (int)glist); ---
sprintf(buf, ".x%x.c", (int)glist);
Thanks for any tips!
PS I'm on amd64
András
You defintely want .x%lx and not .x%x. .x%lx is needed for working 64-bit support.
.hc
On 02/28/2013 05:25 PM, András Murányi wrote:
Hi list,
I've recently built miXed/toxy for pd-l2ork successfully but now I've run into errors with pd-extended. The errors concern tot. I've noticed that they are not the same version (see the diff below), however copying the l2ork one over the extended one doesn't solve the problem but triggers different errors. Could there be an easy way out?
160c160
< sprintf(buf, ".x%lx.c", (int)cv);
sprintf(buf, ".x%x.c", (int)cv);
402c402
< sprintf(buf, ".x%lx", (int)cv);
sprintf(buf, ".x%x", (int)cv);
429c429
< sprintf(buf, ".x%lx", (int)cv);
sprintf(buf, ".x%x", (int)cv);
464c464
< sprintf(buf, ".x%lx", (int)cv);
sprintf(buf, ".x%x", (int)cv);
595c595
< sprintf(buf, ".x%lx.c", (int)glist);
sprintf(buf, ".x%x.c", (int)glist);
Thanks for any tips!
PS I'm on amd64
András
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
On Fri, Mar 1, 2013 at 12:23 AM, Hans-Christoph Steiner hans@at.or.atwrote:
You defintely want .x%lx and not .x%x. .x%lx is needed for working 64-bit support.
.hc
That's good because it has .x%lx in pd-extended. This is the output I get (looks like it has not been fully prepared for 64-bit?):
gcc -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -O2 -fno-tree-vectorize -fno-strict-aliasing -fPIC -march=native -DUNIX -DHAVE_UNISTD_H -I. -I../../../pd/src -I../shared -I"" -c -o tot.o tot.c tot.c: In function ‘tot_dogetpathname’: tot.c:160: warning: cast from pointer to integer of different size tot.c:160: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘int’ tot.c: In function ‘tot_detach’: tot.c:402: warning: cast from pointer to integer of different size tot.c:402: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘int’ tot.c: In function ‘tot_attach’: tot.c:429: warning: cast from pointer to integer of different size tot.c:429: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘int’ tot.c: In function ‘tot_capture’: tot.c:464: warning: cast from pointer to integer of different size tot.c:464: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘int’ tot.c: In function ‘tot_new’: tot.c:571: warning: cast from pointer to integer of different size tot.c:595: warning: cast from pointer to integer of different size tot.c:595: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘int’ /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 0 has invalid symbol index 11 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 1 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 2 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 3 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 4 has invalid symbol index 11 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 5 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 6 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 7 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 8 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 9 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 10 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 11 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 12 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 13 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 14 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 15 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 16 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 17 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 18 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 19 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 20 has invalid symbol index 20 /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' /tmp/ccbLlRe0.o: In function `tot_setup': tot.c:(.text+0x22): undefined reference to `loud_ordinal' tot.c:(.text+0x41): undefined reference to `post' tot.c:(.text+0x4d): undefined reference to `gensym' tot.c:(.text+0x60): undefined reference to `gensym' tot.c:(.text+0x73): undefined reference to `gensym' tot.c:(.text+0x86): undefined reference to `gensym' tot.c:(.text+0x99): undefined reference to `gensym' /tmp/ccbLlRe0.o:tot.c:(.text+0xac): more undefined references to `gensym' follow /tmp/ccbLlRe0.o: In function `tot_setup': tot.c:(.text+0x107): undefined reference to `class_new' tot.c:(.text+0x11a): undefined reference to `gensym' tot.c:(.text+0x13a): undefined reference to `class_addmethod' tot.c:(.text+0x146): undefined reference to `gensym' tot.c:(.text+0x166): undefined reference to `class_addmethod' tot.c:(.text+0x172): undefined reference to `gensym' tot.c:(.text+0x192): undefined reference to `class_addmethod' tot.c:(.text+0x19e): undefined reference to `gensym' tot.c:(.text+0x1b8): undefined reference to `class_addmethod' tot.c:(.text+0x1c4): undefined reference to `gensym' tot.c:(.text+0x1e0): undefined reference to `class_addmethod' tot.c:(.text+0x1ec): undefined reference to `gensym' tot.c:(.text+0x20f): undefined reference to `class_addmethod' tot.c:(.text+0x21b): undefined reference to `gensym' tot.c:(.text+0x23b): undefined reference to `class_addmethod' tot.c:(.text+0x247): undefined reference to `gensym' tot.c:(.text+0x267): undefined reference to `class_addmethod' tot.c:(.text+0x273): undefined reference to `gensym' tot.c:(.text+0x28f): undefined reference to `class_addmethod' tot.c:(.text+0x29b): undefined reference to `gensym' tot.c:(.text+0x2b7): undefined reference to `class_addmethod' tot.c:(.text+0x2c3): undefined reference to `gensym' tot.c:(.text+0x2dd): undefined reference to `class_addmethod' tot.c:(.text+0x2e9): undefined reference to `gensym' tot.c:(.text+0x303): undefined reference to `class_addmethod' tot.c:(.text+0x30f): undefined reference to `gensym' tot.c:(.text+0x335): undefined reference to `class_addmethod' tot.c:(.text+0x341): undefined reference to `gensym' tot.c:(.text+0x361): undefined reference to `class_addmethod' tot.c:(.text+0x36d): undefined reference to `gensym' tot.c:(.text+0x38d): undefined reference to `class_addmethod' tot.c:(.text+0x399): undefined reference to `gensym' tot.c:(.text+0x3b9): undefined reference to `class_addmethod' tot.c:(.text+0x3c5): undefined reference to `gensym' tot.c:(.text+0x3eb): undefined reference to `class_addmethod' tot.c:(.text+0x3fe): undefined reference to `forky_setpropertiesfn' tot.c:(.text+0x40c): undefined reference to `hammerfile_setup' tot.c:(.text+0x418): undefined reference to `gensym' tot.c:(.text+0x434): undefined reference to `class_new' tot.c:(.text+0x44a): undefined reference to `class_addanything' tot.c:(.text+0x456): undefined reference to `gensym' tot.c:(.text+0x472): undefined reference to `class_new' /tmp/ccbLlRe0.o: In function `totspy_anything': tot.c:(.text+0x51b): undefined reference to `clock_gettimesince' tot.c:(.text+0x57d): undefined reference to `outlet_anything' tot.c:(.text+0x582): undefined reference to `clock_getlogicaltime' tot.c:(.text+0x618): undefined reference to `loudbug_bug' /tmp/ccbLlRe0.o: In function `tot_getglist': tot.c:(.text+0x660): undefined reference to `canvas_class' tot.c:(.text+0x6e1): undefined reference to `canvas_getrootfor' /tmp/ccbLlRe0.o: In function `tot_getcanvas': tot.c:(.text+0x737): undefined reference to `glist_getcanvas' tot.c:(.text+0x76e): undefined reference to `loud_warning' tot.c:(.text+0x7cf): undefined reference to `loud_error' tot.c:(.text+0x7f8): undefined reference to `loud_error' tot.c:(.text+0x819): undefined reference to `loudbug_bug' tot.c:(.text+0x825): undefined reference to `gensym' /tmp/ccbLlRe0.o: In function `tot_dooutput': tot.c:(.text+0x8a3): undefined reference to `s_list' /tmp/ccbLlRe0.o: In function `tot_lastmotion': tot.c:(.text+0x911): undefined reference to `s_' /tmp/ccbLlRe0.o: In function `tot_capture': tot.c:(.text+0x9cd): undefined reference to `s_' tot.c:(.text+0x9f7): undefined reference to `pd_unbind' tot.c:(.text+0xa36): undefined reference to `gensym' tot.c:(.text+0xa45): undefined reference to `pd_bind' tot.c:(.text+0xa6a): undefined reference to `clock_getlogicaltime' tot.c:(.text+0xa7b): undefined reference to `gensym' tot.c:(.text+0xabf): undefined reference to `gensym' tot.c:(.text+0xad2): undefined reference to `outlet_anything' /tmp/ccbLlRe0.o: In function `tot_attach': tot.c:(.text+0xb1c): undefined reference to `glist_isvisible' tot.c:(.text+0xb5a): undefined reference to `gensym' tot.c:(.text+0xb6c): undefined reference to `pd_findbyclass' tot.c:(.text+0xbaa): undefined reference to `loudbug_bug' tot.c:(.text+0xbbb): undefined reference to `pd_unbind' tot.c:(.text+0xbca): undefined reference to `pd_bind' /tmp/ccbLlRe0.o: In function `tot_detach': tot.c:(.text+0xc1c): undefined reference to `glist_isvisible' tot.c:(.text+0xc72): undefined reference to `gensym' tot.c:(.text+0xc89): undefined reference to `pd_findbyclass' tot.c:(.text+0xca0): undefined reference to `pd_unbind' tot.c:(.text+0xcaf): undefined reference to `pd_bind' tot.c:(.text+0xcc0): undefined reference to `gensym' tot.c:(.text+0xcca): undefined reference to `guiconnect_new' tot.c:(.text+0xce3): undefined reference to `gensym' tot.c:(.text+0xcf2): undefined reference to `pd_typedmess' /tmp/ccbLlRe0.o: In function `tot_editorhook': tot.c:(.text+0xd60): undefined reference to `scriptlet_reset' /tmp/ccbLlRe0.o: In function `tot_tot': tot.c:(.text+0xdc8): undefined reference to `scriptlet_reset' tot.c:(.text+0xde7): undefined reference to `scriptlet_add' /tmp/ccbLlRe0.o: In function `tot_addnext': tot.c:(.text+0xe55): undefined reference to `scriptlet_setseparator' /tmp/ccbLlRe0.o: In function `tot_push': tot.c:(.text+0xeaa): undefined reference to `scriptlet_evaluate' /tmp/ccbLlRe0.o: In function `tot_write': tot.c:(.text+0xf29): undefined reference to `s_' tot.c:(.text+0xf54): undefined reference to `canvas_getdir' /tmp/ccbLlRe0.o: In function `tot_read': tot.c:(.text+0xf98): undefined reference to `s_' /tmp/ccbLlRe0.o: In function `tot_prealloc': tot.c:(.text+0xfe1): undefined reference to `scriptlet_prealloc' /tmp/ccbLlRe0.o: In function `tot_free': tot.c:(.text+0x101e): undefined reference to `pd_unbind' tot.c:(.text+0x1026): undefined reference to `hammergui_unbindvised' tot.c:(.text+0x1032): undefined reference to `hammerfile_free' tot.c:(.text+0x103b): undefined reference to `scriptlet_free' tot.c:(.text+0x1044): undefined reference to `scriptlet_free' tot.c:(.text+0x1061): undefined reference to `clock_new' tot.c:(.text+0x107f): undefined reference to `clock_delay' tot.c:(.text+0x109c): undefined reference to `pd_free' /tmp/ccbLlRe0.o: In function `totspy_cleanuptick': tot.c:(.text+0x10be): undefined reference to `pd_unbind' tot.c:(.text+0x10cf): undefined reference to `clock_free' /tmp/ccbLlRe0.o: In function `tot_properties': tot.c:(.text+0x110b): undefined reference to `scriptlet_getcontents' tot.c:(.text+0x1124): undefined reference to `hammereditor_open' tot.c:(.text+0x1173): undefined reference to `hammereditor_append' tot.c:(.text+0x11c0): undefined reference to `hammereditor_append' tot.c:(.text+0x11cf): undefined reference to `hammereditor_setdirty' /tmp/ccbLlRe0.o: In function `T.104': tot.c:(.text+0x1258): undefined reference to `gensym' tot.c:(.text+0x1289): undefined reference to `glist_isvisible' /tmp/ccbLlRe0.o: In function `tot_new': tot.c:(.text+0x12cd): undefined reference to `pd_new' tot.c:(.text+0x12f6): undefined reference to `gensym' tot.c:(.text+0x1305): undefined reference to `pd_bind' tot.c:(.text+0x130a): undefined reference to `canvas_getcurrent' tot.c:(.text+0x1329): undefined reference to `scriptlet_new' tot.c:(.text+0x1349): undefined reference to `scriptlet_new' tot.c:(.text+0x135d): undefined reference to `s_' tot.c:(.text+0x138e): undefined reference to `canvas_makebindsym' tot.c:(.text+0x13a1): undefined reference to `s_anything' tot.c:(.text+0x13ac): undefined reference to `outlet_new' tot.c:(.text+0x13b7): undefined reference to `outlet_new' tot.c:(.text+0x13ca): undefined reference to `pd_new' tot.c:(.text+0x1425): undefined reference to `outlet_new' tot.c:(.text+0x142c): undefined reference to `s_bang' tot.c:(.text+0x143b): undefined reference to `outlet_new' tot.c:(.text+0x1467): undefined reference to `scriptlet_read' tot.c:(.text+0x1486): undefined reference to `hammerfile_new' tot.c:(.text+0x1495): undefined reference to `hammergui_bindvised' tot.c:(.text+0x14bd): undefined reference to `pd_new' tot.c:(.text+0x153d): undefined reference to `s_' tot.c:(.text+0x157a): undefined reference to `gensym' /tmp/ccbLlRe0.o: In function `tot_setup': tot.c:(.text+0x48d): undefined reference to `class_addanything' /tmp/ccbLlRe0.o: In function `totspy_anything': tot.c:(.text+0x5f5): undefined reference to `loud_warning' tot.c:(.text+0x64a): undefined reference to `outlet_anything' /tmp/ccbLlRe0.o: In function `tot_getglist': tot.c:(.text+0x66f): undefined reference to `pd_findbyclass' tot.c:(.text+0x701): undefined reference to `canvas_getrootfor' /tmp/ccbLlRe0.o: In function `tot_dooutput': tot.c:(.text+0x882): undefined reference to `outlet_symbol' tot.c:(.text+0x889): undefined reference to `outlet_bang' tot.c:(.text+0x89b): undefined reference to `outlet_anything' tot.c:(.text+0x8ab): undefined reference to `outlet_list' tot.c:(.text+0x8b7): undefined reference to `outlet_float' /tmp/ccbLlRe0.o: In function `tot_lastmotion': tot.c:(.text+0x936): undefined reference to `pd_typedmess' /tmp/ccbLlRe0.o: In function `tot_reset': tot.c:(.text+0xd15): undefined reference to `scriptlet_reset' /tmp/ccbLlRe0.o: In function `tot_add': tot.c:(.text+0xd2e): undefined reference to `scriptlet_add' /tmp/ccbLlRe0.o: In function `tot_editorhook': tot.c:(.text+0xd84): undefined reference to `scriptlet_add' /tmp/ccbLlRe0.o: In function `tot_tot': tot.c:(.text+0xe06): undefined reference to `scriptlet_push' tot.c:(.text+0xe22): undefined reference to `scriptlet_qpush' /tmp/ccbLlRe0.o: In function `tot_addnext': tot.c:(.text+0xe79): undefined reference to `scriptlet_add' /tmp/ccbLlRe0.o: In function `tot_push': tot.c:(.text+0xece): undefined reference to `scriptlet_push' tot.c:(.text+0xefb): undefined reference to `scriptlet_qpush' /tmp/ccbLlRe0.o: In function `tot_writehook': tot.c:(.text+0xf05): undefined reference to `scriptlet_write' /tmp/ccbLlRe0.o: In function `tot_write': tot.c:(.text+0xf42): undefined reference to `scriptlet_write' tot.c:(.text+0xf74): undefined reference to `hammerpanel_save' /tmp/ccbLlRe0.o: In function `tot_readhook': tot.c:(.text+0xf85): undefined reference to `scriptlet_read' /tmp/ccbLlRe0.o: In function `tot_read': tot.c:(.text+0xfa3): undefined reference to `scriptlet_read' tot.c:(.text+0xfb2): undefined reference to `hammerpanel_open' /tmp/ccbLlRe0.o: In function `tot_prealloc': tot.c:(.text+0xfff): undefined reference to `scriptlet_prealloc' /tmp/ccbLlRe0.o: In function `tot_free': tot.c:(.text+0x1091): undefined reference to `pd_free' /tmp/ccbLlRe0.o: In function `totspy_cleanuptick': tot.c:(.text+0x10d8): undefined reference to `pd_free' /tmp/ccbLlRe0.o: In function `tot(void, int, short,...)(double)': tot.c:(.text+0x1614): undefined reference to `outlet_bang' collect2: ld returned 1 exit status make[3]: *** [tot.o] Error 1 make[3]: Leaving directory `/home/muranyia/Download/pd-svn/externals/miXed/toxy' make[2]: *** [toxy] Error 2 make[2]: Leaving directory `/home/muranyia/Download/pd-svn/externals' make[1]: *** [externals_install] Error 2 make[1]: Leaving directory `/home/muranyia/Download/pd-svn/packages' make: *** [install] Error 2
On 02/28/2013 05:25 PM, András Murányi wrote:
Hi list,
I've recently built miXed/toxy for pd-l2ork successfully but now I've run into errors with pd-extended. The errors concern tot. I've noticed that they are not the same version (see the diff below), however copying the l2ork one over the extended one doesn't solve the problem but triggers different errors. Could there be an easy way out?
160c160
< sprintf(buf, ".x%lx.c", (int)cv);
sprintf(buf, ".x%x.c", (int)cv);
402c402
< sprintf(buf, ".x%lx", (int)cv);
sprintf(buf, ".x%x", (int)cv);
429c429
< sprintf(buf, ".x%lx", (int)cv);
sprintf(buf, ".x%x", (int)cv);
464c464
< sprintf(buf, ".x%lx", (int)cv);
sprintf(buf, ".x%x", (int)cv);
595c595
< sprintf(buf, ".x%lx.c", (int)glist);
sprintf(buf, ".x%x.c", (int)glist);
Thanks for any tips!
PS I'm on amd64
András
On 02/28/2013 23:25, András Murányi wrote:
Hi list,
I've recently built miXed/toxy for pd-l2ork successfully but now I've run into errors with pd-extended. The errors concern tot. I've noticed that they are not the same version (see the diff below), however copying the l2ork one over the extended one doesn't solve the problem but triggers different errors. Could there be an easy way out?
btw, [tot] is incompatible with Pd>=0.43 (be it PdX or Pd-vanilla).
tot does low-level interaction with Pd's old-style GUI, which simply doesn't work any more with the new GUI.
fgmadsr IOhannes
On Mar 1, 2013, at 2:39 AM, IOhannes m zmölnig wrote:
On 02/28/2013 23:25, András Murányi wrote:
Hi list,
I've recently built miXed/toxy for pd-l2ork successfully but now I've run into errors with pd-extended. The errors concern tot. I've noticed that they are not the same version (see the diff below), however copying the l2ork one over the extended one doesn't solve the problem but triggers different errors. Could there be an easy way out?
btw, [tot] is incompatible with Pd>=0.43 (be it PdX or Pd-vanilla).
tot does low-level interaction with Pd's old-style GUI, which simply doesn't work any more with the new GUI.
fgmadsr IOhannes
Also, I think that the iemguts libs and [sys_gui] gives you basically everything that tot does. And tclpd is easier than [widget] for making GUI objects in Tcl.
.hc
On Fri, Mar 1, 2013 at 6:10 PM, Hans-Christoph Steiner hans@at.or.atwrote:
On Mar 1, 2013, at 2:39 AM, IOhannes m zmölnig wrote:
On 02/28/2013 23:25, András Murányi wrote:
Hi list,
I've recently built miXed/toxy for pd-l2ork successfully but now I've
run
into errors with pd-extended. The errors concern tot. I've noticed that they are not the same version (see the diff below), however copying the l2ork one over the extended one doesn't solve the problem but triggers different errors. Could there be an easy way out?
btw, [tot] is incompatible with Pd>=0.43 (be it PdX or Pd-vanilla).
tot does low-level interaction with Pd's old-style GUI, which simply doesn't work any more with the new GUI.
fgmadsr IOhannes
Also, I think that the iemguts libs and [sys_gui] gives you basically everything that tot does. And tclpd is easier than [widget] for making GUI objects in Tcl.
.hc
I don't need tot, but i do need widget, and actually only one widget which is popup. I'll try to build toxy without tot and i'll also take a look at tclpd. Thanks guys!
András