Hi all, Short Question: Can anyone build a "mostly static" fossil executable on Solaris 8 or 9 and post it somewhere?
Longer Explanation: The only Solaris box that I have capable of building anything is a Solaris 10 box; there are a handful of boxes that run still Solaris 8 and 9 (these are minimal installs). :( Static linking of libc is no longer possible on Solaris 10, so I worked to reduce the dependencies as much as possible through hacking the Makefile (see patch). == Patch == --- ./Makefile 2011-11-22 14:32:34.450182000 -0500 +++ ./Makefile 2011-11-22 16:03:22.619530000 -0500 @@ -34,7 +34,9 @@ # TCLSH = tclsh -LIB = -L/usr/local/ssl/include -lz -lssl -lcrypto -lnsl -lsocket +# As of Solaris 10, it is no longer possible to statically link some system libraries (i.e. libc, libsocket, libnsl) - http://blogs.oracle.com/rie/entry/static_linking_where_did_it +# however it is still possible to create a 'Mostly static' Solaris binary with reduced dependancies - see III.4 - http://www.deer-run.com/~hal/sol-static.txt +LIB = -L/usr/local/ssl/include -lnsl -lsocket /usr/local/lib/libz.a /usr/local/ssl/lib/libssl.a /usr/local/ssl/lib/libcrypto.a TCC += -I/usr/local/ssl/include -g -O2 -DHAVE_AUTOCONFIG_H INSTALLDIR = $(DESTDIR)/usr/local/bin USE_SYSTEM_SQLITE = == End Patch == I thought I might be on to something there, however the produced fossil executable, while having fewer dependancies requires a rev of libc higher then that supported on Solaris 9, where I get: ld.so.1: fossil: fatal: libc.so.1: version `SUNW_1.22' not found (required by file fossil) Doing a pvs on fossil shows the following: ~/fossil-src-20111021125253$ pvs fossil libnsl.so.1 (SISCD_2.3); libsocket.so.1 (SISCD_2.3); libc.so.1 (SUNW_1.22); pvs-ing libc.so from Solaris 9, shows the highest available ABI to be SUNW_1.21.2 So given that the only choices to get this to work on an older version are to either install/set-up an old Solaris 8/9 + build tools, or build a cross compiler... The former is not really an option for me. If anyone has one already going and could build this, it would save me a lot of further grief. -G BTW: if anyone wants the fossil Solaris 10 mostly static binary, I'm happy to share it. (4.5MB) _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users