1.5.2 Build Snag

test test at test.nl
Fri May 7 10:58:38 EDT 1999


Peter A. Koren <pkoren at hex.net> wrote in message
news:37324DEC.EB54C3C at hex.net...
> Oleg Broytmann wrote:
> >
> > Hi!
> >
> > On Thu, 22 Apr 1999, Charles Y. Choi wrote:
> > > In trying to build Python 1.5.2 on a Sparc Solaris 2.5.1 machine
> > > using gcc 2.8.1 I get this:
> >
> >    I had no problems building on exactly the same environment:
> >
> > >>> python
> > Python 1.5.2 (#1, Apr 15 1999, 12:17:41)  [GCC 2.8.1] on sunos5
> =====================================================================
> I have a similar problem to Charles. I am running (at work) Solaris
> 2.5.1 and gcc 2.7.2.2 and tried to install the Python 1.5.2 source
> tarball. Here is what I get:
>
> ar cr libpython1.5.a getbuildinfo.o
> ranlib libpython1.5.a
> true
> cd Modules;  make OPT="-g -O2" VERSION="1.5" \
>                 prefix="/home/files"
> exec_prefix="/home/files/sun4-solaris2"
> \
>                 LIBRARY=../libpython1.5.a link
> /home/pkoren/bin/gcc   python.o \
>           ../libpython1.5.a   -lsocket -lnsl -ldl -lm  -o python
> Undefined                       first referenced
>  symbol                             in file
> Py_Main                             python.o
> ld: fatal: Symbol referencing errors. No output written to python
> *** Error code 1
> make: Fatal error: Command failed for target `link'
> Current working directory /home/files/DOWNLOAD/Python-1.5.2/Modules
> *** Error code 1
> make: Fatal error: Command failed for target `python'
> Current working directory /home/files/DOWNLOAD/Python-1.5.2
> bash$
>
>
> Any clues?
>
> Thanks,
>
> Peter Koren

I had the same problem on SunOS 4.1.3. It has something to do with the
libpython1.5.a file being built wrongly after you change something in the
Modules directory. I simply removed libpython1.5.a from the python root
directory and ran make to make sure it would be built up from the ground up
again.

Robin






More information about the Python-list mailing list