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

Re: error compiling hurd



On Fri, Oct 19, 2001 at 09:51:19PM +0200, Diego Roversi wrote:
> 
> I was trying to cross-compiling hurd when I got the following error:

Why not do native compilations?
 
> /usr/i386-gnu/bin/ld: warning: libc.so.6, needed by
> /usr/i386-gnu/lib/libutil.so, may conflict with libc.so.0.2

You have absolute symlinks in /gnu/lib.  Use my script to convert them
(attached).

Marcus
 

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de
#!/usr/bin/perl
#
# fixlinks, fix shared library links on a Debian GNU/Hurd system
#
# Copyright 1999 Marcus Brinkmann <brinkmd@debian.org>
#
# GPL

$libdir = '/gnu/lib';

opendir LIBDIR, $libdir;

while ($file = readdir LIBDIR)
{
        if (-l $libdir.'/'.$file) {
                $goal =  readlink $libdir.'/'.$file;
                $base = `basename $goal`;
                chomp $base;
                if ($goal eq '/lib/'.$base || $goal eq '../../lib/'.$base || $goal eq './'.$base) {
                        $list{$libdir.'/'.$file} = $base;
                }
        }
}

foreach $file (keys %list) {
        unlink $file;
        symlink $list{$file}, $file;
}

Reply to: