gnome-ppp & login_tty symbol on Linux

I got linkage error while building gnome-ppp:

> gcc -g -O2 -o gnome-ppp account-window.o dial-window.o main.o misc.o -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb -lglib -ldl -rdynamic -L/home/guerby/install/cvs/lib -L/usr/X11R6/lib ../gnome-ppp/libgnome_ppp/libgnome_ppp.a -lzvt -lm
> /home/guerby/install/cvs/lib/ undefined reference to `login_tty'
> make[3]: *** [gnome-ppp] Error 1
> make[3]: Leaving directory `/home/guerby/work/cvs/gnome-network/tmp/gnome-ppp'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/guerby/work/cvs/gnome-network/tmp/gnome-ppp'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/guerby/work/cvs/gnome-network/tmp'
> make: *** [all-recursive-am] Error 2

Looks like there's some work to determine if the system has a
login_tty or not, my Linux box seems to have one located in libutil,
but -lutil is missing from the linker arguments. I patched the to add it, however I'm pretty sure this not the right
way to do it portability-wise ;-). I looked on the GNU libc page and
found no mention of this function, it is not documented on my Linux
box, and just appears in utmp.h. I don't know if libutil is standard
or something, and the configure machinery to figure this out is far
beyond my knowledge right now, so I'll left that to the GNOME people


RCS file: /cvs/gnome/gnome-network/gnome-ppp/,v
retrieving revision 1.16
diff -u -r1.16
---	1999/02/17 09:46:22	1.16
+++	1999/02/20 10:19:00
@@ -18,7 +18,7 @@
-	$(top_builddir)/gnome-ppp/libgnome_ppp/libgnome_ppp.a -lzvt
+	$(top_builddir)/gnome-ppp/libgnome_ppp/libgnome_ppp.a -lzvt -lutil
 Network_DATA = gnome-ppp.desktop

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]