supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: "Daniel Clark" <dclark@pobox.com>
To: supervision@list.skarnet.org
Subject: Solaris 2.6 runit compilation issues
Date: Sun, 15 Jul 2007 14:22:05 -0400	[thread overview]
Message-ID: <5422d5e60707151122l49e62389jd2ef5df99d5eef42@mail.gmail.com> (raw)

FYI on Solaris 2.6 (sparc, sun4m and sun4u) I had to:

(a) Make the same change as for AIX, namely:
--- uw_tmp.h1   2007-06-25 01:17:00.000000000 -0400
+++ uw_tmp.h1   2007-06-25 01:17:23.000000000 -0400
@@ -3,7 +3,7 @@

 /* sysdep: -utmpx */

-#define UW_TMP_UFILE _PATH_UTMP
-#define UW_TMP_WFILE _PATH_WTMP
+#define UW_TMP_UFILE UTMP_FILE
+#define UW_TMP_WFILE WTMP_FILE

 typedef struct utmp uw_tmp;

(b) Delete the line with the text "ut_host" in it in utmpset.c:
-memset(ut.ut_host, 0, sizeof ut.ut_host);
to get runit to compile. This seems to be what rxvt did, although in a
nicer fashion:
http://rxvt.cvs.sourceforge.net/rxvt/rxvt/src/logging.c?r1=1.34&r2=1.35

I also tried compiling with utmpx.h but that led to other errors that
looked harder to deal with.

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


                 reply	other threads:[~2007-07-15 18:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5422d5e60707151122l49e62389jd2ef5df99d5eef42@mail.gmail.com \
    --to=dclark@pobox.com \
    --cc=supervision@list.skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).