From kde-solaris Fri Oct 12 17:13:40 2001 From: Vladimir Annenkov Date: Fri, 12 Oct 2001 17:13:40 +0000 To: kde-solaris Subject: Re: [kde-solaris] ld problem in kdemultimedia X-MARC-Message: https://marc.info/?l=kde-solaris&m=100290673506620 Set COMPILER_PATH environment variable to point to GNU binutils. For example, (on my system). $ gcc -print-prog-name=ld /usr/local/i386-pc-solaris2.8/bin/ld $ export COMPILER_PATH=/usr/ccs/bin $ gcc -print-prog-name=ld /usr/ccs/bin/ld $ export COMPILER_PATH=/opt/bin $ gcc -print-prog-name=ld /opt/bin/ld $ unset COMPILER_PATH $ gcc -print-prog-name=ld /usr/local/i386-pc-solaris2.8/bin/ld "/usr/local/i386-pc-solaris2.8" is the "exec-prefix" that has been used when gcc was built, and it is the default. It could be different on your system. On Friday 12 October 2001 01:44 am, Wind Yin wrote: > I try to compile kde2.2.1 on solaris 2.6 ( ultra 10) > > Everything seems fine except kdemultimdeia. I got the problem below : > > ################################## > > ld: warning: relocation error: R_SPARC_32: file .libs/objectcache_impl.o: > symbol > insert_unique__t8_Rb_tree5Zt12basic_string3ZcZt18string_char_traits1ZcZt24_ >_default_alloc_template2b0i0Zt4pair2ZCt12basic_string3ZcZt18string_char_trai >ts1ZcZt24__default_alloc_template2b0i0ZPt4list2ZQ24Arts6ObjectZt........ > external symbolic relocation against non-allocatable section .stab; cannot > be processed at runtime: relocation ignored > Undefined first referenced > symbol in file > insert_unique__t8_Rb_tree5Zt12basic_string3ZcZt18string_char_traits1ZcZt24_ >_default_alloc_template2b0i0Zt4pair2ZCt12basic_string3ZcZt18string_char_trai >ts1ZcZt24__default_alloc_template2b0i0ZPt4list2ZQ24Arts6ObjectZt9.... > .libs/objectcache_impl.o > > ld: fatal: Symbol referencing errors. No output written to > .libs/libartsmodules.la.closure > collect2: ld returned 1 exit status > make[4]: *** [libartsmodules.la.closure] Error 1 > ################################### > > I got a tip from someone that the gnu linker should be used instead of > solaris linker. Then I compiled the binutils-2.11.2 . But the question > is how to force the gcc to use gnu linker. I try to add --with-gnu-ld > when do 'confiure' ,but nothing changed. From the output: > ####################### > checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no > checking for /usr/ccs/bin/ld option to reload object files... (cached) -r > ####################### > It seems gcc will still use solaris linker (usr/ccs/bin/ld) . So the > compliation failed again. > > Who have some idea,experience or suggestion, please tell me. > > Thank you. ___________________________________________________ This message is from the kde-solaris mailing list. Account management: http://mail.kde.org/mailman/listinfo/kde-solaris. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.