Subject: Re: Errors building xview-lib
To: None <email@example.com, firstname.lastname@example.org>
From: Ross Harvey <email@example.com>
Date: 06/13/1999 17:21:03
> From: Paul Goyette <firstname.lastname@example.org>
> Hello - I'm trying to install the xview package(s), and got the
> following error:
> rm -f libolgx.so.3.2~ ./xshared/libolgx.so.xs.o
> (cd ./xshared; ld -o ../libolgx.so.3.2~ -shared -Wl,-rpath,/usr/X11R6/lib ?*.o)
> ld: unrecognized option `-Wl,-rpath,/usr/X11R6/lib'
> *** Error code 1
> Now, I _know_ that all of my headers etc. are correct, 'cuz I just
> reinstalled everything from 1.4 sources. I even rebuilt all of X, "just
> in case" that was the problem.
> The basic problem is that the "-Wl,-rpath" stuff is being handed
> directly to ld in EXTRA_LOAD_FLAGS. But I can't figure out how that
> gets into the Makefile, since it's not mentioned in the Imakefile!
> Any ideas, anyone?
It comes indirectly from /usr/X11R6/lib/X11/config and the problem seems
to be something like this: the xview-config package installs XView.rules
(and XView.LOTSOFJUNK) over there, and this does a number of things wrong.
Look at line 151 (and 178) of XView.rules.
1. It shouldn't be redefining the X11 library rules. We already
get them right, if the pkg redefines them only lossage can
2. There is no reason to pass those args, they are used when
linking programs against shared libraries, not when building
libraries. (And it doesn't seem to do the shared stuff right
at all, not even remotely, yet that's what it seems to be trying
3. It runs $(LD) instead of $(CC)
You can't fix (1) easily, but (2) or (3) should be pretty easy to hack into
the installed XView.rules file. I think I will leave actually fixing the
package to someone else, but I suspect it involves adding a patch (in the
xview-config pkg) against XView.rules or maybe some of the other config-dir
stuff. Any pkg hacks around?