Subject: pkg/7770: XView doesn't build on alpha (any ELF?)
To: None <email@example.com>
From: Ross Harvey <firstname.lastname@example.org>
Date: 06/13/1999 18:22:48
>Synopsis: XView doesn't build on alpha (any ELF?)
>Responsible: pkg-manager (NetBSD software packages system bug manager)
>Arrival-Date: Sun Jun 13 18:05:01 1999
>Originator: Ross Harvey
Avalon Computer Systems, Inc.
System: NetBSD a3.hrh 1.4C NetBSD 1.4C (mkb) #2: Sat May 22 13:16:03 PDT 1999 email@example.com:/usr/ross/mkb alpha
> 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?
try to build xview on alpha (or other ELF systems?)
[ half-baked ideas discussed above ]