Subject: Re: 1.4.2 to 1.5_BETA and library problems
To: None <current-users@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: current-users
Date: 11/03/2000 19:34:26
On Thu, 26 Oct 2000, Frank van der Linden wrote:
> There's one advice I can give with regard to 1.4.x -> 1.5 upgrades:
> use sysinst :-) On i386. It will deal with the a.out shared libraries,
> at least, the standard ones in /usr/lib.
I can't seem to find the appropriate code in sysinst that has anything
specific that does a better upgrade for a.out to ELF. As far as I have
found, it just gets and extracts (with pax) the sets -- I can't see
anything special or different. In fact, using the present sysinst may be
the wrong idea: it doesn't back up a.out libraries under /emul/aout, so it
blindly overwrites them -- which may break some applications until you can
recompile them as ELF.
> After that, you can reboot and deal with the other issues, like X. Upgrading
> packages is a harder issue.
>
> By now, you seem to have tar'ed, copied and linked yourself into
> a bit of a corner..
Yep :) I have appeared to do that. But I now have got almost everything to
work by doing "pkg_delete -r" and "make clean" for various packages and
then building them one at a time.
This has been a painful^?^?^?^?^?^?^?learning experience for over a week.
Today, my machine and I have been trying to build gnumeric numerous times
for over eight hours. On the way, I had to "pkg_delete -r" over five
a.out packages. My last problem was with xscreensaver-gnome.
===> Building for xscreensaver-gnome-3.25nb1
cc -Wall -Wstrict-prototypes -Wnested-externs -Wno-format -Wp,-lang-c89
-Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
-Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/usr/X11R6/lib
-o attraction attraction.o screenhack.o ../utils/resources.o
../utils/visual.o ../utils/usleep.o ../utils/yarandom.o ../utils/hsv.o ../utils/colors.o
../utils/spline.o -L/usr/X11R6/lib -L/usr/X11R6/lib -L/usr/X11R6/lib
-lXmu -lSM -lICE -lXt -lX11 -lXext -lm
/usr/X11R6/lib/libXt.a(Shell.o): In function `StopManagingSession':
Shell.o(.text+0x2a3c): undefined reference to `SmcCloseConnection'
/usr/X11R6/lib/libXt.a(Shell.o): In function `JoinSession':
Shell.o(.text+0x2ab4): undefined reference to `SmcModifyCallbacks'
Shell.o(.text+0x2abf): undefined reference to `SmcClientID'
Shell.o(.text+0x2b1b): undefined reference to `SmcOpenConnection'
Shell.o(.text+0x2bfa): undefined reference to `SmcGetIceConnection'
Shell.o(.text+0x2c08): undefined reference to `IceConnectionNumber'
/usr/X11R6/lib/libXt.a(Shell.o): In function `SetSessionProperties':
Shell.o(.text+0x2fe3): undefined reference to `SmcSetProperties'
...
Some how or some reason the code isn't matching up with the libraries. But
this problem doesn't appear have anything to do with pkgsrc, since it is
/usr/X11R6/lib/libXt.a. Does anyone have any ideas?
(Again, I am running 1.5_BETA (i386); I was running 1.4.2; I already setup
my /emul/aout, but I don't think this applies. I am running X; and I have
been able to build and compile numerous X-related packages and other
outside X applications, like blackbox, just fine. My /usr/X11R6/lib and
/usr/X11R6/include/X11 files all appear to be recent -- as unpacked from
the 1.5_BETA sets.)
Well anyways, I worked-around this problem by commenting out the
dependency for xscreensaver-gnome in the gnome-core pkgsrc Makefile. As
far as I can tell, gnumeric works fine without the xscreensaver-gnome. (I
guess I should mention that I don't use gnome as a display manager if that
matters; I use blackbox as my window manager.)
(By the way... why do I need xscreensaver-gnome just to use gnumeric??)
Jeremy C. Reed
http://www.reedmedia.net/