[Prev][Next][Index][Thread]

Re: Error Error Error




There's also this patch:

To: Wouter Coene <wouter@kern.nl> 
Subject: Re: compilation problems 
From: Patrick Tullmann <tullmann@cs.utah.edu> 
Date: Thu, 12 Apr 2001 09:56:27 -0600 
Cc: oskit-users@fast.cs.utah.edu, staff@kern.nl 
In-Reply-To: <20010412172726.A7782@Pitel-Lnx.uvis.fnt.hvu.nl>; from wouter@kern.nl on Thu, Apr 12, 2001 at 05:27:26PM +0200 
Mail-Followup-To: Patrick Tullmann <tullmann@cs.utah.edu>, Wouter Coene <wouter@kern.nl>, oskit-users@fast.cs.utah.edu, staff@kern.nl 
References: <20010412172726.A7782@Pitel-Lnx.uvis.fnt.hvu.nl> 
Sender: owner-oskit-users@fast.cs.utah.edu 
User-Agent: Mutt/1.2.5i 

Wouter Coene wrote:
> Hi,
> 
> Compilation of OSKit fails on my debian linux 2.2 system. I get the
> following error message:
> /usr/lib/libc.a(init-first.o)(.data+0x0): multiple definition of `__libc_multiple_libcs'

In unix/linux/sbrk-hack.c, comment out the 'int __libc_multiple_libcs'
line and try again.

After this fix, you'll probably get errors when the examples are
linked, like: "__progname multiply defined" to fix that, apply this
patch to unix/elf/crt1.c.  (While it may not look like much, it turns
__progname into a common symbol in crt1.c).

diff -u -r1.4 -r1.5
--- crt1.c      2000/03/05 00:38:54     1.4
+++ crt1.c      2001/03/27 22:51:09     1.5
@@ -83,7 +83,7 @@
 #endif
 
 char **environ;
-char *__progname = "";
+char *__progname;
 
 void
 _start(char *arguments, ...)
@@ -106,6 +106,8 @@
     environ = env;
     if(argc > 0)
        __progname = argv[0];
+    else
+        __progname = "";
 
     if(&_DYNAMIC != 0)
        atexit(rtld_cleanup);


-Pat


-- 

References: