View previous topic :: View next topic |
Author |
Message |
quantus n00b
Joined: 30 Jul 2002 Posts: 60
|
Posted: Fri Aug 23, 2002 1:50 pm Post subject: cryptoapi and linux-2.4.19-gentoo-r7 issues |
|
|
Does 'linux-2.4.19-gentoo-r7' include support for cryptoapi or do I need to abandon gentoo-sources and use crypto-sources as another post indicated? https://forums.gentoo.org/viewtopic.php?t=1996&highlight=cryptoapi&sid=61cf5dfd55da3c959b59beeb9a1a04b8 states that support is included in gentoo-sources, but cryptoapi fails to emerge. Code: | gcc -I../include -D__KERNEL__ -DMODULE -DUSE_LO_IV_MODE_SECTOR -I/usr/src/linux-2.4.19-gentoo-r7/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -o cryptoloop.o -c cryptoloop.c
cryptoloop.c:103: warning: #warning USE_LO_IV_MODE_SECTOR enabled -- hope you know what this means
cryptoloop.c:138: #error You dont seem have a kernel patched for this to work...
cryptoloop.c: In function `transfer_cryptoapi':
cryptoloop.c:106: `LO_IV_SECTOR_SIZE' undeclared (first use in this function)
cryptoloop.c:106: (Each undeclared identifier is reported only once
cryptoloop.c:106: for each function it appears in.)
cryptoloop.c: In function `cryptoapi_status':
cryptoloop.c:141: `LO_IV_SECTOR_SIZE' undeclared (first use in this function)
cryptoloop.c:144: structure has no member named `lo_iv_mode'
cryptoloop.c:144: `LO_IV_MODE_SECTOR' undeclared (first use in this function)
make[1]: *** [cryptoloop.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/cryptoapi-2.4.7.0/work/cryptoapi-2.4.7.0/api'
make: *** [all-recursive] Error 1 | manually patching the gentoo-sources-r7 results in: Code: | quantus doc # pwd
/var/tmp/portage/cryptoapi-2.4.7.0/work/cryptoapi-2.4.7.0/doc
quantus doc # cp /usr/src/linux/drivers/block/loop.c /usr/src/linux/drivers/block/loop_orig.c
quantus doc # patch /usr/src/linux/drivers/block/loop.c loop-iv-2.4.6.patch
patching file /usr/src/linux/drivers/block/loop.c
Hunk #1 succeeded at 39 with fuzz 2 (offset 3 lines).
Hunk #2 FAILED at 170.
Hunk #3 FAILED at 224.
Hunk #4 FAILED at 276.
Hunk #5 FAILED at 319.
Hunk #6 FAILED at 495.
Hunk #7 succeeded at 825 (offset 159 lines).
Hunk #8 FAILED at 835.
6 out of 8 hunks FAILED -- saving rejects to file /usr/src/linux/drivers/block/loop.c.rej
can't find file to patch at input line 146
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN linux-2.4.6/include/linux/loop.h linux-int-2.4.6/include/linux/loop.h
|--- linux-2.4.6/include/linux/loop.h Wed Mar 7 04:35:36 2001
|+++ linux-int-2.4.6/include/linux/loop.h Sat Jul 7 10:42:18 2001
--------------------------
File to patch: q
q: No such file or directory
Skip this patch? [y] y
Skipping patch.
3 out of 3 hunks ignored |
Any pointers is appreciated |
|
Back to top |
|
|
br14n n00b
Joined: 10 Oct 2002 Posts: 43
|
Posted: Wed Oct 16, 2002 9:24 pm Post subject: crypto-sources |
|
|
crypto-sources seems to be what you need. i never got cryptoapi to emerge, either, but it doesn't seem to be necessary. |
|
Back to top |
|
|
|