GNOME Bugzilla – Bug 126241
src/util.c compile error on NetBSD/sparc-1.5
Last modified: 2011-11-11 10:03:55 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.
Fixed in 2.5.x libgtop and gnome-system-monitor.
Compilation of 2.5.1 still fails with this error.
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.
Adding the portability keyword.
These hacks have been replaced by libgnomesu.