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 324709 - login_tty, a Linux function, breaks build on Solaris
login_tty, a Linux function, breaks build on Solaris
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: Build
2.13.x
Other Solaris
: High major
: 2.14
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
: 340278 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-12-21 15:57 UTC by Damien Carbery
Modified: 2007-01-12 09:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Don't compile login_tty call on Solaris (658 bytes, patch)
2005-12-21 15:58 UTC, Damien Carbery
none Details | Review
Provide local version of login_tty() for Solaris (or any OS where login_tty not found). (1.42 KB, patch)
2007-01-11 15:49 UTC, Damien Carbery
none Details | Review

Description Damien Carbery 2005-12-21 15:57:56 UTC
libgnomevfs/gnome-vfs-pty.c has a call to login_tty which does not exist on Solaris.
Solaris uses utmpx, not utmp like Linux.

Attached patch checks for Solaris (#if !defined (sun)).
Comment 1 Damien Carbery 2005-12-21 15:58:45 UTC
Created attachment 56254 [details] [review]
Don't compile login_tty call on Solaris
Comment 2 Christian Neumair 2006-02-25 17:49:35 UTC
Thanks for your bug report!

Maybe you could submit the attached patch to the gnome-vfs mailing list [1] for review?

[1] http://mail.gnome.org/mailman/listinfo/gnome-vfs-list
Comment 3 Damien Carbery 2006-02-26 23:21:16 UTC
Christian: Really? The patch is crap - it disables code just because I was building on Solaris. It's not the right solution. Or do you want me to submit it to get a conversation going?
Comment 4 Christian Neumair 2006-02-26 23:38:48 UTC
I don't understand the code, so I can't comment on it. Whatever it does, can't it be done in a POSIX-compliant way suitable for all modern UNICes?
Comment 5 Damien Carbery 2006-02-26 23:42:20 UTC
Essentially the patch '#ifdef's a few lines out. This is hardly the correct solution. Someone needs to port login_tty to the Solaris functions. Such a task is beyond me. If no one at your end knows how to do this, I could see if a developer here can help.
Comment 6 Christian Neumair 2006-02-27 00:00:39 UTC
Indeed, I'd strongly prefer if the Solaris utmp.h header provided what my libc header promises, for the sake of simplifiying ports. Popular BSDs also seems to provide login_tty in utmp.h.
Comment 7 Christian Kellner 2006-07-13 13:38:28 UTC
*** Bug 340278 has been marked as a duplicate of this bug. ***
Comment 8 Damien Carbery 2007-01-11 15:49:13 UTC
Created attachment 80033 [details] [review]
Provide local version of login_tty() for Solaris (or any OS where login_tty not found).

login_tty() function came from:
http://www-sor.inria.fr/~piumarta/squeak/stable/platforms/unix/plugins/PseudoTTYPlugin/openpty.h
There is another version at:
http://csourcesearch.net/package/multi-gnome-terminal/1.6.2/multi-gnome-terminal-1.6.2/gnome-terminal/gnome-login-support.c
Comment 9 Alexander Larsson 2007-01-12 09:32:34 UTC
Commited (but i can't test it). Thanks.