references to forkpty and openpty on Linux (RH7.2)
Steve Kirkendall
skirkendall at dsl-only.net
Sat May 18 23:35:14 EDT 2002
Anton Graph wrote:
> 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
[...]
> /usr/local/src/Python-2.2.1/./Modules/posixmodule.c:1934: undefined
> reference to `openpty'
> /usr/local/src/Python-2.2.1/./Modules/posixmodule.c:1965: undefined
> reference to `forkpty'
Try adding "-lutil" to the link line. The openpty() and forkpty()
functions should be defined there. I don't know why your grep
commands failed to locate the reference though.
More information about the Python-list
mailing list