Re: [squid-users] Unable To Compile squid-3.0.STABLE9 on Sparc/Solaris

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 11 Oct 2008 15:21:37 +1300

wiskbroom_at_hotmail.com wrote:
>> From: simonw_at_zynet.net
>
>> On Friday 10 October 2008 15:25:19 wiskbroom_at_hotmail.com wrote:
>>> configure: error: cannot run C++ compiled programs.
>> What does it say in "config.log"?
>>
>> Betting men say it can't find libstdc++
>
> There was no mention of libstdc++ anywhere in config.log, bu those libs were not in my LD_LIBRARY_PATH neither. I've since then added it and recompiled, I am now getting much further, though now getting this:
>
> make[1]: Entering directory `/tmp/squid-3.0.STABLE9/src'
> /bin/bash ../libtool --tag=CXX --mode=link g++ -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments -D_REENTRANT -pthreads -g -O2 -g -o cf_gen cf_gen.o debug.o time.o globals.o libsquid.la libauth.la -L../lib -lmiscutil -lpthread -lm -lresolv -lsocket -lnsl
> g++ -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments -D_REENTRANT -pthreads -g -O2 -g -o cf_gen cf_gen.o debug.o time.o globals.o ./.libs/libsquid.a -L/source/gcc/5.10/4.2.2/5.10/sparc-sun-solaris2.10/libstdc++-v3/src -L/source/gcc/5.10/4.2.2/5.10/sparc-sun-solaris2.10/libstdc++-v3/src/.libs -L/source/gcc/5.10/4.2.2/5.10/./gcc ./.libs/libauth.a -pthreads /local/gcc/5.10/4.2.2/lib/libstdc++.so -L/usr/ccs/lib -lgcc_s -L/local/squid-3.0.STABLE9/lib -lmiscutil -lpthread -lm -lresolv -lsocket -lnsl -Wl,-R -Wl,/local/gcc/5.10/4.2.2/lib -Wl,-R -Wl,/local/gcc/5.10/4.2.2/lib
> ld: fatal: recording name conflict: file `/local/gcc/5.10/4.2.2/lib/libstdc++.so' and file `/source/gcc/5.10/4.2.2/5.10/sparc-sun-solaris2.10/libstdc++-v3/src/.libs/libstdc++.so' provide identical dependency names: libstdc++.so.6 (possible multiple inclusion of the same file)
> ld: fatal: File processing errors. No output written to cf_gen
> collect2: ld returned 1 exit status
> make[1]: *** [cf_gen] Error 1
> make[1]: Leaving directory `/local/squid-3.0.STABLE9/src'
> make: *** [all-recursive] Error 1
> root @ squid-cache-box1:/local/squid-3.0.STABLE9>
>
>
>> Any reason you used 4.2 rather than the 4.0 version SUN compile and ship all
>> lovingly configured, optimized for Sparc, debugged, and supported for $0 ?
>>
>>> 2. Does it make sense to try using "-enable-storeio=ufs,aufs" in my
>> configure line? This worked in Solaris 8.
>>
>> Damn a squid question - I'm here to ask them ;)
>
> LOL!
>
> Thanks, please let me know what you get as an answer...
>

Somehow these are both ending up in your flags paths:

-L/source/gcc/5.10/4.2.2/5.10/sparc-sun-solaris2.10/libstdc++-v3/src
-L/source/gcc/5.10/4.2.2/5.10/sparc-sun-solaris2.10/libstdc++-v3/src/.libs

so the libstdc++ is being included twice.

You said you added the path? okay. but check you add one.

Amos

-- 
Please use Squid 2.7.STABLE4 or 3.0.STABLE9
Received on Sat Oct 11 2008 - 02:21:44 MDT

This archive was generated by hypermail 2.2.0 : Sat Oct 11 2008 - 12:00:01 MDT