Subject: is it suggested to rebuild and reinstall libtool-base after changing
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 10/22/2003 17:02:32
ncurses was failing like:

g++: /usr/lib/gcc-lib/i386-linux/2.95.4/crtbeginS.o: No such file or directory
g++: /usr/lib/gcc-lib/i386-linux/2.95.4/crtendS.o: No such file or directory

This particular system was Debian at one time. My libtool built from
pkgsrc had:

predep_objects="/usr/lib/crti.o /usr/lib/gcc-lib/i386-linux/2.95.4/crtbeginS.o"

postdep_objects="/usr/lib/gcc-lib/i386-linux/2.95.4/crtendS.o /usr/lib/crtn.o"

compiler_lib_search_path="-L/usr/lib/gcc-lib/i386-linux/2.95.4"

This system later had gcc3 (which was 3.2.1 from pkgsrc).

(Before I realized I upgraded to gcc3-c++-3.3.1 from pkgsrc, but problem
continued.)

I had moved those gcc libraries out of the way, because I changed
compiler.

My fix was to rebuild and reinstall libtool-base from pkgsrc.

Is it suggested to rebuild and reinstall libtool-base after changing
compiler?

It seems like the gcc compilers should have a MESSAGE suggesting this
(because libtool still has hard-coded gcc3 version, like
"/usr/gcc3/lib/gcc-lib/i386-pc-linux/3.3.1/crtendS.o").

Should the gcc3-c MESSAGE file have a note about this? What should it
say?

I don't recall having this error before (even when compiling many packages
on several diverse Slackware/Debian/my-own-linux hybrid systems).

   Jeremy C. Reed
   http://www.reedmedia.net/