sworda / serf

Automatically exported from code.google.com/p/serf
Apache License 2.0
0 stars 0 forks source link

Can't build serf as shared library failure in Solaris #141

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Problem reported on the serf mailing list:
https://groups.google.com/forum/#!topic/serf-dev/Miv9nqTg3g0

scons fails with "IndexError: list index out of range" on 'sunos' platforms. 
This is a IMO a bug in scons 2.3.0.
Workaround is to reset the PLATFORM to posix in case it was detected as sunos.

See the mailing list thread for a patch.

Original issue reported on code.google.com by lieven.govaerts@gmail.com on 10 Feb 2014 at 8:40

GoogleCodeExporter commented 9 years ago
Issue 159 has been merged into this issue.

Original comment by andreas.stieger@gmx.de on 20 Nov 2014 at 11:03

GoogleCodeExporter commented 9 years ago
Mentioned in duplicate issue 159:
https://groups.google.com/forum/#!topic/serf-dev/zpqLlB8c7N0
http://mail-archives.apache.org/mod_mbox/subversion-dev/201411.mbox/%3C87ppci418
4.fsf%40ntlworld.com%3E

Original comment by andreas.stieger@gmx.de on 20 Nov 2014 at 11:05

GoogleCodeExporter commented 9 years ago
Ok,

But tell me the workaround until fix of this issue released.What i need to
change in SConstruct so that serf build successfully ?

Original comment by mohsinch...@gmail.com on 20 Nov 2014 at 11:43

GoogleCodeExporter commented 9 years ago
Issue 159 has been merged into this issue.

Original comment by andreas.stieger@gmx.de on 20 Nov 2014 at 11:46

GoogleCodeExporter commented 9 years ago
See referenced patch.

Original comment by andreas.stieger@gmx.de on 20 Nov 2014 at 11:48

GoogleCodeExporter commented 9 years ago
where is referenced patch? Please share link

Original comment by mohsinch...@gmail.com on 20 Nov 2014 at 11:50

GoogleCodeExporter commented 9 years ago
It seems that some work has been done in scons to resolve this issue:
https://bitbucket.org/scons/scons/pull-request/186/attempt-to-fix-versionned-sha
red-library/diff

These changes haven't made it in a scons release yet, if anyone is willing to 
test a scons-trunk build with serf on Solaris that'd be great!

Original comment by lieven.govaerts@gmail.com on 31 Dec 2014 at 12:02

GoogleCodeExporter commented 9 years ago
Issue 162 has been merged into this issue.

Original comment by andreas.stieger@gmx.de on 30 Jan 2015 at 5:37

GoogleCodeExporter commented 9 years ago

Original comment by andreas.stieger@gmx.de on 30 Jan 2015 at 5:41

GoogleCodeExporter commented 9 years ago
Hi,
I have applied the following patch as suggested in the forum and now I am
getting the below error. Please help:

Patch:
--- 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'])
***************************************************************
The New error:

scons: Reading SConscript files ...
scons: warning: EnsureSConsVersion is ignored for development version
File "/optr/3rdparty/SERF/serf-1.3.8/SConstruct", line 22, in <module>
scons: done reading SConscript files.
scons: warning: Support for pre-2.7.0 Python version (2.6.4) is deprecated.
    If this will cause hardship, contact scons-dev@scons.org
File "/usr/bin/scons", line 199, in <module>
scons: Building targets ...
cc -o context.o -c -std=c89 -g -O2 -DNDEBUG -DSOLARIS2=10
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I.
-I/usr/local/apr/include/apr-1 -I/usr/include context.c
sh: cc: not found
scons: *** [context.o] Error 1
scons: building terminated because of errors.

Original comment by kayi...@gmail.com on 1 Feb 2015 at 2:47

GoogleCodeExporter commented 9 years ago
Issue 162 has been merged into this issue.

Original comment by andreas.stieger@gmx.de on 2 Feb 2015 at 11:43