Hello all~
I was trying to figure this out with matju on #dataflow, but he had to go. So I will document it here, since it might be a problem for other OSX users wanting to try DesireData and drool a little.
here is the error message scons gives me:
Hunab-Ku:~/pd kyleklipowicz$ sudo scons desire=1 debug=1 wall=1 scons: Reading SConscript files ... Checking for dlopen() in C library dl... yes Checking for sin() in C library m... yes Checking for pthread_create() in C library pthread... yes Checking for main() in C library fftw3f... no scons: done reading SConscript files. scons: Building targets ... scons: `bin/pdsend' is up to date. scons: `bin/pdreceive' is up to date. scons: `bin/libpdtcl.dylib' is up to date. gcc -g -faltivec -maltivec -DDL_OPEN -DNEWHASH -DLOCKFREE -DDESIRE -DUNISTD -DPA_BIG_ENDIAN -DPA_USE_COREAUDIO -DMACOSX -DUSEAPI_PORTAUDIO -DPA19 -DDEBUG -DHAVE_ALLOCA -I/Library/Frameworks/Tk.framework/Headers -I/Library/Frameworks/Tcl.framework/Headers -Isrc -Iportmidi_osx -Iportaudio/pa_common -Iportaudio/pablio -c -o src/desire.o src/desire.c src/desire.c:1202: error: static declaration of 'iemgui_new' follows non-static declaration src/desire.c:118: error: previous declaration of 'iemgui_new' was here src/desire.c:1221: error: static declaration of 'iemgui_propertiesfn' follows non-static declaration src/desire.c:119: error: previous declaration of 'iemgui_propertiesfn' was here src/desire.c:1227: error: static declaration of 'iemgui_constrain' follows non-static declaration src/desire.c:121: error: previous declaration of 'iemgui_constrain' was here src/desire.c:1233: error: static declaration of 'iemgui_init' follows non-static declaration src/desire.c:124: error: previous declaration of 'iemgui_init' was here src/desire.c:1235: error: static declaration of 'binbuf_update' follows non-static declaration src/desire.c:125: error: previous declaration of 'binbuf_update' was here src/desire.c:1245: error: static declaration of 'iemgui_loadbang' follows non-static declaration src/desire.c:126: error: previous declaration of 'iemgui_loadbang' was here src/desire.c:1250: error: static declaration of 'iemgui_forward' follows non-static declaration src/desire.c:127: error: previous declaration of 'iemgui_forward' was here scons: *** [src/desire.o] Error 1 scons: building terminated because of errors.
----------------------------------------------------------------------------
This is all with the latest devel cvs on :pserver: and the first line of desire.c says this:
/* $Id: desire.c,v 1.1.2.11 2005/09/14 17:36:44 matju Exp $
Also, since matju requested it, I have the first line of ChangeLog:
$Id: ChangeLog,v 1.1.4.2 2005/09/11 23:37:33 matju Exp $
And finally, here is the version of gcc I am using:
Using built-in specs. Target: powerpc-apple-darwin8 Configured with: /private/var/tmp/gcc/gcc-5026.obj~19/src/configure --disable-checking --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^+.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/gcc/darwin/4.0/c++ --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8 Thread model: posix gcc version 4.0.0 (Apple Computer, Inc. build 5026)
I hope that we can fix this! (By "we" I mean the real coders. I'm just a beta tester.)
~Kyle
hi kyle,
On Sep 15, 2005, at 9:56 PM, Kyle Klipowicz wrote:
I was trying to figure this out with matju on #dataflow, but he had to go. So I will document it here, since it might be a problem for other OSX users wanting to try DesireData and drool a little.
...I've been battling with this all week, on and off, so hang tight: too many changes to mention atm, but I'll be uploading them to cvs relatively soon! I'm also adding a bit more chaos to the challenge by building it into the app/package/bundle, and it turns out there's a ton of issues with that, mostly dealing with how the embedded wish thinks of paths...
...if you really wanna plug away, I can tell you that the errors you reported can be fixed by declaring static in both cases...beyond that, many more issues: I've stopped for the night at getting pd to load into gdb with both carmen's window working (!) and the icons finally loading: more to go...anyway, sit tight...
l8r, jamie
On Thu, 15 Sep 2005, Kyle Klipowicz wrote:
Hunab-Ku:~/pd kyleklipowicz$ sudo scons desire=1 debug=1 wall=1 src/desire.c:1202: error: static declaration of 'iemgui_new' follows non-static declaration src/desire.c:118: error: previous declaration of 'iemgui_new' was here
I've fixed that just before you left, but the change does not propagate because it takes a few hours for any uploads to propagate from the :ext: CVS to the :pserver:anonymous CVS (the latter is a mirror).
The problem is that gcc 4.0 is pickier on those things. In gcc 3.4 it's just a warning.
As I said, all you have to do is remove any "static" keyword at the line number that gcc complains about.
This is all with the latest devel cvs on :pserver: and the first line of desire.c says this: /* $Id: desire.c,v 1.1.2.11 2005/09/14 17:36:44 matju Exp $
That's the line you should have (or anything more recent) /* $Id: desire.c,v 1.1.2.12 2005/09/16 01:39:54 matju Exp $
I hope that we can fix this! (By "we" I mean the real coders. I'm just a beta tester.)
Wo, don't say beta. We're not even out of pre-pre-alpha yet!
(If anyone wonders, there are a lot of different design details between ImpureData and DesireData)
____________________________________________________________________ Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju Freelance Digital Arts Engineer, Montréal QC Canada