pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: HELP! Problem building ORBit2 from 2008Q4 on NetBSD 3.1



Paul Newhouse schrieb:
> $ cc ... -DG_DISABLE_DEPRECATED ... -c orbit-idl-driver.c
> orbit-idl-driver.c: In function `orbit_idl_tree_fake_ops':
> orbit-idl-driver.c:43: error: `G_GNUC_PRETTY_FUNCTION' undeclared (first use 
> in this function)

The GLib2 authors thought that G_GNUC_PRETTY_FUCTION should not be used
anymore (see /usr/pkg/include/glib/glib-2.0/glib/gmacros.h), so they
don't define it if G_DISABLE_DEPRECATED is defined.

You can work around that by adding CFLAGS+=-UG_DISABLE_DEPRECATED to
your mk.conf file.

To approach the real problem: What does "pkg_info -e libIDL" say? For
me, it's libIDL-0.8.11. If you have an older version, please have a look
in </usr/pkg/include/libIDL-2.0/libIDL/IDL.h>, which defines the macro
IDL_CHECK_CAST. Does that definition use the deprecated
G_GNUC_PRETTY_FUNCTION, or just G_STRFUNC? I'm just guessing, but that
may be the cause. See also:

    http://svn.gnome.org/viewvc/libIDL?view=revision&revision=585

Roland


Home | Main Index | Thread Index | Old Index