The collected works of fanch

Hello, a few things I found, if anyone interested :

I've tried to compile xmess-0.69.1 this weekend with gcc on Irix 6.5.17, here are the results :

To avoid the bset standard definition at compile time, add
"-D_XOPEN_SOURCE -D_BSD_COMPAT" to your CFLAGS.

To link, remove "-Wl,-s" in LD definition : there is no gnu ld for Irix.

To correct the first bus-error, patch src/unix/sysdep/rc.c :

--- rc.c.ori Sat May 24 21:36:36 2003
+++ rc.c Mon Jun 9 12:46:00 2003
@@ -57,6 +57,7 @@

static int rc_set_defaults(struct rc_option *option)
{
+#if 0
int i;

/* set the defaults */
@@ -71,6 +72,22 @@
option[i].priority))
return -1;
}
+#else
+ if ( option->type == rc_link ) {
+
+ if ( rc_set_defaults(option->dest) ) {
+ return -1 ;
+ }
+
+ } else if ( option->type
+ && option->deflt
+ && rc_set_option3( option,
+ option->deflt,
+ option->priority ) ) {
+
+ return -1;
+ }
+#endif

return 0;
}

I haven't done any other modification in the code, maybe I should look at this crc_only definition.

Now I've got another "Memory fault" later in the execution path, I guess there is more work to be done...

Fanch.