[PD] osc~ compilation errors

Martin Peach martinrp at vax2.concordia.ca
Fri Nov 11 22:20:03 CET 2005


Looks like you need to set the path to your pd source in the makefile. 
See below.
And it's OSC, not osc~ - that's an oscillator object.
Martin


Ken wrote:

> i'm on fedora core 3, planetccrma.
> any help:
>
> [nunativs at localhost OSCx]$ make
> cd libOSC ; make
> make[1]: Entering directory 
> `/home/nunativs/code/pd/externals/OSCx/libOSC'
> cc -c -g -O2 -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O2 
> -I../libOSC -I../../pd/src -I../../../pd/src -I. -I../libOSC 
> -I../../pd/src -I../../../pd/src -I.  OSC-client.c
> OSC-client.c: In function `OSC_writeFloatArg':
> OSC-client.c:360: warning: dereferencing type-punned pointer will 
> break strict-aliasing rules
> ar srv libOSC.a OSC-client.o
> ar: creating libOSC.a
> a - OSC-client.o
> rm -f OSC-client.o
> cc -c -g -O2 -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O2 
> -I../libOSC -I../../pd/src -I../../../pd/src -I. -I../libOSC 
> -I../../pd/src -I../../../pd/src -I.  OSC-timetag.c
> ar srv libOSC.a OSC-timetag.o
> a - OSC-timetag.o
> rm -f OSC-timetag.o
> make[1]: Leaving directory `/home/nunativs/code/pd/externals/OSCx/libOSC'
> cd src ; make
> make[1]: Entering directory `/home/nunativs/code/pd/externals/OSCx/src'
> cc -g -O2 -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O2 
> -I../libOSC -I../../pd/src -I../../../pd/src -I. -I../libOSC 
> -I../../pd/src -I../../../pd/src -I. -c -o sendOSC.o sendOSC.c

Here are some warnings about missing prototypes that should be in the 
source but may not be because it was written in an age when prototypes 
were not required and you are compiling with -Wmissing-prototypes so you 
will be warned about it:

> sendOSC.c:146: warning: no previous prototype for 'sendOSC_openbundle'
> sendOSC.c:208: warning: no previous prototype for 'sendOSC_disconnect'
> sendOSC.c:326: warning: no previous prototype for 'sendOSC_send'
> sendOSC.c:348: warning: no previous prototype for 'sendOSC_setup'
> sendOSC.c:461: warning: no previous prototype for 'InteractiveMode'
> sendOSC.c: In function `ParseTimeTag':
> sendOSC.c:554: warning: long long unsigned int format, OSCTimeTag arg 
> (arg 3)
> sendOSC.c: In function `CommandLineMode':
> sendOSC.c:394: warning: 'numArgs' might be used uninitialized in this 
> function
> sendOSC.c: At top level:
> sendOSC.c:105: warning: 'exitStatus' defined but not used
> cc -g -O2 -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O2 
> -I../libOSC -I../../pd/src -I../../../pd/src -I. -I../libOSC 
> -I../../pd/src -I../../../pd/src -I. -c -o htmsocket.o htmsocket.c
> cc -g -O2 -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O2 
> -I../libOSC -I../../pd/src -I../../../pd/src -I. -I../libOSC 
> -I../../pd/src -I../../../pd/src -I. -c -o OSC-system-dependent.o 
> OSC-system-dependent.c
> OSC-system-dependent.c: In function `fatal_error':
> OSC-system-dependent.c:65: warning: implicit declaration of function 
> `exit'
> cc -Wl,-export_dynamic -shared -o sendOSC.pd_linux sendOSC.o 
> htmsocket.o OSC-system-dependent.o -lc -lm ../libOSC/libOSC.a
> cc -g -O2 -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O2 
> -I../libOSC -I../../pd/src -I../../../pd/src -I. -I../libOSC 
> -I../../pd/src -I../../../pd/src -I. -c -o dumpOSC.o dumpOSC.c
> dumpOSC.c:75:21: s_stuff.h: No such file or directory
> dumpOSC.c: In function `dumpOSC_new':


Here we start to not find things that are in pd source:

>
> dumpOSC.c:271: warning: implicit declaration of function `sys_sockerror'
> dumpOSC.c:283: warning: implicit declaration of function 
> `sys_closesocket'
> dumpOSC.c:295: warning: implicit declaration of function `sys_addpollfn'

..and here is the first fatal error, also because the pd source 
directory is not specified correctly.
It most likely is not actually in ../../pd/src or ../../../pd/src, even 
when those paths are specified twice...

> dumpOSC.c:295: error: `t_fdpollfn' undeclared (first use in this 
> function)
> dumpOSC.c:295: error: (Each undeclared identifier is reported only once
> dumpOSC.c:295: error: for each function it appears in.)
> dumpOSC.c:295: error: syntax error before "dumpOSC_read"
> dumpOSC.c: In function `dumpOSC_free':
> dumpOSC.c:327: warning: implicit declaration of function `sys_rmpollfn'
> dumpOSC.c: At top level:
> dumpOSC.c:337: warning: no previous prototype for 'dumpOSC_setup'
> dumpOSC.c:496: warning: no previous prototype for 'PrintClientAddr'
> dumpOSC.c: In function `PrintClientAddr':
> dumpOSC.c:502: warning: unsigned int format, long unsigned int arg 
> (arg 2)
> dumpOSC.c: In function `dumpOSC_Smessage':
> dumpOSC.c:695: warning: unused variable `at'
> dumpOSC.c:698: warning: unused variable `myargc'
> dumpOSC.c:699: warning: unused variable `mya'
> dumpOSC.c:700: warning: unused variable `myi'
> dumpOSC.c: In function `dumpOSC_PrintTypeTaggedArgs':
> dumpOSC.c:774: warning: dereferencing type-punned pointer will break 
> strict-aliasing rules
> dumpOSC.c:742: warning: unused variable `myi'
> dumpOSC.c: In function `dumpOSC_PrintHeuristicallyTypeGuessedArgs':
> dumpOSC.c:875: warning: dereferencing type-punned pointer will break 
> strict-aliasing rules
> dumpOSC.c:864: warning: unused variable `myi'
> dumpOSC.c: At top level:
> dumpOSC.c:350: warning: 'unixinitudp' defined but not used
> dumpOSC.c:376: warning: 'initudp' defined but not used
> dumpOSC.c:428: warning: 'closeudp' defined but not used
> dumpOSC.c:490: warning: 'catch_sigint' defined but not used
> dumpOSC.c:164: warning: 'Synthmessage' declared `static' but never 
> defined
> dumpOSC.c:200: warning: 'dumpOSC_read' defined but not used
> dumpOSC.c:493: warning: 'sockfd' defined but not used
> dumpOSC.c:493: warning: 'usockfd' defined but not used
> make[1]: *** [dumpOSC.o] Error 1
> make[1]: Leaving directory `/home/nunativs/code/pd/externals/OSCx/src'
> make: *** [all] Error 2
> [nunativs at localhost OSCx]$
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list
>





More information about the Pd-list mailing list