[ python-Bugs-880996 ] 2.3.3 make fails build posix_openpty'

SourceForge.net noreply at sourceforge.net
Sat Jan 24 01:17:53 EST 2004


Bugs item #880996, was opened at 2004-01-21 00:28
Message generated for change (Comment added) made by dcd
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=880996&group_id=5470

Category: Build
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: David Dyck (dcd)
Assigned to: Nobody/Anonymous (nobody)
Summary: 2.3.3 make fails build posix_openpty'

Initial Comment:
I'm trying to build 2.3.3 on an older slackware system
that is still libc5 based. (gcc version egcs-2.91.66.1)

configure / make reports errors 
 after stripping warnings the error is reported as:

./Modules/posixmodule.c: In function `posix_openpty':
./Modules/posixmodule.c:2623: `I_PUSH' undeclared 
(first use in this function)
./Modules/posixmodule.c:2623: (Each undeclared 
identifier is reported only once
./Modules/posixmodule.c:2623: for each function it 
appears in.)

pyconfig.h only defined HAVE_DEV_PTMX 

#define HAVE_DEV_PTMX 1
/* #undef HAVE_OPENPTY */
/* #undef HAVE__GETPTY */

(I have a recent 2.4.25-pre6 kernel so I do 
have /dev/ptmx that configure uses to check for
HAVE_DEV_PTMX)


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

>Comment By: David Dyck (dcd)
Date: 2004-01-24 06:17

Message:
Logged In: YES 
user_id=53855

I submitted a patch # 881820
relative to 2.4 

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

Comment By: David Dyck (dcd)
Date: 2004-01-21 18:58

Message:
Logged In: YES 
user_id=53855

I have found that I have libbsd.a but
not libutil (that is checked for openpty by configure)

cd /usr/lib
nm -g libbsd.a | grep ' T openpty'
00000000 T openpty

If I create a fake libutil.a as a symlink to libbsd.a
 (ln -s libbsd.a libutil.a)
configure and make run to completion

It would have been "nicer" if configure had looked for
libbsd

looks like configure.in could be modified to
check for libbsd by adding a line like
AC_CHECK_FUNCS(openpty,,
AC_CHECK_LIB(bsd,openpty,[AC_DEFINE(HAVE_OPENPTY) LIB
S="$LIBS -lbsd"]))
after
AC_CHECK_FUNCS(openpty,, AC_CHECK_LIB(util,openpty,
[AC_DEFINE(HAVE_OPENPTY) LIB
S="$LIBS -lutil"]))



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

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



More information about the Python-bugs-list mailing list