abicheck.sh portability
Guido Berhoerster
gber at opensuse.org
Wed Mar 23 23:50:50 CET 2011
* Nick Schermer <nickschermer at gmail.com> [2011-03-23 21:15]:
> On Wed, Mar 23, 2011 at 6:55 PM, Guido Berhoerster <gber at opensuse.org> wrote:
> > * Adam Miller <maxamillion at fedoraproject.org> [2011-03-23 17:57]:
> >> On Wed, Mar 23, 2011 at 05:07:13PM +0100, Guido Berhoerster wrote:
> >> >
> >> > Hello,
> >> >
> >> > the abicheck.sh script included with libxfce4ui, exo, thunar,
> >> > xfce4-panel, xfconf, libxfce4util, and thunar-vfs which verifies
> >> > the symbol table uses non-portable constructs which currently
> >> > cause buildbot builds to fail on the Solaris platform.
> >> >
> >> > With the common build environment Solaris nm is in a $PATH ahead
> >> > of GNU nm and the "nm -D" output format differs. IMO the best
> >> > solution is using the -P option which produces a POSIX-specified
> >> > output format on both nm implementations, hence I'd suggest:
> >> >
> >> > nm -D -g -P libfoo.so | awk '$2~/^[DRT]$/&&$1~/^[^_]/{print $1}' >actual-abi
>
> Does the version in gtk work?
> http://git.gnome.org/browse/gtk+/tree/gtk/abicheck.sh
No, only with GNU nm. The important part is the "-P" option
because it enables a POSIX-specified output format, the default
output format is undefined and thus implementation-specific.
--
Guido Berhoerster
More information about the Xfce4-dev
mailing list