Subject: Re: xform 0881 ELF build?
To: None <seebs@plethora.net>
From: Jim Wise <jwise@draga.com>
List: current-users
Date: 09/16/1999 01:20:01
-----BEGIN PGP SIGNED MESSAGE-----

On Thu, 16 Sep 1999 seebs@plethora.net wrote:

>In message <Pine.NEB.4.10.9909160033450.26961-100000@himring.draga.com>, Jim Wi
>se writes:
>>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'.
>*sigh*.

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
- -lxforms...

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
LyX back...

- -- 
				Jim Wise
				jwise@draga.com

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQEVAwUBN+B+EYkLDoBfn5jPAQGhbgf/d5/lBMgr3E92h9szAEZxZSvX6bleHryk
fECCToyrmpKhN9Y+TPhv8uleApprhgwfX08xNq3cXyw/2QF6mOP099aOgw8A4mRT
pE20GV4zVPUystUmHoQlrgOzYOQgYyxWT3yZPDL1oIC4x4f/Tv3r2zbmEO4dUk9t
8Azaf5WYYT7BTGkymR2+A4SMV20ImYAvEFXHsl4jw4kJ4G+rPlpQ1n5z/v9K6gY7
ssrZqmbQeykibEwJkl2XaGv5+RyR/WGurxbbV15TUrNLy8Y+LFG04ZAYKr6aPxhn
enNniUdpOX8UTZLMC8odCcaZwA4zIuNHOAfZfJ954ssMbMMOXRt5Yw==
=cbon
-----END PGP SIGNATURE-----