GNOME Bugzilla – Bug 65011
Procman doesn't compile on Solaris 8/OSF
Last modified: 2011-11-11 10:03:55 UTC
The problem is that getpt is not defined for Solaris. Need to put an #ifdef in util.c similar to the FreeBSD check
Just knocking this up; Sun might have time/resources to take a look at it if it is flagged for them. Blocks testing too, if it won't build.
Is this still a problem, jacob?
it's still a problem for the community gnome release. as far as for sun work, no, since they're not shipping procman.
Right; just checking to make sure I had some clue if we should panic or not. :)
BTW, this code that uses getpt was stolen straight from ximian-setup- tools - src/common/xst-su.c (or something like that).
*** Bug 76832 has been marked as a duplicate of this bug. ***
add self as cc since bug i am following marked duplicate of duplicate of this. Also - 76832 - and its equivelent for OSF which I reported, both mention asprintf as being undefined - so that should probably be recoreded here.
*** Bug 97718 has been marked as a duplicate of this bug. ***
*** Bug 103397 has been marked as a duplicate of this bug. ***
I think this should be marked as Blocker. "Can't compile" seems to me the very definition of a blocking bug.
Since I have a sparc Solaris box, I'm willing to try and help fix this. The compile errors I get, when linking gnome-system-monitor, are: Undefined first referenced symbol in file getpt util.o _glibtop_init_hook_p /home/poshea/usr/gnome2/lib/libgtop_sysdeps_suid-2.0.so.0 asprintf util.o ld: fatal: Symbol referencing errors. No output written to gnome-system-monitor collect2: ld returned 1 exit status I looked in util.c for the BSD workaround, and tried to apply it for Solaris - but Solaris doesn't seem to have openpty. Any suggestions for the getpt workaround? For the second missing symbol, it's got to be related to the libgtop Solaris compile problems (bug 89432). I'll try and figure it out. For the third missing symbol, if someone could maybe attach a man page for asprintf to this bug, I could try to see which variety of printf on Solaris can do the trick.
One possiblity is to not compile the offending code for solaris. It is only used to perform actions requiring root privaledges. That code could be commented out for the Solaris builds.
highlander attached what seems to be a working patch for this to bug 106164, which is a dupe of this bug.
*** This bug has been marked as a duplicate of 106164 ***