This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: get python to link on OSF1 (Dec Unix)
Type: Stage:
Components: Build Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: loewis, nnorwitz
Priority: normal Keywords: patch

Created on 2002-07-20 16:49 by nnorwitz, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
cfg.diff nnorwitz, 2002-07-27 00:58 autoconf patch 2
Messages (6)
msg40616 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2002-07-20 16:49
Attached is a patch to fix the linking of python
(makedev not found) on Dec OSF/1 Unix 5.1.  This patch
has also been tested on Linux (RedHat 7.2).
msg40617 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-07-23 21:43
Logged In: YES 
user_id=21627

That patch doesn't really test whether defining 
OSF_SOURCE helps in getting makedev, does it? In 
particular, if makedev is not available at all, or requires a 
different define, the test will still conclude that 
OSF_SOURCE should be defined, right?

I think the sequence should be:
- is makedev already available?
- if not, is it with OSF_SOURCE defined?
- if not, arrange to exclude makedev from posixmodule.c

Also, is it necessary to run the test program? autoconf is 
always worried that cross-compilation would fail, since you 
cannot run tests (although it is reasonable to link test 
programs in a cross-compilation environment).
msg40618 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2002-07-27 00:58
Logged In: YES 
user_id=33168

This patch uses AC_TRY_LINK instead of AC_TRY_RUN.  It tries
makedev according to Martin's suggestion.
msg40619 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-07-29 07:54
Logged In: YES 
user_id=21627

Looks good; please apply it.
msg40620 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2002-07-30 01:10
Logged In: YES 
user_id=33168

Not sure if this should be backported or not.

Checked in as:
configure.in: 1.337
configure: 1.326
pyconfig.h.in: 1.47
posixmodule.c: 2.246
msg40621 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-07-30 08:45
Logged In: YES 
user_id=21627

Backporting it should not be necessary since mknod is not in
Python 2.2.
History
Date User Action Args
2022-04-10 16:05:30adminsetgithub: 36913
2002-07-20 16:49:31nnorwitzcreate