[Zope-dev] compiling Zope 2.4.1 on Mac OS 10.1

Mitchell L Model mlm@acm.org
Sun, 30 Sep 2001 19:19:47 -0400


--============_-1210230503==_ma============
Content-Type: text/plain; charset="us-ascii" ; format="flowed"

Trouble compiling Zope 2.4.1 on Mac OS 10.1:

installed a fresh 10.1 that I just got from Apple

downloaded the Zope 2.4.1 src

tried 'python wo_pcgi' with both a Python 2.2a4 I just made and with 
my previous Python 2.1, both with and without sudo

Whatever I do, it breaks in the same place.  Here's the end of the output:

sed -f sedscript ./Makefile.pre.in >Makefile.pre
/usr/local/lib/python2.1/config/makesetup \
          -m Makefile.pre -c 
/usr/local/lib/python2.1/config/config.c.in Setup -n 
/usr/local/lib/py\
thon2.1/config/Setup.config 
/usr/local/lib/python2.1/config/Setup.local 
/usr/local/lib/python2.1/co\
nfig/Setup
make -f Makefile do-it-again
/usr/local/lib/python2.1/config/makesetup \
          -m Makefile.pre -c 
/usr/local/lib/python2.1/config/config.c.in Setup -n 
/usr/local/lib/py\
thon2.1/config/Setup.config 
/usr/local/lib/python2.1/config/Setup.local 
/usr/local/lib/python2.1/co\
nfig/Setup
make
cc  -g -O2 -Wall -Wstrict-prototypes -I/usr/local/include/python2.1 
-I/usr/local/include/python2.1 \
-DHAVE_CONFIG_H  -I../Components/ExtensionClass/src -c 
././../Components/ExtensionClass/src/Extensi\
onClass.c -o ./ExtensionClass.o
In file included from /usr/local/include/python2.1/pyport.h:84,
                  from /usr/local/include/python2.1/Python.h:54,
                  from 
././../Components/ExtensionClass/src/ExtensionClass.h:114,
                  from ././../Components/ExtensionClass/src/ExtensionClass.c:61:
/usr/include/math.h:191: warning: function declaration isn't a prototype
cc  -bundle -undefined suppress  ./ExtensionClass.o   -o ./ExtensionClass.so
/usr/bin/ld: -undefined error must be used when -twolevel_namespace 
is in effect
make: *** [ExtensionClass.so] Error 1
Traceback (most recent call last):
   File "wo_pcgi.py", line 117, in ?
   File "wo_pcgi.py", line 105, in main
   File "/usr/local/src/Zope-2.4.1-src/inst/build_extensions.py", line 102, in ?
     make('lib','python')
   File "/usr/local/src/Zope-2.4.1-src/inst/do.py", line 135, in make
     do('make')
   File "/usr/local/src/Zope-2.4.1-src/inst/do.py", line 104, in do
     if i and picky: raise SystemError, i
SystemError: 512

The 'two-level namespace' business is a change from the OX X 
developer tools version 10.0 to 10.1.

Anyone know what's going on here and how to fix it?
-- 

     --- Mitchell
--============_-1210230503==_ma============
Content-Type: text/html; charset="us-ascii"

