GNOME Bugzilla – Bug 340278
login_tty doesn't exist on solaris
Last modified: 2006-07-13 13:38:28 UTC
More jhbuilding of gnome-vfs CVS HEAD on opensolaris: gnome-vfs-pty.c: In function `_gnome_vfs_pty_run_on_pty': gnome-vfs-pty.c:311: warning: implicit declaration of function `login_tty' gnome-vfs-pty.c:311: warning: nested extern declaration of `login_tty' The relevant section of code is #ifdef HAVE_UTMP_H /* This sets stdin, stdout, stderr to the socket */ if (login && login_tty (fd) == -1) { g_printerr ("mount child process login_tty failed: %s\n", strerror (errno)); return -1; } #endif and was added by this patch http://cvs.gnome.org/viewcvs/gnome-vfs/libgnomevfs/gnome-vfs-pty.c?r1=1.4&r2=1.5 Solaris doesn't have login_tty(), although it does have utmp.h. There's a reimplementation of login_tty in libzvt: http://cvs.gnome.org/viewcvs/libzvt/libzvt/gnome-login-support.c?rev=1.15
I can confirm that this is a problem, and eventually causes a link error for programs linking against libgnome-vfs (e.g. gnome-vfs-daemon) when building gnome-vfs-2.14.1 and gnome-vfs-2.15.1 on Solaris 10.
This is also a duplicate of bug # 324709 , and a blocker for Solaris.
*** Bug 342205 has been marked as a duplicate of this bug. ***
Indeed a dup. I am using this as the bug I dup against. *** This bug has been marked as a duplicate of 324709 ***