[19937] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: compiling with glade on Solaris fails, no __eprintf?

daemon@ATHENA.MIT.EDU (Greg Hudson)
Sun Oct 28 09:41:56 2001

Message-Id: <200110281441.JAA32476@error-messages.mit.edu>
To: Derek Atkins <warlord@MIT.EDU>
cc: bugs@MIT.EDU
In-Reply-To: Your message of "28 Oct 2001 09:35:27 EST."
             <sjmlmhv96j4.fsf@rcn.ihtfp.org> 
Date: Sun, 28 Oct 2001 09:41:52 -0500
From: Greg Hudson <ghudson@MIT.EDU>

> I can't seem to get this workaround to actually work..  When I add
> -laudiofile to my LIBS, configure dies even earlier.  So I took
> another route, to try to track down the problem.

Try setting LDFLAGS to -L/usr/athena/lib as well, or just setting LIBS
to "-L/usr/athena/lib -laudiofile".  Otherwise configure will die
trying to determine that the compiler works.

> So you are right; the question is why libgladeConf.sh isn't picking
> up the -laudiofile link requirement?

I think this was a build order issue; -lesd -laudiofile are supposed
to come from "gnome-config --libs gnomeui", since -lgnome includes
some esound stuff.  But for some reason, when that command was run
during the libglade configuration, those libraries weren't included.
My guess is that:

  * gnome-libs was built before esound, because the packages file
    didn't list a dependency.  gnome-libs happily built anyway,
    without esound support.

  * libglade built happily against the non-esound-enabled gnome-libs,
    and its libglade-config script hardcoded the return value of
    "gnome-config --libs gnomeui", which did not include esound stuff.

  * gnome-libs was rebuilt for an early patch release in order to get
    some fix in.  This time, the gnome-libs configuration found
    esound, and compiled in support for it.  But libglade was not
    rebuilt in order to pick up the new value of "gnome-config --libs
    gnomeui".

One more reason why gnome *-config scripts should invoke sub-configs
at runtime instead of hardcoding their values.  I'll probably submit a
bug report against libglade, although almost every gnome package is
guilty of this sin.  If I'm lucky, the right developers will read it.

I have added a dependency in the packages file for gnome-libs on
esound, and rebuilt the libglade configuration scripts for the next
patch release, which should be today due to the SUNWski screw.

home help back first fref pref prev next nref lref last post