[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Problem compiling Subversion 1.6.3 on Solaris 6

From: Giulio Troccoli <giulio.troccoli_at_uk.linedata.com>
Date: Wed, 24 Jun 2009 15:38:18 +0100

I'm trying to compile Subversion 1.6.3 on a SunOS 5.6 (Solaris 6) platform.

I have downloaded both subversion and the dependencies kits. I run configure as

./configure --prefix=/user/dev/local --without-serf --disable-shared --enable-static --enable-all-static

but make fails with

/bin/ksh /user/dev/subversion-1.6.3/libtool --tag=CC --silent --mode=compile gcc -DSOLARIS2=6 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I/user/dev/subversion-1.6.3/apr/include -I/user/dev/subversion-1.6.3/apr-util/include -g -O2 -g -O2 -pthreads -D_LARGEFILE64_SOURCE -DNE_LFS -I./subversion/include -I./subversion -I/user/dev/subversion-1.6.3/apr/include -I/user/dev/subversion-1.6.3/apr-util/include -I/user/dev/subversion-1.6.3/neon/src -I/user/dev/local/include/neon -I/user/dev/subversion-1.6.3/sqlite-amalgamation -o subversion/libsvn_subr/sqlite.lo -c subversion/libsvn_subr/sqlite.c
In file included from subversion/libsvn_subr/sqlite.c:35:
/user/dev/subversion-1.6.3/sqlite-amalgamation/sqlite3.c: In function `pthreadMutexAlloc':
/user/dev/subversion-1.6.3/sqlite-amalgamation/sqlite3.c:14508: `PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function)
/user/dev/subversion-1.6.3/sqlite-amalgamation/sqlite3.c:14508: (Each undeclared identifier is reported only once
/user/dev/subversion-1.6.3/sqlite-amalgamation/sqlite3.c:14508: for each function it appears in.)
make: *** [subversion/libsvn_subr/sqlite.lo] Error 1

Googling this I have found this document: http://www.sun.com/software/whitepapers/solaris9/multithread.pdf

In there they say that

"Solaris 7 software (October, 1998) added two new types of mutex lock for the Pthreads programmer:
- PTHREAD_MUTEX_ERRORCHECK
- PTHREAD_MUTEX_RECURSIVE"

So I guess that it will not compile on Solaris 6.

Can anybody with more experience confirm this? Is there any way I can compile SVN 1.6.3 on Solaris 6?

Thanks
Giulio

Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2364947
Received on 2009-06-24 16:39:39 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.