When you use the openpty, forkpty, or login_tty function calls but do not link to -lutil there are unresolved symbols. the openpty(3) man page does not mention this fact; it just says 'available in glibc2.' The man page for openpty(3) on Debian system says: " NOTE These functions are included in libutil, hence you
When you use the openpty, forkpty, or login_tty function calls but do not link to -lutil there are unresolved symbols. the openpty(3) man page does not mention this fact; it just says 'available in glibc2.' The man page for openpty(3) on Debian system says: " NOTE These functions are included in libutil, hence youâll need to add -lutil to your compiler commandline. " In my opinion this note should be added to the openpty(3) man page. Reproducible: Always Steps to Reproduce: 1. man openpty 2. 3. Portage 2.0.49-r13 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r5) ================================================================= System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.3.10p1 distcc 2.9 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.2 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox autoaddcvs ccache distcc" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://highlander/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm erkdb slang readline arts svga X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl -java apache2 acpi acpi4linux alsa gtk2 m calendar mozilla ruby samba tcltk tetex usb xosd"
hrm, in which package is openpty?
I've installed man-pages-1.61 and the information I needed is there: " NOTE These functions are included in libutil, hence you'll need to add -lutil to your compiler commandline. " This bug should be closed.
will do