Summary: Building gcc 3.4.2 on Solaris 10 x86

From: Andreas Höschler <ahoesch_at_smartsoft.de>
Date: Tue Jan 17 2006 - 08:32:41 EST
Dear managers,

the libraries were not installed and the crle was not in place when I 
first tried to build gcc. I did a make clean but that obviously was not 
sufficient. I had to do "rm -rf objdir"  and then start the build 
process from the very beginning. Then it worked.

Thanks a lot!

Regards,

   Andreas

>> 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
>> _______________________________________________
>> sunmanagers mailing list
>> sunmanagers@sunmanagers.org
>> http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Tue Jan 17 08:33:17 2006

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:54 EST