supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* Solaris 2.6 runit compilation issues
@ 2007-07-15 18:22 Daniel Clark
  0 siblings, 0 replies; only message in thread
From: Daniel Clark @ 2007-07-15 18:22 UTC (permalink / raw)
  To: supervision

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-15 18:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-15 18:22 Solaris 2.6 runit compilation issues Daniel Clark

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).