GNOME Bugzilla – Bug 576421
GLIBTOP_SUID_PROC_* undefined on OpenSolaris
Last modified: 2018-01-10 19:47:22 UTC
On OpenSolaris Nevada build 101, libgda r2815 fails to build with the following error: make[3]: Entering directory `/space/buildbot/checkout/gnome2/libgtop/lib' /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I../sysdeps/solaris -I../include -I/space/buildbot/prefix/include/glib-2.0 -I/space/buildbot/prefix/lib/glib-2.0/include -Winline -Wall -std=gnu89 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -g -O2 -MT sysdeps.lo -MD -MP -MF .deps/sysdeps.Tpo -c -o sysdeps.lo sysdeps.c gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I../sysdeps/solaris -I../include -I/space/buildbot/prefix/include/glib-2.0 -I/space/buildbot/prefix/lib/glib-2.0/include -Winline -Wall -std=gnu89 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -g -O2 -MT sysdeps.lo -MD -MP -MF .deps/sysdeps.Tpo -c sysdeps.c -fPIC -DPIC -o .libs/sysdeps.o sysdeps.c:49: error: `GLIBTOP_SUID_PROC_WD' undeclared here (not in a function) sysdeps.c:50: error: `GLIBTOP_SUID_PROC_AFFINITY' undeclared here (not in a function) make[3]: *** [sysdeps.lo] Error 1 The preprocessed source shows that GLIBTOP_SUID_PROC_WD and GLIBTOP_SUID_PROC_AFFINITY have not been appropriately defined in sysdeps/solaris/glibtop_server.h Full uname: SunOS manduba 5.11 snv_101 sun4u sparc SUNW,Ultra-Enterprise Solaris
Sun have two patches http://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/libgtop-01-solaris.diff http://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/libgtop-02-link.diff the first of which defines the missing symbols. Possibly also bug 548095.
I've already rejected theses patch because they are messy, contain unrelated changes and break ABI __and__ API.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/libgtop/issues/15.