[Pyobjc-dev] Re: current CVS won't build on Dual 1 GHz/Jaguar
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2002-11-14 06:08:15
|
I have made some other changes in my tree that are not yet good enough to be pushed into the repository. I therefore tried to be smart and checked in only the files that I changed while debugging your problem ... or so I though. It should build if you update now or you can just add Modules/objc/alloc_hack.m to the list of files in setup.py (just above module.m works fine for me). Ronald On Thursday, Nov 14, 2002, at 03:38 Europe/Amsterdam, Steven D. Arnold wrote: > On 11/13/02 4:16 PM, "Ronald Oussoren" <ous...@ci...> wrote: > >> I've reproduced the problem in some pure Objective-C code: >> #import <AppKit/AppKit.h> >> >> int main(void) >> { >> id nil_obj = nil; >> id pool = [[NSAutoreleasePool alloc] init]; >> >> id inv = [NSInvocation invocationWithMethodSignature: >> [NSMethodSignature signatureWithObjCTypes:"@@:"]]; >> >> [inv retain]; >> [inv setTarget:[NSTextView class]]; >> [inv setSelector:@selector(alloc)]; >> [inv invoke]; >> [inv setReturnValue:&nil_obj]; >> return 0; >> } >> >> This crashes when using NSTextView, and works when using NSTableView. >> >> This looks like a problem with Apple code. > > Interesting... > >> I've checked in a workaround that at least should allow >> NSTextView.alloc().init(). > > I updated from CVS and tried unsuccessfully to build. The session is > below: > > [thoth@paranoia:~/Source/pyobjc] > python setup.py clean > running clean > removing 'build/temp.darwin-6.1-Power Macintosh-2.3' (and everything > under > it) > [thoth@paranoia:~/Source/pyobjc] > sudo python setup.py install > running install > running build > running build_py > running build_ext > building 'objc._objc' extension > creating build/temp.darwin-6.1-Power Macintosh-2.3 > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/objc-class.m > -o build/temp.darwin-6.1-Power Macintosh-2.3/objc-class.o -g -O0 > -DOBJC_PARANOIA_MODE -DPyOBJC_UNIQUE_PROXY -DMACOSX > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/instance-var.m -o build/temp.darwin-6.1-Power > Macintosh-2.3/instance-var.o -g -O0 -DOBJC_PARANOIA_MODE > -DPyOBJC_UNIQUE_PROXY -DMACOSX > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/selector.m -o > build/temp.darwin-6.1-Power Macintosh-2.3/selector.o -g -O0 > -DOBJC_PARANOIA_MODE -DPyOBJC_UNIQUE_PROXY -DMACOSX > Modules/objc/selector.m: In function `objcsel_call': > Modules/objc/selector.m:457: warning: unused variable `obj' > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/module.m -o > build/temp.darwin-6.1-Power Macintosh-2.3/module.o -g -O0 > -DOBJC_PARANOIA_MODE -DPyOBJC_UNIQUE_PROXY -DMACOSX > Modules/objc/module.m: In function `init_objc': > Modules/objc/module.m:233: warning: implicit declaration of function > `ObjC_RegisterStdStubs' > Modules/objc/module.m:247: warning: implicit declaration of function > `ObjC_InstallAllocHack' > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/class-list.m > -o build/temp.darwin-6.1-Power Macintosh-2.3/class-list.o -g -O0 > -DOBJC_PARANOIA_MODE -DPyOBJC_UNIQUE_PROXY -DMACOSX > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/OC_PythonString.m -o build/temp.darwin-6.1-Power > Macintosh-2.3/OC_PythonString.o -g -O0 -DOBJC_PARANOIA_MODE > -DPyOBJC_UNIQUE_PROXY -DMACOSX > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/objc_support.m -o build/temp.darwin-6.1-Power > Macintosh-2.3/objc_support.o -g -O0 -DOBJC_PARANOIA_MODE > -DPyOBJC_UNIQUE_PROXY -DMACOSX > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/objc_util.m > -o build/temp.darwin-6.1-Power Macintosh-2.3/objc_util.o -g -O0 > -DOBJC_PARANOIA_MODE -DPyOBJC_UNIQUE_PROXY -DMACOSX > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/OC_PythonObject.m -o build/temp.darwin-6.1-Power > Macintosh-2.3/OC_PythonObject.o -g -O0 -DOBJC_PARANOIA_MODE > -DPyOBJC_UNIQUE_PROXY -DMACOSX > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/informal-protocol.m -o build/temp.darwin-6.1-Power > Macintosh-2.3/informal-protocol.o -g -O0 -DOBJC_PARANOIA_MODE > -DPyOBJC_UNIQUE_PROXY -DMACOSX > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/OC_PythonDictionary.m -o build/temp.darwin-6.1-Power > Macintosh-2.3/OC_PythonDictionary.o -g -O0 -DOBJC_PARANOIA_MODE > -DPyOBJC_UNIQUE_PROXY -DMACOSX > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/OC_PythonInt.m -o build/temp.darwin-6.1-Power > Macintosh-2.3/OC_PythonInt.o -g -O0 -DOBJC_PARANOIA_MODE > -DPyOBJC_UNIQUE_PROXY -DMACOSX > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/OC_PythonArray.m -o build/temp.darwin-6.1-Power > Macintosh-2.3/OC_PythonArray.o -g -O0 -DOBJC_PARANOIA_MODE > -DPyOBJC_UNIQUE_PROXY -DMACOSX > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/pyobjc-api.m > -o build/temp.darwin-6.1-Power Macintosh-2.3/pyobjc-api.o -g -O0 > -DOBJC_PARANOIA_MODE -DPyOBJC_UNIQUE_PROXY -DMACOSX > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/objc-object.m > -o build/temp.darwin-6.1-Power Macintosh-2.3/objc-object.o -g -O0 > -DOBJC_PARANOIA_MODE -DPyOBJC_UNIQUE_PROXY -DMACOSX > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/super-call.m > -o build/temp.darwin-6.1-Power Macintosh-2.3/super-call.o -g -O0 > -DOBJC_PARANOIA_MODE -DPyOBJC_UNIQUE_PROXY -DMACOSX > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/register.m -o > build/temp.darwin-6.1-Power Macintosh-2.3/register.o -g -O0 > -DOBJC_PARANOIA_MODE -DPyOBJC_UNIQUE_PROXY -DMACOSX > Modules/objc/register.m:12: warning: function declaration isn't a > prototype > Modules/objc/register.m: In function `ObjC_RegisterStdStubs': > Modules/objc/register.m:56720: warning: passing arg 2 of pointer to > function > from incompatible pointer type > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/ObjCPointer.m > -o build/temp.darwin-6.1-Power Macintosh-2.3/ObjCPointer.o -g -O0 > -DOBJC_PARANOIA_MODE -DPyOBJC_UNIQUE_PROXY -DMACOSX > gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-double > -no-cpp-precomp -I/usr/local/include/python2.3 -c > Modules/objc/class-builder.m -o build/temp.darwin-6.1-Power > Macintosh-2.3/class-builder.o -g -O0 -DOBJC_PARANOIA_MODE > -DPyOBJC_UNIQUE_PROXY -DMACOSX > gcc -bundle -bundle_loader /usr/local/bin/python > build/temp.darwin-6.1-Power > Macintosh-2.3/objc_util.o build/temp.darwin-6.1-Power > Macintosh-2.3/objc_support.o build/temp.darwin-6.1-Power > Macintosh-2.3/class-builder.o build/temp.darwin-6.1-Power > Macintosh-2.3/class-list.o build/temp.darwin-6.1-Power > Macintosh-2.3/ObjCPointer.o build/temp.darwin-6.1-Power > Macintosh-2.3/objc-class.o build/temp.darwin-6.1-Power > Macintosh-2.3/informal-protocol.o build/temp.darwin-6.1-Power > Macintosh-2.3/objc-object.o build/temp.darwin-6.1-Power > Macintosh-2.3/super-call.o build/temp.darwin-6.1-Power > Macintosh-2.3/selector.o build/temp.darwin-6.1-Power > Macintosh-2.3/instance-var.o build/temp.darwin-6.1-Power > Macintosh-2.3/OC_PythonInt.o build/temp.darwin-6.1-Power > Macintosh-2.3/OC_PythonObject.o build/temp.darwin-6.1-Power > Macintosh-2.3/OC_PythonString.o build/temp.darwin-6.1-Power > Macintosh-2.3/OC_PythonArray.o build/temp.darwin-6.1-Power > Macintosh-2.3/OC_PythonDictionary.o build/temp.darwin-6.1-Power > Macintosh-2.3/register.o build/temp.darwin-6.1-Power > Macintosh-2.3/pyobjc-api.o build/temp.darwin-6.1-Power > Macintosh-2.3/module.o -o build/lib.darwin-6.1-Power > Macintosh-2.3/objc/_objc.so -g -framework AppKit > ld: Undefined symbols: > _ObjC_InstallAllocHack > Traceback (most recent call last): > File "setup.py", line 155, in ? > package_dir = { '':'Lib' } > File "/usr/local/lib/python2.3/distutils/core.py", line 155, in setup > raise SystemExit, "error: " + str(msg) > SystemExit: error: command 'gcc' failed with exit status 1 > > steve > -- > > > |