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

Re: IndexError: list index out of range: [serf 1.3.8]

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Thu, 20 Nov 2014 10:26:19 +0000

Mohsin <mohsinchandia_at_gmail.com> writes:

> I am getting following error while installing serf on my solaris machine .
> Please suggest
>
> -bash-3.2# scons install
> scons: Reading SConscript files ...
> IndexError: list index out of range:
> File "/export/home/mabbas/svn1.8.10/serf-1.3.8/SConstruct", line 275:
> lib_shared = env.SharedLibrary(LIBNAME, SOURCES + SHARED_SOURCES)
> File "/usr/local/python/lib/scons-2.3.4/SCons/Environment.py", line 260:
> return MethodWrapper.__call__(self, target, source, *args, **kw)
> File "/usr/local/python/lib/scons-2.3.4/SCons/Environment.py", line 224:
> return self.method(*nargs, **kwargs)
> File "/usr/local/python/lib/scons-2.3.4/SCons/Builder.py", line 633:
> return self._execute(env, target, source, OverrideWarner(kw), ekw)
> File "/usr/local/python/lib/scons-2.3.4/SCons/Builder.py", line 554:
> tlist, slist = self._create_nodes(env, target, source)
> File "/usr/local/python/lib/scons-2.3.4/SCons/Builder.py", line 518:
> target, source = self.emitter(target=tlist, source=slist, env=env)
> File "/usr/local/python/lib/scons-2.3.4/SCons/Builder.py", line 344:
> target, source = e(target, source, env)
> File "/usr/local/python/lib/scons-2.3.4/SCons/Tool/link.py", line 86:
> target[0].name = version_names[0]

I had problems building serf on Solaris. I ended up with the patch
below (a serf release should probably do something better):

--- SConstruct.old Mon Mar 3 14:34:37 2014
+++ SConstruct Mon Mar 3 14:34:21 2014
@@ -210,7 +210,7 @@
 # Unfortunately we can't set the .dylib compatibility_version option separately
 # from current_version, so don't use the PATCH level to avoid that build and
 # runtime patch levels have to be identical.
-env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
+#env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
 
 LIBNAME = 'libserf-%d' % (MAJOR,)
 if sys.platform != 'win32':
@@ -248,6 +248,7 @@
 
   if sys.platform == 'sunos5':
     env.Append(LIBS='m')
+ env['PLATFORM'] = 'posix'
 else:
   # Warning level 4, no unused argument warnings
   env.Append(CCFLAGS=['/W4', '/wd4100'])

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2014-11-20 11:26:54 CET

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.