[Pythonmac-SIG] Python on OSX dp4 screenshot

Doug Wyatt doug@sonosphere.com
Mon, 22 May 2000 03:39:53 -0700


At 23:51 +0200 5/20/00, Jack Jansen wrote:
>Recently, Doug Wyatt <doug@sonosphere.com> said:
>  > I think it would be good to explore creating at least two versions of
>  > Python for X:
>  >
>  > - command-line, treating X as a BSD-like OS.  This should be a
>  > moderately straightforward port, except to the extent to which there
>  > could be OS bugs.  I'd love to use this in my work on X; I've never
>  > had the patience to learn shell scripting since I was first spoiled
>  > by Python.  I may attempt this...
>
>This is basically already there: take the standard Python distribution
>(the unix one) and compile it. There were one or two minor gotchas,
>the main one I remember being that if you run on an HFS+ disk (as
>opposed to a UFS disk) there's a name clash between the eventual
>executable "python" and the "Python" directory. That's easily fixed in
>the Makefile by setting the EXE=".exe" variable.

I'm trying this ...

# = my comments

[wyatdo:~/Python-1.6a2] doug% ./configure
creating cache ./config.cache

#if test -f /usr/lib/NextStep/software_version -o -f 
#/System/Library/CoreServices/software_version ; then
#	echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6
##### /System/Library/CoreServices/software_version exists
checking for --with-next-archs... none: using ppc
checking MACHDEP... next
	##### I think we're afoul
checking for --without-gcc... no
checking for --with-cxx=<compiler>... no
checking for gcc... no
checking for cc... cc


then during make:

cc -g -O2 -OPT:Olimit=0 -I./../Include -I.. -DHAVE_CONFIG_H   -c -o 
dynload_next.o dynload_next.c
dynload_next.c:60: header file 'mach-o/rld.h' not found
dynload_next.c:81: undefined type, found `NXStream'

It looks like it's deciding early on that we're on a Next machine ... 
So I fixed that by tweaking configure to ignore 
/System/Library/CoreServices/software_version.

But now:

- - - - -
cd Modules; make OPT="-g -O2 -OPT:Olimit=0" python.o
cc -g -O2 -OPT:Olimit=0 -I./../Include -I.. -DHAVE_CONFIG_H   -c -o 
python.o python.c
expr `cat buildno` + 1 >buildno1
mv -f buildno1 buildno
cc -c -g -O2 -OPT:Olimit=0 -I. -DHAVE_CONFIG_H -DBUILD=`cat buildno` \
               ./Modules/getbuildinfo.c
ar cr libpython1.6.a getbuildinfo.o
ranlib libpython1.6.a
true
cd Modules;  make OPT="-g -O2 -OPT:Olimit=0" VERSION="1.6" \
                 prefix="/usr/local" exec_prefix="/usr/local" \
                 LIBRARY=../libpython1.6.a link
cc   python.o \
           ../libpython1.6.a    -lm  -o python
/usr/bin/ld: can't locate file for: -lm
make[1]: *** [link] Error 1
make: *** [python] Error 2
- - - - -

Is there a more general mailing list/forum where I should bring this up?

Doug


-- 
Doug Wyatt                             doug@sonosphere.com
http://www.sonosphere.com/  <- new: review of Mother Mallard
                                at the Smithsonian