On 6/30/07, Daniel Clark <dclark@pobox.com> wrote:
Anyone get runit compiled on Solaris 10/Sparc?

Using the sun-bundled gcc with
PATH=/usr/sfw/bin:/usr/local/bin:/bin:/usr/bin:/usr/sbin:/sbin:/etc:/usr/bin/X11:/usr/games:/usr/local/bin:/usr/local/games:/usr/ccs/bin

which ld - /usr/ccs/bin/ld
which make - /usr/sfw/bin/make
which gcc - /usr/sfw/bin/gcc

The error is:

./compile runit.c
./load runit unix.a byte.a -static
ld: fatal: library -lc: not found
ld: fatal: library -lc: not found
ld: fatal: File processing errors. No output written to runit
collect2: ld returned 1 exit status
make: *** [runit] Error 1

Yesterday I recalled that Solaris is weird in that there are some libs you just can't compile against statically for some reason; removing the 2 instances of "-static" from the Makefile allows runit-1.7.2 to compile on Solaris.

The runit encap profile at
http:///bcfg2.org/browser/trunk/bcfg2/encap/src/encap-profiles/runit-1.7.2.ep?format=raw
is now updated with this patch (as well as the former patch to make AIX work).

Cheers,
--
Daniel Clark # http://planyp.us/djbclark/profile
# http://dclark.us # http://opensysadmin.com