Building gcc 3.4.2 on Solaris 10 x86
2007-12-25 5:44:00
After installing a bunch of libraries from sunfreeware.com, I did the
following to buil dthe gcc sources.
cd /opt/temp
gunzip gcc-3.3.2-sol10-intel-local.gz
pkgadd -d gcc-3.3.2-sol10-intel-local
cd /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/install-tools/
pico mkheaders.conf
Now put "SHELL=/bin/sh" on the first line of this file.
./mkheaders
cd /usr/src
gunzip gcc-3.4.4.tar.gz
tar xvf gcc-3.4.4.tar
cd gcc-3.4.4
mkdir objdir
cd objdir
../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
--disable-nls --disable-libgcj --enable-languages=c,c++,objc
make bootstrap
This gets me
Undefined first referenced
symbol in file
libiconv_close libcpp.a(cppcharset.o)
libiconv_open libcpp.a(cppcharset.o)
libiconv libcpp.a(cppcharset.o)
ld: fatal: Symbol referencing errors. No output written to cc1
collect2: ld returned 1 exit status
make[2]: *** [cc1] Error 1
nm -g ./gcc/libcpp.a | grep icon
[45] | 0| 0|NOTY |GLOB |0 |UNDEF
|_cpp_destroy_iconv
[57] | 1259| 78|FUNC |GLOB |0 |2
|_cpp_destroy_iconv
[56] | 1043| 216|FUNC |GLOB |0 |2 |cpp_init_iconv
[47] | 0| 0|NOTY |GLOB |0 |UNDEF |libiconv
[58] | 0| 0|NOTY |GLOB |0 |UNDEF |libiconv_close
[53] | 0| 0|NOTY |GLOB |0 |UNDEF |libiconv_open
OK, libiconv is referenced by libcpp. I have installed
pkgadd -d libiconv-1.8-sol10-intel-local
and I have
crle -c /var/ld/ld.config -l
/usr/lib:/local/lib:/usr/local/lib:/usr/local/ssl/lib:/opt/GNUstep/
System/Library/Libraries
find /usr -name "libiconv*"
/usr/local/doc/libiconv
/usr/local/lib/libiconv.la
/usr/local/lib/libiconv.so
/usr/local/lib/libiconv.so.2
/usr/local/lib/libiconv.so.2.1.0
/usr/local/lib/libiconv.so.2.2.0
/usr/local/lib/libiconv_plug.so
I am stuck! What am I missing?
Thanks a lot!
Regards,
Andreas
Comments
Got something to say?
You must be logged in to post a comment.

