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 126241 - src/util.c compile error on NetBSD/sparc-1.5
src/util.c compile error on NetBSD/sparc-1.5
Status: RESOLVED FIXED
Product: system-monitor
Classification: Core
Component: general
unspecified
Other FreeBSD
: Normal normal
: ---
Assigned To: System-monitor maintainers
System-monitor maintainers
Depends on:
Blocks:
 
 
Reported: 2003-11-05 01:02 UTC by Adrian Bunk
Modified: 2011-11-11 10:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Adrian Bunk 2003-11-05 01:02:40 UTC
I get the following compile error on NetBSD/sparc-1.5<

<--  snip  -->

...
gcc  -O2 -mcpu=v8  -o gnome-system-monitor  cellrenderer.o procman.o
interface.o
 callbacks.o load-graph.o proctable.o prettytable.o util.o infoview.o
procaction
s.o procdialogs.o memmaps.o favorites.o -Wl,--export-dynamic
-L/usr/local/lib -L
/usr/X11R6/lib -L/usr/local/lib -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lxml2
-lz -
lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2 -lpangoft2-1.0 -lbonobo-2
-lgnomevf
s-2 -lbonobo-activation -lgconf-2 -lORBit-2 -lgthread-2.0 -lpthread
-lgtop-2.0 -
lgtop_sysdeps-2.0 -lgtop_common-2.0 -lXau -lwnck-1 -lstartup-notification-1
-lgt
k-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0
-lpangox-1.0 -
lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lm   
util.o(.text+0x3c): In function `exec_su':
: undefined reference to `getpt'
collect2: ld returned 1 exit status
gmake[2]: *** [gnome-system-monitor] Error 1
gmake[2]: Leaving directory `/aux/adrian/build/gnome-system-monitor-2.4.0/src'

<--  snip  -->


On NetBSD/sparc-1.5, neither getpt nor openpty are available.
Comment 1 Kevin Vandersloot 2003-11-08 14:35:59 UTC
Fixed in 2.5.x libgtop and gnome-system-monitor.
Comment 2 Adrian Bunk 2003-11-09 16:19:14 UTC
Compilation of 2.5.1 still fails with this error.
Comment 3 Adrian Bunk 2003-11-09 17:40:36 UTC
Some more information:

The information in my initial report that openpty is not available on
NetBSD was wrong.

system-monitor compiles if you change in src/util.c the #ifdef before
the getpt function for FreeBSD to
  #if defined(__FreeBSD__) || defined(__NetBSD__)

But different to FreeBSD, it's additionally required to link
gnome-system-monitor with libutil.
Comment 4 alexander.winston 2004-01-29 17:27:37 UTC
Adding the portability keyword.
Comment 5 Benoît Dejean 2005-01-16 12:14:59 UTC
These hacks have been replaced by libgnomesu.