Closed GoogleCodeExporter closed 9 years ago
According to http://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html both
-pthread
and -pthreads should work on SPARC.
What is the gcc-version you are using?
Original comment by trond.no...@gmail.com
on 31 Dec 2009 at 6:53
Had same issue trying to compile on solaris, memcached-1.4.4 and gcc (GCC)
3.4.3 (csl-sol210-3_4-
20050802).
Original comment by jalen...@gmail.com
on 2 Jan 2010 at 11:08
Guess you should try a newer version of gcc (according to
http://gcc.gnu.org/gcc-3.4/
3.4.3 was released in 2004...) I just tried to compile memcached with gcc 4.4.1
on a
T5240 running Solaris 10, and I didn't get a single warning from gcc.
Original comment by trond.no...@gmail.com
on 3 Jan 2010 at 10:14
Yep, I was using gcc 3.4.3:
[root@mem-01.rent.com ~]$ gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with: /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-
3.4.3/configure --prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without-gnu-as
--with-
ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Original comment by aavak...@gmail.com
on 4 Jan 2010 at 8:06
[deleted comment]
Just wanted to add a quick note that Sun Solaris comes with gcc 3.4.3, and even
sunfreeware.com only provides gcc-3.4.6 as an alternative.
Basically if we don't fix this in configure to support gcc 3.4.x, many people
who
get Solaris and don't specifically upgrade gcc themselves might have the
problem I
encoutered.
The real issue is that 'gcc: unrecognized option `-pthread'' is a warning and
not an
error. If the person compiling memcached ignores that warning or does not
notice
it, and installs memcached, the results are insiduous (cache failures at small
cache
sizes etc...).
Original comment by aavak...@gmail.com
on 6 Jan 2010 at 8:56
It's much easier to add this one-liner to your build script than to install a
recent gcc on Solaris
perl -p -i -e 's/-pthread"/-pthreads"/g' configure
Original comment by jesserth...@gmail.com
on 16 Nov 2010 at 4:56
Can't support old versions of gcc anymore. we're moving on.
Original comment by dorma...@rydia.net
on 15 Apr 2011 at 6:40
Original issue reported on code.google.com by
aavak...@gmail.com
on 31 Dec 2009 at 2:48