linux-mips-fnet
[Top] [All Lists]

Re: Working modutils for DECStation Linux ??

To: linux-mips@fnet.fr
Subject: Re: Working modutils for DECStation Linux ??
From: K.H.C.vanHouten@research.kpn.com (Karel van Houten)
Date: Sun, 07 Feb 1999 15:36:40 +0100 (MET)
Cc: ralf@uni-koblenz.de, K.H.C.vanHouten@research.kpn.com (Houten K.H.C. van )
Hi

I finally got modutils going. After a problem during kernel compile,
which I think was a result of clock-drift, I had to tackle depmod.

Finally, I found a problem which might be a egcs problem:

In depmod/conf_file.c:
--------------------------------------------
static struct mod_alias
  {
    struct mod_alias *next;
    char *name;
    char *alias;
  }
alias_list[] =
{
#include "alias.h"
  {
    NULL, NULL, NULL
  }
};
--------------------------------------------

This gets expanded to by cpp:
--------------------------------------------
static struct mod_alias
  {
    struct mod_alias *next;
    char *name;
    char *alias;
  }
alias_list[] =
{
# 1 "alias.h" 1
#ident  "$Id: alias.h,v 1.3 1998/01/07 08:26:25 rth Exp $"

  {(void *) 0, "binfmt-2", "binfmt_aout"},       
  {(void *) 0, "binfmt-0107", "binfmt_aout"},    
  {(void *) 0, "binfmt-204", "binfmt_aout"},
  {(void *) 0, "binfmt-263", "binfmt_aout"},
  {(void *) 0, "binfmt-264", "binfmt_aout"},
  ...

  {
    NULL, NULL, NULL
  }
};
--------------------------------------------

The '#ident' line makes the array initialisation incorrect. After removing
this line, depmod compiles and works correctly.

EGCS guru's, any hints?


I have placed a patched modutils-2.1.121-4D.mipsel.rpm on my website
on http://www.xs4all.nl/~vhouten/mipsel

Regards,

-- 
Karel van Houten

----------------------------------------------------------
The box said "Requires Windows 95 or better."
I can't understand why it won't work on my Linux computer. 
----------------------------------------------------------

<Prev in Thread] Current Thread [Next in Thread>