Subject: Re: xform 0881 ELF build?
To: None <email@example.com>
From: Jim Wise <firstname.lastname@example.org>
Date: 09/16/1999 01:20:01
-----BEGIN PGP SIGNED MESSAGE-----
On Thu, 16 Sep 1999 email@example.com wrote:
>In message <Pine.NEB.firstname.lastname@example.org>, Jim Wi
>>Odd. It works for me (just re-installed to be sure)... Now mind you,
>>there's a related problem with the ELF linker wanting to link libGL in
>>even if the program in question doesn't use the GL functions in
>>libxforms, but I'm not sure what to do about that yet...
>Hmm. I got around it, in my case, by manually unpacking the original library
>I sent in to the guy that our distribution came from. ;-)
>Now lyx still won't build, tons of references to things like 'fl_freeze_form'.
This is the above problem, also in PR pkg/8417
What happens is that libxforms includes some routines for using OpenGL
with XForms, using libGL. Well, under the NetBSD a.out linker, if you
don't use the GL functions, you can link a program with libxforms and
not libGL, and off you go. Apparently, the NetBSD ELF linker has a
problem where a program linked with libxforms but not libGL will get
unreferenced symbols even if it does not use any functions which
reference symbols in libGL.
This manifests in a particularly non-obvious way in LyX, where the
configure script fails to find libxforms (because the program it builds
against libxforms fails to link), and happily tries to build LyX without
You can work around this by having Mesa installed and adding -lGL to
LIBS on line 2873 of LyX's configure script (after make patch, before
make install), but I am still looking for a real solution -- I want my
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
-----END PGP SIGNATURE-----