Subject: pkg/24224: ncurses build failure, buildlink3 lossage
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <grant@NetBSD.org>
List: netbsd-bugs
Date: 01/25/2004 14:21:51
>Number:         24224
>Category:       pkg
>Synopsis:       ncurses build failure, buildlink3 lossage
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 25 03:22:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     grant beattie
>Release:        SunOS 5.9
>Organization:
>Environment:
System: SunOS u10 5.9 Generic_112233-08 sun4u sparc SUNW,Ultra-5_10
Architecture: sparc
Machine: sun4u
>Description:

cd ../lib && /work/pkgbuild/devel/ncurses/work.sol9/.buildlink/bin/libtool CC -o libncurses++.la ../obj_lo/cursesf.lo ../obj_lo/cursesm.lo ../obj_lo/cursesw.lo ../obj_lo/cursespad.lo ../obj_lo/cursesp.lo ../obj_lo/cursslk.lo ../obj_lo/cursesapp.lo ../obj_lo/cursesmain.lo  -rpath /usr/pkg/lib  -version-info 5:3
CC -G -nolib -hlibncurses++.so.5 -o .libs/libncurses++.so.5.3   ../obj_lo/.libs/cursesf.o ../obj_lo/.libs/cursesm.o ../obj_lo/.libs/cursesw.o ../obj_lo/.libs/cursespad.o ../obj_lo/.libs/cursesp.o ../obj_lo/.libs/cursslk.o ../obj_lo/.libs/cursesapp.o ../obj_lo/.libs/cursesmain.o  -R/opt/SUNWspro/lib/rw7:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib  -L/work/pkgbuild/devel/ncurses/work.sol9/.buildlink/lib -R/opt/SUNWspro/lib/rw7:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib -L/work/pkgbuild/devel/libtool-base/work.sol9/.buildlink/lib -lc  
ld: fatal: file :/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib: open failed: No such file or directory
ld: fatal: file :/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib: open failed: No such file or directory
ld: fatal: File processing errors. No output written to .libs/libncurses++.so.5.3
*** Error code 1

from .work.log, -R is being mistakenly removed, causing the failure:

[*] /work/pkgbuild/devel/ncurses/work.sol9/.buildlink/bin/CC -G -nolib -hlibncurses++.so.5 -o .libs/libncurses++.so.5.3 ../obj_lo/.libs/cursesf.o ../obj_lo/.libs/cursesm.o ../obj_lo/.libs/cursesw.o ../obj_lo/.libs/cursespad.o ../obj_lo/.libs/cursesp.o ../obj_lo/.libs/cursslk.o ../obj_lo/.libs/cursesapp.o ../obj_lo/.libs/cursesmain.o -R/opt/SUNWspro/lib/rw7:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib -L/work/pkgbuild/devel/ncurses/work.sol9/.buildlink/lib -R/opt/SUNWspro/lib/rw7:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib -L/work/pkgbuild/devel/libtool-base/work.sol9/.buildlink/lib -lc
<.> /opt/SUNWspro/bin/CC -G -nolib -hlibncurses++.so.5 -o .libs/libncurses++.so.5.3 ../obj_lo/.libs/cursesf.o ../obj_lo/.libs/cursesm.o ../obj_lo/.libs/cursesw.o ../obj_lo/.libs/cursespad.o ../obj_lo/.libs/cursesp.o ../obj_lo/.libs/cursslk.o ../obj_lo/.libs/cursesapp.o ../obj_lo/.libs/cursesmain.o :/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib -L/work/pkgbuild/devel/ncurses/work.sol9/.buildlink/lib :/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib -lc -I/work/pkgbuild/devel/ncurses/work.sol9/.buildlink/include

the -R argument /opt/SUNWspro/lib/rw7 is also removed, I don't know why
this would be...

>How-To-Repeat:
build devel/ncurses on Solaris.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: