[Patches] [ python-Patches-584245 ] get python to link on OSF1 (Dec Unix)

noreply@sourceforge.net noreply@sourceforge.net
Tue, 30 Jul 2002 01:45:37 -0700


Patches item #584245, was opened at 2002-07-20 18:49
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=584245&group_id=5470

Category: Build
Group: Python 2.3
Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Neal Norwitz (nnorwitz)
Assigned to: Neal Norwitz (nnorwitz)
Summary: get python to link on OSF1 (Dec Unix)

Initial Comment:
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).

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

>Comment By: Martin v. Löwis (loewis)
Date: 2002-07-30 10:45

Message:
Logged In: YES 
user_id=21627

Backporting it should not be necessary since mknod is not in
Python 2.2.

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

Comment By: Neal Norwitz (nnorwitz)
Date: 2002-07-30 03:10

Message:
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


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

Comment By: Martin v. Löwis (loewis)
Date: 2002-07-29 09:54

Message:
Logged In: YES 
user_id=21627

Looks good; please apply it.

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

Comment By: Neal Norwitz (nnorwitz)
Date: 2002-07-27 02:58

Message:
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.

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

Comment By: Martin v. Löwis (loewis)
Date: 2002-07-23 23:43

Message:
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).

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=584245&group_id=5470