After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 340278 - login_tty doesn't exist on solaris
login_tty doesn't exist on solaris
Status: RESOLVED DUPLICATE of bug 324709
Product: gnome-vfs
Classification: Deprecated
Component: Build
cvs (head)
Other opensolaris
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
: 342205 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-05-01 12:00 UTC by James Andrewartha
Modified: 2006-07-13 13:38 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description James Andrewartha 2006-05-01 12:00:20 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
Comment 1 Tim Mooney 2006-05-26 19:39:23 UTC
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.

Comment 2 Tim Mooney 2006-06-15 22:33:00 UTC
This is also a duplicate of bug # 324709 , and a blocker for Solaris.
Comment 3 Christian Kellner 2006-07-13 13:36:07 UTC
*** Bug 342205 has been marked as a duplicate of this bug. ***
Comment 4 Christian Kellner 2006-07-13 13:38:28 UTC
Indeed a dup. I am using this as the bug I dup against. 

*** This bug has been marked as a duplicate of 324709 ***