Thread: [Pyobjc-dev] PyObjC 2.2b1 easy_install fails to build on PPC G5 running Leopard
Brought to you by:
ronaldoussoren
|
From: Rodrigo G. <tio...@gm...> - 2009-03-15 04:57:09
|
Hi, I am not sure this is the right place for support questions since this is a "dev" mailing list. If not, then I apologize. I am trying the following: ~$ sudo easy_install pyobjc==2.2b1 I see many deprecated warnings in the compiling of Obj-C files and then the first actual error lines are the following: (snippet) Modules/objc/parsexml.m: In function 'handle_constant': Modules/objc/parsexml.m:552: error: 'RTLD_DEFAULT' undeclared (first use in this function) Modules/objc/parsexml.m:552: error: (Each undeclared identifier is reported only once Modules/objc/parsexml.m:552: error: for each function it appears in.) Modules/objc/parsexml.m: In function 'handle_cftype': Modules/objc/parsexml.m:764: error: 'RTLD_DEFAULT' undeclared (first use in this function) Modules/objc/parsexml.m: In function 'handle_function': Modules/objc/parsexml.m:1067: error: 'RTLD_DEFAULT' undeclared (first use in this function) Modules/objc/parsexml.m: In function 'handle_constant': Modules/objc/parsexml.m:552: error: 'RTLD_DEFAULT' undeclared (first use in this function) Modules/objc/parsexml.m:552: error: (Each undeclared identifier is reported only once Modules/objc/parsexml.m:552: error: for each function it appears in.) Modules/objc/parsexml.m: In function 'handle_cftype': Modules/objc/parsexml.m:764: error: 'RTLD_DEFAULT' undeclared (first use in this function) Modules/objc/parsexml.m: In function 'handle_function': Modules/objc/parsexml.m:1067: error: 'RTLD_DEFAULT' undeclared (first use in this function) Some other information about the machine below: ~$ python Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin ~$ gcc -v gcc version 4.0.1 (Apple Inc. build 5490) ~$ uname -psrv Darwin 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:39:01 PST 2008; root:xnu-1228.9.59~1/RELEASE_PPC powerpc I also downloaded the svn sources, but I am not sure how to proceed to compile them. What I tried was to cd trunk/pyobjc/pyobjc and from there run python setup.py install. That gave me the same errors above. Doing the same thing with python2.6 I get a different error message: Processing pyobjc-framework-Quartz-2.2b1.tar.gz Running pyobjc-framework-Quartz-2.2b1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-cF5l70/pyobjc-framework-Quartz-2.2b1/egg-dist-tmp-dUj2iE /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'options' warnings.warn(msg) Modules/_callbacks.m:422: error: syntax error before 'm_CGDataProviderSequentialCallbacks' Any help really appreciated. Cheers, Guerra |
|
From: Rodrigo G. <tio...@gm...> - 2009-03-18 01:05:11
|
Hi again, It turns out the problem was not with PyObjC, but that I had two different versions of dlfcn.h, one in usr/include and another in usr/local/include. Grep "RTLD_DEFAULT" /usr/include/dlfcn.h showed the following line: #define RTLD_DEFAULT ((void *) -2) /* Use default search algorithm. */ Grep "RTLD_DEFAULT" /usr/local/include/dlfcn.h showed nothing. So I mv /usr/local/include/dlfcn.h to /usr/local/include/dlfcn.h.backup and ln -s /usr/include/dlfcn.h /usr/local/include This made it compile fine... But I am still not sure of the consequences, or why this problem happened in the first place. I guess /usr/local has some old header files from the age of Tiger. Cheers, Guerra On Sun, Mar 15, 2009 at 1:56 PM, Rodrigo Guerra <tio...@gm...> wrote: > Hi, > > I am not sure this is the right place for support questions since this > is a "dev" mailing list. If not, then I apologize. > > I am trying the following: > > ~$ sudo easy_install pyobjc==2.2b1 > > I see many deprecated warnings in the compiling of Obj-C files and > then the first actual error lines are the following: > > (snippet) > Modules/objc/parsexml.m: In function 'handle_constant': > Modules/objc/parsexml.m:552: error: 'RTLD_DEFAULT' undeclared (first > use in this function) > Modules/objc/parsexml.m:552: error: (Each undeclared identifier is > reported only once > Modules/objc/parsexml.m:552: error: for each function it appears in.) > Modules/objc/parsexml.m: In function 'handle_cftype': > Modules/objc/parsexml.m:764: error: 'RTLD_DEFAULT' undeclared (first > use in this function) > Modules/objc/parsexml.m: In function 'handle_function': > Modules/objc/parsexml.m:1067: error: 'RTLD_DEFAULT' undeclared (first > use in this function) > Modules/objc/parsexml.m: In function 'handle_constant': > Modules/objc/parsexml.m:552: error: 'RTLD_DEFAULT' undeclared (first > use in this function) > Modules/objc/parsexml.m:552: error: (Each undeclared identifier is > reported only once > Modules/objc/parsexml.m:552: error: for each function it appears in.) > Modules/objc/parsexml.m: In function 'handle_cftype': > Modules/objc/parsexml.m:764: error: 'RTLD_DEFAULT' undeclared (first > use in this function) > Modules/objc/parsexml.m: In function 'handle_function': > Modules/objc/parsexml.m:1067: error: 'RTLD_DEFAULT' undeclared (first > use in this function) > > Some other information about the machine below: > > ~$ python > Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13) > [GCC 4.0.1 (Apple Inc. build 5465)] on darwin > > ~$ gcc -v > gcc version 4.0.1 (Apple Inc. build 5490) > > ~$ uname -psrv > Darwin 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:39:01 PST > 2008; root:xnu-1228.9.59~1/RELEASE_PPC powerpc > > I also downloaded the svn sources, but I am not sure how to proceed to > compile them. What I tried was to cd trunk/pyobjc/pyobjc and from > there run python setup.py install. That gave me the same errors above. > Doing the same thing with python2.6 I get a different error message: > > Processing pyobjc-framework-Quartz-2.2b1.tar.gz > Running pyobjc-framework-Quartz-2.2b1/setup.py -q bdist_egg --dist-dir > /tmp/easy_install-cF5l70/pyobjc-framework-Quartz-2.2b1/egg-dist-tmp-dUj2iE > /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py:266: > UserWarning: Unknown distribution option: 'options' > warnings.warn(msg) > Modules/_callbacks.m:422: error: syntax error before > 'm_CGDataProviderSequentialCallbacks' > > Any help really appreciated. > > Cheers, > Guerra > |
|
From: Ben A. <be...@ar...> - 2009-03-18 01:29:02
|
> I guess /usr/local has some old header files from the age of Tiger. No version of Mac OS X ever installed anything in /usr/local, so this is a 3rd party package you installed at some point, and is presumably superseded by a vendor library these days. -- <http://artins.org/ben> "I have learned two ways to tie my shoes. One way is only good for lying down." -- Valentine Michael Smith |
|
From: Ronald O. <ron...@ma...> - 2009-03-19 09:13:37
Attachments:
smime.p7s
|
On 18 Mar, 2009, at 2:09, Ben Artin wrote:
>> I guess /usr/local has some old header files from the age of Tiger.
>
> No version of Mac OS X ever installed anything in /usr/local, so this
> is a 3rd party package you installed at some point, and is presumably
> superseded by a vendor library these days.
Does anyone know a way to exclude /usr/local/include and /usr/local/
lib from the compiler search paths? "-nostdinc" and "-nostdlib" are a
bit blunt, although something like this should work:
CFLAGS=[
"nostdinc",
"-isystem/usr/include",
"-isystem/usr/lib/gcc/i686-apple-darwin9/4.0.1/include",
"-iframework/System/Library/Frameworks",
...
]
(Although the list of included header/framework directories should be
extracted from the output of 'cpp -v' instead of hardcoding them)
Ronald
>
> --
>
> <http://artins.org/ben>
>
> "I have learned two ways to tie my shoes. One way is only good for
> lying down." -- Valentine Michael Smith
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM)
> are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly
> and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based
> development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> Pyobjc-dev mailing list
> Pyo...@li...
> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
|