references to forkpty and openpty on Linux (RH7.2)

Anton Graph "aglyport\" at n-o.s,p/a__m.yahoo.com>
Fri May 17 20:01:57 EDT 2002


g++ -V 2.95.3 -g  -o metadb metadb.o metaadb.o metaddl.o metapy.o 
i386-linux.o -L/usr/local/lib/python2.2/config -lpython2.2  config2.o 
-lpthread -ldl -lm
config2.o(.data+0x0):/usr/local/agl/metadb/config2.c: multiple 
definition of `_PyImport_Inittab'
/usr/local/lib/python2.2/config/libpython2.2.a(config.o)(.data+0x0):/usr/local/src/Python-2.2.1/Modules/config.c: 
first defined here
/usr/bin/ld: Warning: size of symbol `_PyImport_Inittab' changed from 
120 to 128 in config2.o
/usr/local/lib/python2.2/config/libpython2.2.a(posixmodule.o): In 
function `posix_tmpnam':
/usr/local/src/Python-2.2.1/./Modules/posixmodule.c:4501: the use of 
`tmpnam_r' is dangerous, better use `mkstemp'
/usr/local/lib/python2.2/config/libpython2.2.a(posixmodule.o): In 
function `posix_tempnam':
/usr/local/src/Python-2.2.1/./Modules/posixmodule.c:4451: the use of 
`tempnam' is dangerous, better use `mkstemp'
/usr/local/lib/python2.2/config/libpython2.2.a(posixmodule.o): In 
function `posix_openpty':
/usr/local/src/Python-2.2.1/./Modules/posixmodule.c:1934: undefined 
reference to `openpty'
/usr/local/lib/python2.2/config/libpython2.2.a(posixmodule.o): In 
function `posix_forkpty':
/usr/local/src/Python-2.2.1/./Modules/posixmodule.c:1965: undefined 
reference to `forkpty'


for i in *.a; do echo $i; nm $i|grep forkpty; done
as well as
for i in *.so; do echo $i; nm $i|grep forkpty; done

produced no results and, yet, pyconfig.h happily reports #define 
HAVE_OPENPTY 1

Any ideas what is going on?
Thank you.
If that's of any help I've blown /usr/lib/gcc-lib that contained support 
files for gcc 2.96.
I'm not using 2.96 though, see command line.

Btw is including config file with my extension module after python2.2 
lib on the linker command line sounds right?




More information about the Python-list mailing list