[Python-bugs-list] [ python-Bugs-411845 ] problem on solaris7

noreply@sourceforge.net noreply@sourceforge.net
Thu, 29 Mar 2001 22:57:08 -0800


Bugs item #411845, was updated on 2001-03-28 01:48
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=411845&group_id=5470

Category: Build
Group: Platform-specific
>Status: Closed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: problem on solaris7

Initial Comment:
Hi,
 
   I was trying to install PYTHON1.6.1 on a sparc
 solaris7 computer with support for thread and bsddb
 module (I used the BerkeleyDB3.0).
   I dont have GCC on this machine so I used CC (I add
 the  -mt and -D_REENTRANT).
  
   The compilation is ok except at the end when it
 tried to build the python executable. I received a
 message about unknow function Py_main.
 
   Is anybody knowing this problem (and the way to
 correct it) ?
 
  Best regards.
 
 ------
 
 ** This is the error message **
 
 make
 (cd Modules; make -f Makefile.pre Makefile)
 `Makefile' is up to date.
 making Makefile in subdirectory .
 `Makefile' is up to date.
 making Makefile in subdirectory Parser
 `Makefile' is up to date.
 making Makefile in subdirectory Objects
 `Makefile' is up to date.
 making Makefile in subdirectory Python
 `Makefile' is up to date.
 making Makefile in subdirectory Modules
 `Makefile' is up to date.
 (rm -f Modules/hassignal; cd Modules; make hassignal)
 rm -f hassignal
 for i in threadmodule.o  regexmodule.o regexpr.o 
 pcremodule.o 
 pypcre.o  posixmodule.o  signalmodule.o  _sre.o 
 arraymodule.o 
 cmathmodule.o  mathmodule.o  stropmodule.o 
 structmodule.o 
 timemodule.o  operator.o  _codecsmodule.o 
 unicodedata.o 
 unicodedatabase.o  _localemodule.o  fcntlmodule.o 
 pwdmodule.o 
 grpmodule.o  errnomodule.o  mmapmodule.o 
 selectmodule.o 
 socketmodule.o  md5module.o md5c.o  shamodule.o 
 rotormodule.o 
 newmodule.o  bsddbmodule.o  binascii.o  parsermodule.o
  cStringIO.o 
 cPickle.o config.o getpath.o main.o getbuildinfo.o; do
 \
              if test "$i" = "signalmodule.o"; then \
                 echo yes >hassignal; break; \
              fi; \
          done
 cd Parser ; make OPT="-O -mt" VERSION="1.6" \
                 
 prefix="/usr/local/softs/Python/Pythus" 
 exec_prefix="/usr/local/softs/Python/Pythus" all
 cd Objects ; make OPT="-O -mt" VERSION="1.6" \
                 
 prefix="/usr/local/softs/Python/Pythus" 
 exec_prefix="/usr/local/softs/Python/Pythus" all
 cd Python ; make OPT="-O -mt" VERSION="1.6" \
                 
 prefix="/usr/local/softs/Python/Pythus" 
 exec_prefix="/usr/local/softs/Python/Pythus" all
 cd Modules ; make OPT="-O -mt" VERSION="1.6" \
                 
 prefix="/usr/local/softs/Python/Pythus" 
 exec_prefix="/usr/local/softs/Python/Pythus" all
 expr `cat buildno` + 1 >buildno1
 mv -f buildno1 buildno
 cc -c -O -mt -I. -DHAVE_CONFIG_H -D_REENTRANT
 -DBUILD=`cat buildno` \
                ./Modules/getbuildinfo.c
 ar cr libpython1.6.a getbuildinfo.o
 ranlib libpython1.6.a
 true
 cd Modules;  make OPT="-O -mt" VERSION="1.6" \
                 
 prefix="/usr/local/softs/Python/Pythus" 
 exec_prefix="/usr/local/softs/Python/Pythus" \
                  LIBRARY=../libpython1.6.a link
 cc   python.o \
            ../libpython1.6.a
 /usr/local/softs/Python/DB2/lib/libdb.a 
 -lpthread -lsocket -lnsl -ldl  -lthread -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
 /usr/local/softs/Python/Python-1.6.1/Modules
 *** Error code 1
 make: Fatal error: Command failed for target `python'

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2001-03-29 22:57

Message:
Logged In: YES 
user_id=21627

Py_Main should be defined in main.o. Please to "ar tv
libpython1.6.a" to verify that main.o is really there, do
"nm main.o" to verify that it really provides Py_Main.
If not, please try wether rebuilding from a clean tree helps
(or correct the error manually, e.g. by adding main.o to
libpython1.6.a)

In any case,Python 1.6 is not maintained anymore: so if
there is a bug in it, it won't be fixed. Please try to
install Python 2.0 instead, or go back to 1.5.2, which is
known to work flawless on Solaris.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=411845&group_id=5470