compiling 2.2.x with egcs and libc.so.5.4.44

compiling 2.2.x with egcs and libc.so.5.4.44

Post by Jeremy Schofiel » Fri, 23 Apr 1999 04:00:00



Hi,
        I apologize if this topic has been discussed already as
I have not been following this group for some time.
I'm unable to compile the new kernel (any 2.2.x) with egcs (version 1.1)
and the old libc.  I get the following error while compiling
"checksum.c" in the arch/i386/lib subdirectory:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2
-malign-jumps=2 -malign-functions=2 -DCPU=686   -c -o checksum.o
checksum.c
checksum.c:200: redefinition of `csum_partial_copy'
checksum.c:105: `csum_partial_copy' previously defined here
{standard input}: Assembler messages:
{standard input}:185: Fatal error: Symbol csum_partial_copy already
defined.

        The function at line 105 is actually:

unsigned int csum_partial_copy_fromuser(const char *src, char *dst,
                                  int len, int sum)
Perhaps the problem is the length of the function name?  Does
anyone know how to remedy this short of upgrading the C library or
renaming the functions throughout the kernel code?

        Any suggestions appreciated,
                J.

--
Jeremy Schofield
Chemical Physics Theory Group       telephone: 416-978-4376
Department of Chemistry             fax:       416-978-8775
University of Toronto
Toronto, Ontario M5S 3H6

 
 
 

compiling 2.2.x with egcs and libc.so.5.4.44

Post by Piniek aka Piotr Ingli » Fri, 23 Apr 1999 04:00:00


Dnia Thu, 22 Apr 1999 12:46:50 -0400, Jeremy Schofield

Quote:>Hi,
>    I apologize if this topic has been discussed already as
>I have not been following this group for some time.
>I'm unable to compile the new kernel (any 2.2.x) with egcs (version 1.1)
>and the old libc.  I get the following error while compiling
>"checksum.c" in the arch/i386/lib subdirectory:

>gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
>-fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2
>-malign-jumps=2 -malign-functions=2 -DCPU=686   -c -o checksum.o
>checksum.c
>checksum.c:200: redefinition of `csum_partial_copy'
>checksum.c:105: `csum_partial_copy' previously defined here
>{standard input}: Assembler messages:
>{standard input}:185: Fatal error: Symbol csum_partial_copy already
>defined.

[...]
Just delete that file (checksum.c).

                         Piotr Ingling



 
 
 

compiling 2.2.x with egcs and libc.so.5.4.44

Post by Peter Samuels » Sat, 24 Apr 1999 04:00:00



Quote:> Just delete that file (checksum.c).

And next time do not unpack one source tree directly on top of
another.  (This is why you got that error.)  Delete or rename the
original source directory first.

--
Peter Samuelson
<sampo.creighton.edu!psamuels>