jfmxl
April 2nd, 2013, 02:39 PM
I'm trying to compile a c language program ... 'empty' ... but ld complains it cannot find 'openpty' or 'login_tty'. Here's the full return ....
jfl@ws7:~/Downloads/empty-0.6.18b$ make
gcc -Wall -lutil -o empty empty.c
/tmp/ccG9pZWz.o: In function `main':
empty.c:(.text+0x10f8): undefined reference to `openpty'
empty.c:(.text+0x118e): undefined reference to `login_tty'
collect2: ld returned 1 exit status
make: *** [all] Error 1
Googling the whereabouts of the functions leads me to believe they are in /usr/lib/libutil.so.
My system ... 11.10 ... has no such library, which explains why I cannot compile the program.
I cannot find any libutil package for 11.10.
Where are 'openpty' and 'login_tty' to be found on ubuntu 11.10?
Thanks.
jfl@ws7:~/Downloads/empty-0.6.18b$ make
gcc -Wall -lutil -o empty empty.c
/tmp/ccG9pZWz.o: In function `main':
empty.c:(.text+0x10f8): undefined reference to `openpty'
empty.c:(.text+0x118e): undefined reference to `login_tty'
collect2: ld returned 1 exit status
make: *** [all] Error 1
Googling the whereabouts of the functions leads me to believe they are in /usr/lib/libutil.so.
My system ... 11.10 ... has no such library, which explains why I cannot compile the program.
I cannot find any libutil package for 11.10.
Where are 'openpty' and 'login_tty' to be found on ubuntu 11.10?
Thanks.