<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>compiling Zope 2.4.1 on Mac OS
10.1</title></head><body>
<div>Trouble compiling Zope 2.4.1 on Mac OS 10.1:</div>
<div><br></div>
<blockquote>installed a fresh 10.1 that I just got from
Apple</blockquote>
<blockquote><br></blockquote>
<blockquote>downloaded the Zope 2.4.1 src</blockquote>
<blockquote><br></blockquote>
<blockquote>tried 'python wo_pcgi' with both a Python 2.2a4 I just
made and with my previous Python 2.1, both with and without
sudo</blockquote>
<blockquote><br></blockquote>
<div>Whatever I do, it breaks in the same place.&nbsp; Here's the end
of the output:</div>
<div><br></div>
<blockquote><font face="Courier">sed -f sedscript ./Makefile.pre.in
&gt;Makefile.pre</font></blockquote>
<blockquote><font
face="Courier">/usr/local/lib/python2.1/config/makesetup
\</font></blockquote>
<blockquote><font
face="Courier">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -m
Makefile.pre -c /usr/local/lib/python2.1/config/config.c.in Setup -n&nbsp;
/usr/local/lib/py\</font></blockquote>
<blockquote><font face="Courier">thon2.1/config/Setup.config
/usr/local/lib/python2.1/config/Setup.local
/usr/local/lib/python2.1/co\</font></blockquote>
<blockquote><font face="Courier">nfig/Setup</font></blockquote>
<blockquote><font face="Courier">make -f Makefile
do-it-again</font></blockquote>
<blockquote><font
face="Courier">/usr/local/lib/python2.1/config/makesetup
\</font></blockquote>
<blockquote><font
face="Courier">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -m
Makefile.pre -c /usr/local/lib/python2.1/config/config.c.in Setup -n&nbsp;
/usr/local/lib/py\</font></blockquote>
<blockquote><font face="Courier">thon2.1/config/Setup.config
/usr/local/lib/python2.1/config/Setup.local
/usr/local/lib/python2.1/co\</font></blockquote>
<blockquote><font face="Courier">nfig/Setup</font></blockquote>
<blockquote><font face="Courier">make</font></blockquote>
<blockquote><font face="Courier">cc&nbsp; -g -O2 -Wall
-Wstrict-prototypes -I/usr/local/include/python2.1
-I/usr/local/include/python2.1 \</font></blockquote>
<blockquote><font face="Courier">-DHAVE_CONFIG_H&nbsp;
-I../Components/ExtensionClass/src -c
././../Components/ExtensionClass/src/Extensi\</font></blockquote>
<blockquote><font face="Courier">onClass.c -o
./ExtensionClass.o</font></blockquote>
<blockquote><font face="Courier">In file included from
/usr/local/include/python2.1/pyport.h:84,</font></blockquote>
<blockquote><font
face="Courier"
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from
/usr/local/include/python2.1/Python.h:54,</font></blockquote>
<blockquote><font
face="Courier"
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from
././../Components/ExtensionClass/src/ExtensionClass.h:114,</font></blockquote
>
<blockquote><font
face="Courier"
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from
././../Components/ExtensionClass/src/ExtensionClass.c:61:</font></blockquote
>
<blockquote><font face="Courier">/usr/include/math.h:191: warning:
function declaration isn't a prototype</font></blockquote>
<blockquote><font face="Courier">cc&nbsp; -bundle -undefined suppress&nbsp;
./ExtensionClass.o&nbsp;&nbsp; -o
./ExtensionClass.so</font></blockquote>
<blockquote><font face="Courier">/usr/bin/ld: -undefined error must be
used when -twolevel_namespace is in effect</font></blockquote>
<blockquote><font face="Courier">make: *** [ExtensionClass.so] Error
1</font></blockquote>
<blockquote><font face="Courier">Traceback (most recent call
last):</font></blockquote>
<blockquote><font face="Courier">&nbsp; File &quot;wo_pcgi.py&quot;,
line 117, in ?</font></blockquote>
<blockquote><font face="Courier">&nbsp; File &quot;wo_pcgi.py&quot;,
line 105, in main</font></blockquote>
<blockquote><font face="Courier">&nbsp; File
&quot;/usr/local/src/Zope-2.4.1-src/inst/build_extensions.py&quot;,
line 102, in ?</font></blockquote>
<blockquote><font face="Courier">&nbsp;&nbsp;&nbsp;
make('lib','python')</font></blockquote>
<blockquote><font face="Courier">&nbsp; File
&quot;/usr/local/src/Zope-2.4.1-src/inst/do.py&quot;, line 135, in
make</font></blockquote>
<blockquote><font face="Courier">&nbsp;&nbsp;&nbsp;
do('make')</font></blockquote>
<blockquote><font face="Courier">&nbsp; File
&quot;/usr/local/src/Zope-2.4.1-src/inst/do.py&quot;, line 104, in
do</font></blockquote>
<blockquote><font face="Courier">&nbsp;&nbsp;&nbsp; if i and picky:
raise SystemError, i</font></blockquote>
<blockquote><font face="Courier">SystemError: 512</font></blockquote>
<div><br></div>
<div>The 'two-level namespace' business is a change from the OX X
developer tools version 10.0 to 10.1.</div>
<div><br></div>
<div>Anyone know what's going on here and how to fix it?</div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div><br></div>
<div>&nbsp;&nbsp;&nbsp; --- Mitchell</div>
</body>
</html>
--============_-1210230503==_ma============--