Subject: ncurses and lang/gcc (was Re: libiconv on Solaris)
To: None <tech-pkg@NetBSD.org>
From: Charlie Allom <charlie@rubberduck.com>
List: tech-pkg
Date: 12/13/2003 14:06:32
Hi,
on the note of using USE_GCC3, I have another issue that I haven't been
able to get around with any lang/gcc3{,-c,-c++} package. It is this error
on compilation of ncurses, and I'm not sure why it is
happening..
g++ -shared -nostdlib -L/usr/pkg/gcc-3.3/lib/gcc-lib/sparc-sun-solaris2/3.3 -Wl,-R/usr/pkg/gcc-3.3/lib/gcc-lib/sparc-sun-solaris2/3.3 -L/usr/pkg/gcc-3.3/lib -Wl,-R/usr/pkg/gcc-3.3/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/crti.o /usr/ccs/lib/values-Xa.o /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/crtbegin.o ../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 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2 -L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/../../.. -lstdc++ -lm -lgcc_s -lc /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/crtend.o /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/crtn.o -Wl,-h -Wl,libncurses++.so.5 -o .libs/libncurses++.so.5.3
g++: /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/crti.o: No such file or directory
g++: /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/crtbegin.o: No such file or directory
g++: /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/crtend.o: No such file or directory
g++: /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/crtn.o: No such file or directory
*** Error code 1
Stop.
bmake: stopped in /usr/obj.pkgsrc/devel/ncurses/work/ncurses-5.3/c++
*** Error code 1
Stop.
bmake: stopped in /usr/obj.pkgsrc/devel/ncurses/work/ncurses-5.3
*** Error code 1
Stop.
bmake: stopped in /usr/src/pkgsrc/devel/ncurses
*** Error code 1
Stop.
bmake: stopped in /usr/src/pkgsrc/devel/ncurses
zsh: 6252 exit 1 sudo bmake
1:57 sparky:pkgsrc/devel/ncurses%
Now .. when I search for /usr/local/lib/gcc-lib, I find these files in
.buildlink (which surprises me :)
sudo grep -is usr.local.lib.gcc work/*/*/*
work/.buildlink/bin/.cache-add-trans:-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2)
work/.buildlink/bin/.cache-add-trans:-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/../../..)
work/.buildlink/bin/.cache-trans:-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2)
work/.buildlink/bin/.cache-trans:-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/../../..)
They both contain these nasty lines.
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2)
cachearg=""
arg="$cachearg"; cachehit=yes
;;
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3.2/../../..)
cachearg=""
arg="$cachearg"; cachehit=yes
;;
My history is that I installed SMCgcc which was built for
solaris2.9 (pkgsrc builds as solaris2?) and then deleted SMCgcc
once lang/gcc3 was built. What has cached this? In the past - I
have rebuilt all my libtool stuff - to no avail. Do any
buildlink-savvy people know what is going on?
Regards,
C.
--
charlie@rubberduck.com - Melbourne, Australia
http://rubberduck.com/~yeled/
PGP: 0x14AA7941 || finger yeled@lazy.spodder.com