Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem on solaris7 #34243

Closed
anonymous mannequin opened this issue Mar 28, 2001 · 2 comments
Closed

problem on solaris7 #34243

anonymous mannequin opened this issue Mar 28, 2001 · 2 comments
Labels
build The build process and cross-build

Comments

@anonymous
Copy link
Mannequin

anonymous mannequin commented Mar 28, 2001

BPO 411845
Nosy @loewis

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2001-03-30.06:57:08.000>
created_at = <Date 2001-03-28.09:48:29.000>
labels = ['build']
title = 'problem on solaris7'
updated_at = <Date 2001-03-30.06:57:08.000>
user = 'https://bugs.python.org/anonymous'

bugs.python.org fields:

activity = <Date 2001-03-30.06:57:08.000>
actor = 'loewis'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['Build']
creation = <Date 2001-03-28.09:48:29.000>
creator = 'anonymous'
dependencies = []
files = []
hgrepos = []
issue_num = 411845
keywords = []
message_count = 2.0
messages = ['4068', '4069']
nosy_count = 1.0
nosy_names = ['loewis']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue411845'
versions = []

@nobody
Copy link
Mannequin

nobody mannequin commented Mar 28, 2001

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'

@anonymous anonymous mannequin closed this as completed Mar 28, 2001
@anonymous anonymous mannequin added the build The build process and cross-build label Mar 28, 2001
@anonymous anonymous mannequin closed this as completed Mar 28, 2001
@anonymous anonymous mannequin added the build The build process and cross-build label Mar 28, 2001
@loewis
Copy link
Mannequin

loewis mannequin commented Mar 30, 2001

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.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build
Projects
None yet
Development

No branches or pull requests

0 participants