[Patches] [ python-Patches-709743 ] os.setpgrp function failed to build

SourceForge.net noreply@sourceforge.net
Fri, 28 Mar 2003 07:34:14 -0800


Patches item #709743, was opened at 2003-03-25 16:15
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=709743&group_id=5470

Category: Build
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Gary H. Loechelt (loechelt)
Assigned to: Martin v. Löwis (loewis)
Summary: os.setpgrp function failed to build

Initial Comment:
The os.setpgrp function failed to build on HP-UX
B.10.20 for Python 2.3a2.  Comparing the build with
Python 2.2.1, I noticed a missing line in the
pyconfig.h.in file.  I added the appropriate line to
the file and rebuilt the executable.  Note that I did
NOT check the configure script to insure that the
appropriate compiler macro (HAVE_SETPGRP) was set.  I
just manually set the macro in the pyconfig.h file
directly.  The person who has responsibility for
configure should probably check it as well to make sure
that it is not broken as well.

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

>Comment By: Gary H. Loechelt (loechelt)
Date: 2003-03-28 08:34

Message:
Logged In: YES 
user_id=142817

The build failed because the HAVE_SETPGRP compiler macro was
never set.  Consequently, the code for the os.setpgrp
function (posix_setpgrp) in the posixmodule.c file never
compiled.  Even though the rest of the posixmodule.c
compiled, the os.setpgrp function was not available in the
os module.  Once I manually set the HAVE_SETPGRP compiler
macro in the pyconfig.h header file and rebuilt
posixmodule.c, everything worked and I was able to call the
os.setpgrp function.  I began to track down why the
HAVE_SETPGRP compiler macro never got set during my
configuration.  Realizing that pyconfig.h is generated from
pyconfig.h.in, I checked to see if HAVE_SETPGRP was even in
pyconfig.h.in to start with.  It was not.  I compared
pyconfig.h.in in python version 2.3a2 with version 2.2.1 and
confirmed that HAVE_SETPGRP is indeed missing from
pyconfig.h.in.  Consequently, it never gets passed on to
pyconfig.h during configuration, and posix_setpgrp never
gets compiled in posixmodule.c because the macro is never
defined.  That was why I could not import the setpgrp
function from the os module in my build of python 2.3a2,
even though the rest of the os module was fine.

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

Comment By: Martin v. Löwis (loewis)
Date: 2003-03-27 17:01

Message:
Logged In: YES 
user_id=21627

Can you please report precisely as to how it fails?

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

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