Subject: pkg/8829: cannot build new lesstif with old lesstif still installed
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nocturne@arepa.com>
List: netbsd-bugs
Date: 11/19/1999 15:36:39
>Number: 8829
>Category: pkg
>Synopsis: cannot build new lesstif with old lesstif still installed
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager (NetBSD software packages system bug manager)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Nov 19 15:36:00 1999
>Last-Modified:
>Originator: Eric Mumpower
>Organization:
Arepa
>Release: Stock NetBSD 1.4/x86 release <NetBSD-current source date>
>Environment:
System: NetBSD dr-teeth 1.4 NetBSD 1.4 (TEETH) #8: Sun Jul 4 12:48:00 EDT 1999 nocturne@dr-teeth:/usr/src/sys/arch/i386/compile/TEETH i386
>Description:
Lesstif 0.89.4, the current pkgsrc version, cannot build while a
previous version (0.87.1) is installed under the same prefix as the
new build is configured to use.
>How-To-Repeat:
Have lesstif-0.87.1 installed from a previous pkgsrc build. Try to
build the current lesstif (lesstif-0.89.4). It will build along
happily for a while, but eventually fail with this error:
> /usr/local/bin/pkglibtool-a.out-1.2p2 --mode=link cc -O2 -I/usr/X11R6/include -DNONSTANDARD_CONVERTERS -DLESSTIF_VERBOSE -DLESSTIF_PRODUCTION -Wl,-R/lib -L/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/local/lib -L/usr/local/lib -Wl,-R/lib -L/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/local/lib -L/usr/local/lib -o mwm colormaps.o cursors.o decorate.o defaults.o desktop.o events.o functions.o icons.o menus.o misc.o move.o mwm.o mwmerr.o mwmparse.o mwmlex.o pager.o pan.o props.o resize.o resources.o screens.o windows.o ../../../lib/Xm-2.0/libXm.la -L/usr/X11R6/lib -lXt -lSM -lICE -lXext -lX11
> cc -O2 -I/usr/X11R6/include -DNONSTANDARD_CONVERTERS -DLESSTIF_VERBOSE -DLESSTIF_PRODUCTION -Wl,-R/lib -L/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/local/lib -L/usr/local/lib -Wl,-R/lib -L/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/local/lib -L/usr/local/lib -o .libs/mwm colormaps.o cursors.o decorate.o defaults.o desktop.o events.o functions.o icons.o menus.o misc.o move.o mwm.o mwmerr.o mwmparse.o mwmlex.o pager.o pan.o props.o resize.o resources.o screens.o windows.o -R/usr/X11R6/lib -L../../../lib/Xm-2.0/.libs -lXm -L/lib -L/usr/X11R6/lib -L/usr/local/lib -L/lib -L/usr/X11R6/lib -L/usr/local/lib -L/usr/X11R6/lib -lXt -lSM -lICE -lXext -lX11
> icons.o: Undefined symbol `__LtXpmReadFileToImage' referenced from text segment
> collect2: ld returned 1 exit status
> *** Error code 1
This is caused because the linking, by its syntax, finds the obsolete
-lXm before the newly built one, and thus cannot find the symbol
LtXpmReadFileToImage which was added to libXm between the obsolete
library version and the new revision.
>Fix:
Dunno. This may not have a good fix. There's no elegant solution that
involves only the packaging system. But I thought I'd report it for
completeness, if nothing else.
>Audit-Trail:
>Unformatted: