Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19506 - gentoo-sources-2.4.20-r3 crypto compile problem
Summary: gentoo-sources-2.4.20-r3 crypto compile problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-17 16:42 UTC by Anders Bruun Olsen
Modified: 2003-05-05 23:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Kernel config used when error was encountered (kernel.config,23.82 KB, text/plain)
2003-04-17 16:43 UTC, Anders Bruun Olsen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Bruun Olsen 2003-04-17 16:42:52 UTC
Gentoo-sources-2.4.20-r3 fails to compile with cryptoloop it seems. Here is the
error message:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r3/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon-xp -Os  
-nostdinc -iwithprefix include -DKBUILD_BASENAME=cryptoloop  -c -o
cryptoloop/cryptoloop.o cryptoloop/cryptoloop.c
rm -f crypto.o
ld -m elf_i386  -r -o crypto.o cryptoapi.o cryptoloop/cryptoloop.o
ciphers/ciphers.o drivers/drivers.o
drivers/drivers.o(.data+0x0): multiple definition of `cryptoloop_funcs'
cryptoloop/cryptoloop.o(.data+0x0): first defined here
make[2]: *** [crypto.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r3/crypto'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r3/crypto'
make: *** [_dir_crypto] Error 2

It worked with r2
Comment 1 Anders Bruun Olsen 2003-04-17 16:43:29 UTC
Created attachment 10796 [details]
Kernel config used when error was encountered
Comment 2 Phil Almquist 2003-04-24 09:56:11 UTC
im getting this exact error when compiling gentoo-sources-2.4.20-r3 on my athlon-xp so because of this bug and the missing ciphers in -r2 anyone using a similar set up is still limited to -r1, a problem id consider above 'normal' severity.  ill attatch emerge info and my .config when i can get on the affected computer.
Comment 3 qube99 2003-04-25 01:22:02 UTC
For -r3, the problem lies in: 

/usr/src/linux-2.4.20-gentoo-r3/crypto/drivers/cryptoloop.c

Specifically, there's already a:

/usr/src/linux-2.4.20-gentoo-r3/crypto/cryptoloop/crytoloop.c

Hence the duplicate functions.  I was able to simple delete cryptoloop.c from drivers/ and remove the compile line from the Makefile in that directory.  It'd probably be wise to also remove the cryptoloop adding in the Config.in, just because duplicates cause probelms (look at CONFIG_FS_POSIX_ACL for example).

As for -r2, the ciphers are just commented out.  All you have to do is uncomment the lines in crypto/ciphers/Config.in so that they're not commented out, and then you'll be able to select them in make xconfig/menuconfig.  Hope this helps.
Comment 4 Jay Pfeifer (RETIRED) gentoo-dev 2003-05-03 12:52:08 UTC
the conflict is usagi related...
yeah, and they'll fail it you do (uncomment the ciphers)...

this seems to be fixed in pfeifer-sources-2.4.20_pre8 - please test as this will likely become gentoo-sources-2.4.20-r4 after a bit of testing.

Thanks,

Jay
Comment 5 Jay Pfeifer (RETIRED) gentoo-dev 2003-05-05 23:26:49 UTC
well, compiling for me on this config posted works fine and produces a running kernel on the 
latest pfeifer-sources. 
 
Closing, 
 
Jay