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

Re: cryptoapi cryptoloop problem



Hi Leute 2 Sachen:

1. so mit der loop-jari gepatchten source vom kernel läuft make-kpkg
modules_image durch.
nur am ende von cryptoapi bringt er mir noch den teil (wo er aber
durchlauft) mit install: cannot stat `cipher-des_ede3.o' .....:

(DER AUSZUG:)

install -d debian/tmp/lib/modules/2.4.21/kernel/crypto/ciphers
(cd crypto/ciphers; install cipher-aes.o cipher-blowfish.o cipher-cast5.o
cipher-des_ede3.o cipher-des.o cipher-serpent.o cipher-twofish.o
cipher-null.o cipher-blowfish_old.o
../../debian/tmp/lib/modules/2.4.21/kernel/crypto/ciphers)
install: cannot stat `cipher-des_ede3.o': No such file or directory
make[1]: [install] Error 1 (ignored)
install -d debian/tmp/lib/modules/2.4.21/kernel/crypto/digests
(cd crypto/digests; install digest-md5.o digest-ripemd160.o digest-sha256.o
digest-sha384.o digest-sha512.o digest-sha1.o
../../debian/tmp/lib/modules/2.4.21/kernel/crypto/digests)
dh_testdir
dh_compress
dh_installdocs
dh_installchangelogs
dh_installdeb
dh_gencontrol
dh_builddeb --destdir=/usr/src/linux/..




2. hab nun zwei .deb files in "/usr/src/", welches ich mit "dpgk -i
crypto*******.deb" ausführe.
der knallt mir dann die ganzen cryptoapi und cryptoloop module in
"/lib/modules/2.4.21 usw"
anstelle von in "/lib/modules/2.4.21-3-686 usw". wenn ich die sektion crypto
von "/lib/modules/2.4.21 usw" nach "/lib/modules/2.4.21-3-686 usw" kopiere
und dann mit "depmod -a" die module neu einlesen will krieg ich folgende
ausgabe:

linux:/usr/src/linux# depmod -a
depmod: *** Unresolved symbols in
/lib/modules/2.4.21-3-686/kernel/crypto/cryptoapi.o
depmod: *** Unresolved symbols in
/lib/modules/2.4.21-3-686/kernel/crypto/cryptoloop.o
linux:/usr/src/linux#



THX,
Fun4a







-------------OLD----------------------


"Fun4a" <fun4a@web.de> schrieb im Newsbeitrag
[🔎] bgtu1a$21p$1@main.gmane.org">news:[🔎] bgtu1a$21p$1@main.gmane.org...
> danke, hab aber immer noch zwei probleme:
>
> habe in allen Makefile in cryptoapi/
> override CFLAGS += -I $(CORE_SRC)/include
>
> durch
> override CFLAGS := -I $(CORE_SRC)/include $(CFLAGS)
> ersetzt
>
> und in cryptoloop/
> override CFLAGS += -I ../cryptoapi-core/include
> durch
> override CFLAGS := -I ../cryptoapi-core/include $(CFLAGS)
>
>
>
>
> 1. cryptoapi läuft jetzt durch, aber bei cryptoloop bleibt das gleiche
> problem (ganze sektion zum ansehen).
>
>
>
>
>
>
> linux:/usr/src/linux# make-kpkg modules_image
> for module in /usr/src/modules/cryptoapi-core /usr/src/modules/cryptoloop
;
> do                        \
>           if test -d  $module; then                                \
>     (cd $module;                                           \
>               if ./debian/rules KVERS="2.4.21" KSRC="/usr/src/linux" \
>                              KMAINT="Unknown Kernel Package Maintainer"
> KEMAIL="unknown@unconfigured.in.etc.kernel-pkg.conf"      \
>                              KDREV="10.00.Custom" kdist_image; then    \
>                   echo "Module $module processed fine";            \
>               else                                                  \
>                    echo "Module $module failed.";                  \
>                    echo "Hit return to Continue";                   \
>            read ans;                                        \
>               fi;                                                   \
>      );                                                     \
>   fi;                                                       \
>         done
> make[1]: Entering directory `/usr/src/modules/cryptoapi-core'
> make -C /usr/src/linux modules SUBDIRS=`pwd`/crypto DEBIAN_COMPILE=1
> make[2]: Entering directory `/usr/src/kernel-source-2.4.21'
> make -C  /usr/src/modules/cryptoapi-core/crypto
>
CFLAGS="-D__KERNEL__ -I/usr/src/kernel-source-2.4.21/include -Wall -Wstrict-
>
prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-
>
pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSION
> S -include /usr/src/kernel-source-2.4.21/include/linux/modversions.h"
> MAKING_MODULES=1 modules
> make[3]: Entering directory `/usr/src/modules/cryptoapi-core/crypto'
> gcc -I
>
/usr/src/modules/cryptoapi-core/include -D__KERNEL__ -I/usr/src/kernel-sourc
>
e-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-al
>
iasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -
> march=i686 -DMODULE -DMODVERSIONS -include
>
/usr/src/kernel-source-2.4.21/include/linux/modversions.h  -nostdinc -iwithp
> refix include -DKBUILD_BASENAME=cryptoapi  -DEXPORT_SYMTAB -c cryptoapi.c
> make -C ciphers modules
> make[4]: Entering directory
`/usr/src/modules/cryptoapi-core/crypto/ciphers'
> gcc -I
>
/usr/src/modules/cryptoapi-core/include -D__KERNEL__ -I/usr/src/kernel-sourc
>
e-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-al
>
iasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -
> march=i686 -DMODULE -DMODVERSIONS -include
>
/usr/src/kernel-source-2.4.21/include/linux/modversions.h  -nostdinc -iwithp
> refix include -DKBUILD_BASENAME=cipher_aes  -c -o cipher-aes.o
cipher-aes.c
> gcc -I
>
/usr/src/modules/cryptoapi-core/include -D__KERNEL__ -I/usr/src/kernel-sourc
>
e-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-al
>
iasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -
> march=i686 -DMODULE -DMODVERSIONS -include
>
/usr/src/kernel-source-2.4.21/include/linux/modversions.h  -nostdinc -iwithp
> refix include -DKBUILD_BASENAME=cipher_blowfish  -c -o cipher-blowfish.o
> cipher-blowfish.c
> gcc -I
>
/usr/src/modules/cryptoapi-core/include -D__KERNEL__ -I/usr/src/kernel-sourc
>
e-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-al
>
iasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -
> march=i686 -DMODULE -DMODVERSIONS -include
>
/usr/src/kernel-source-2.4.21/include/linux/modversions.h  -nostdinc -iwithp
> refix include -DKBUILD_BASENAME=cipher_blowfish_old  -c -o
> cipher-blowfish_old.o cipher-blowfish_old.c
> gcc -I
>
/usr/src/modules/cryptoapi-core/include -D__KERNEL__ -I/usr/src/kernel-sourc
>
e-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-al
>
iasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -
> march=i686 -DMODULE -DMODVERSIONS -include
>
/usr/src/kernel-source-2.4.21/include/linux/modversions.h  -nostdinc -iwithp
> refix include -DKBUILD_BASENAME=cipher_cast5  -c -o cipher-cast5.o
> cipher-cast5.c
> gcc -I
>
/usr/src/modules/cryptoapi-core/include -D__KERNEL__ -I/usr/src/kernel-sourc
>
e-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-al
>
iasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -
> march=i686 -DMODULE -DMODVERSIONS -include
>
/usr/src/kernel-source-2.4.21/include/linux/modversions.h  -nostdinc -iwithp
> refix include -DKBUILD_BASENAME=cipher_des  -c -o cipher-des.o
cipher-des.c
> gcc -I
>
/usr/src/modules/cryptoapi-core/include -D__KERNEL__ -I/usr/src/kernel-sourc
>
e-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-al
>
iasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -
> march=i686 -DMODULE -DMODVERSIONS -include
>
/usr/src/kernel-source-2.4.21/include/linux/modversions.h  -nostdinc -iwithp
> refix include -DKBUILD_BASENAME=cipher_serpent  -c -o cipher-serpent.o
> cipher-serpent.c
> gcc -I
>
/usr/src/modules/cryptoapi-core/include -D__KERNEL__ -I/usr/src/kernel-sourc
>
e-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-al
>
iasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -
> march=i686 -DMODULE -DMODVERSIONS -include
>
/usr/src/kernel-source-2.4.21/include/linux/modversions.h  -nostdinc -iwithp
> refix include -DKBUILD_BASENAME=cipher_twofish  -c -o cipher-twofish.o
> cipher-twofish.c
> gcc -I
>
/usr/src/modules/cryptoapi-core/include -D__KERNEL__ -I/usr/src/kernel-sourc
>
e-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-al
>
iasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -
> march=i686 -DMODULE -DMODVERSIONS -include
>
/usr/src/kernel-source-2.4.21/include/linux/modversions.h  -nostdinc -iwithp
> refix include -DKBUILD_BASENAME=cipher_null  -c -o cipher-null.o
> cipher-null.c
> make[4]: Leaving directory
`/usr/src/modules/cryptoapi-core/crypto/ciphers'
> make -C digests modules
> make[4]: Entering directory
`/usr/src/modules/cryptoapi-core/crypto/digests'
> gcc -I
>
/usr/src/modules/cryptoapi-core/include -D__KERNEL__ -I/usr/src/kernel-sourc
>
e-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-al
>
iasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -
> march=i686 -DMODULE -DMODVERSIONS -include
>
/usr/src/kernel-source-2.4.21/include/linux/modversions.h  -nostdinc -iwithp
> refix include -DKBUILD_BASENAME=digest_md5  -c -o digest-md5.o
digest-md5.c
> gcc -I
>
/usr/src/modules/cryptoapi-core/include -D__KERNEL__ -I/usr/src/kernel-sourc
>
e-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-al
>
iasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -
> march=i686 -DMODULE -DMODVERSIONS -include
>
/usr/src/kernel-source-2.4.21/include/linux/modversions.h  -nostdinc -iwithp
> refix include -DKBUILD_BASENAME=digest_sha1  -c -o digest-sha1.o
> digest-sha1.c
> gcc -I
>
/usr/src/modules/cryptoapi-core/include -D__KERNEL__ -I/usr/src/kernel-sourc
>
e-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-al
>
iasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -
> march=i686 -DMODULE -DMODVERSIONS -include
>
/usr/src/kernel-source-2.4.21/include/linux/modversions.h  -nostdinc -iwithp
> refix include -DKBUILD_BASENAME=digest_ripemd160  -c -o digest-ripemd160.o
> digest-ripemd160.c
> gcc -I
>
/usr/src/modules/cryptoapi-core/include -D__KERNEL__ -I/usr/src/kernel-sourc
>
e-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-al
>
iasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -
> march=i686 -DMODULE -DMODVERSIONS -include
>
/usr/src/kernel-source-2.4.21/include/linux/modversions.h  -nostdinc -iwithp
> refix include -DKBUILD_BASENAME=digest_sha256  -c -o digest-sha256.o
> digest-sha256.c
> gcc -I
>
/usr/src/modules/cryptoapi-core/include -D__KERNEL__ -I/usr/src/kernel-sourc
>
e-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-al
>
iasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -
> march=i686 -DMODULE -DMODVERSIONS -include
>
/usr/src/kernel-source-2.4.21/include/linux/modversions.h  -nostdinc -iwithp
> refix include -DKBUILD_BASENAME=digest_sha384  -c -o digest-sha384.o
> digest-sha384.c
> gcc -I
>
/usr/src/modules/cryptoapi-core/include -D__KERNEL__ -I/usr/src/kernel-sourc
>
e-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-al
>
iasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -
> march=i686 -DMODULE -DMODVERSIONS -include
>
/usr/src/kernel-source-2.4.21/include/linux/modversions.h  -nostdinc -iwithp
> refix include -DKBUILD_BASENAME=digest_sha512  -c -o digest-sha512.o
> digest-sha512.c
> make[4]: Leaving directory
`/usr/src/modules/cryptoapi-core/crypto/digests'
> make[3]: Leaving directory `/usr/src/modules/cryptoapi-core/crypto'
> make[2]: Leaving directory `/usr/src/kernel-source-2.4.21'
> dh_testdir
> dh_clean -k
> sed -e 's/#KVERS#/2.4.21/g' debian/control.template > debian/control
> sed -e 's/#KVERS#/2.4.21/g' debian/dirs.template > debian/dirs
> sed -e 's/#KVERS#/2.4.21/g' -e "`echo 's/#KVERSU#/2.4.21/g' | tr - _`"
> debian/changelog.template > debian/changelog
> cat debian/changelog.rest >> debian/changelog
> dh_installdirs
> install -d debian/tmp/lib/modules/2.4.21/kernel/crypto
> install crypto/cryptoapi.o debian/tmp/lib/modules/2.4.21/kernel/crypto
> install -d debian/tmp/lib/modules/2.4.21/kernel/crypto/ciphers
> (cd crypto/ciphers; install cipher-aes.o cipher-blowfish.o cipher-cast5.o
> cipher-des_ede3.o cipher-des.o cipher-serpent.o cipher-twofish.o
> cipher-null.o cipher-blowfish_old.o
> ../../debian/tmp/lib/modules/2.4.21/kernel/crypto/ciphers)
> install: cannot stat `cipher-des_ede3.o': No such file or directory
> make[1]: [install] Error 1 (ignored)
> install -d debian/tmp/lib/modules/2.4.21/kernel/crypto/digests
> (cd crypto/digests; install digest-md5.o digest-ripemd160.o
digest-sha256.o
> digest-sha384.o digest-sha512.o digest-sha1.o
> ../../debian/tmp/lib/modules/2.4.21/kernel/crypto/digests)
> dh_testdir
> dh_compress
> dh_installdocs
> dh_installchangelogs
> dh_installdeb
> dh_gencontrol
> dh_builddeb --destdir=/usr/src/linux/..
> dpkg-deb: building package `cryptoapi-core-2.4.21' in
> `/usr/src/linux/../cryptoapi-core-2.4.21_0.1.0-2+2.4.21_i386.deb'.
> make[1]: Leaving directory `/usr/src/modules/cryptoapi-core'
> Module /usr/src/modules/cryptoapi-core processed fine
> make[1]: Entering directory `/usr/src/modules/cryptoloop'
> make -C /usr/src/linux modules SUBDIRS=`pwd` DEBIAN_COMPILE=1
> make[2]: Entering directory `/usr/src/kernel-source-2.4.21'
> make -C  /usr/src/modules/cryptoloop
>
CFLAGS="-D__KERNEL__ -I/usr/src/kernel-source-2.4.21/include -Wall -Wstrict-
>
prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-
>
pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSION
> S -include /usr/src/kernel-source-2.4.21/include/linux/modversions.h"
> MAKING_MODULES=1 modules
> make[3]: Entering directory `/usr/src/modules/cryptoloop'
> gcc -I
>
../cryptoapi-core/include -D__KERNEL__ -I/usr/src/kernel-source-2.4.21/inclu
>
de -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-co
>
mmon -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DM
> ODULE -DMODVERSIONS -include
>
/usr/src/kernel-source-2.4.21/include/linux/modversions.h  -nostdinc -iwithp
> refix include -DKBUILD_BASENAME=cryptoloop  -c -o cryptoloop.o
cryptoloop.c
> cryptoloop.c:67: #error
> ******************************************************************
> cryptoloop.c:68: #error
> ******************************************************************
> cryptoloop.c:69: #error
> ******************************************************************
> cryptoloop.c:70: #error
> ******************************************************************
> cryptoloop.c:71: #error ****
> ****
> cryptoloop.c:72: #error ****         you need to to patch your loop.c
driver
> ****
> cryptoloop.c:73: #error ****         (or enable CONFIG_CRYPTOLOOP_IV_HACK)
> ****
> cryptoloop.c:74: #error ****
> ****
> cryptoloop.c:75: #error
> ******************************************************************
> cryptoloop.c:76: #error
> ******************************************************************
> cryptoloop.c:77: #error
> ******************************************************************
> cryptoloop.c:78: #error
> ******************************************************************
> cryptoloop.c:96: warning: #warning LO_CRYPT_CRYPTOAPI not (yet) defined in
> kernel header
> cryptoloop.c: In function `cryptoloop_init':
> cryptoloop.c:139: `LOOP_IV_SECTOR_SIZE' undeclared (first use in this
> function)
> cryptoloop.c:139: (Each undeclared identifier is reported only once
> cryptoloop.c:139: for each function it appears in.)
> cryptoloop.c: At top level:
> cryptoloop.c:188: parse error before `loop_iv_t'
> cryptoloop.c:189: warning: function declaration isn't a prototype
> cryptoloop.c: In function `cryptoloop_transfer':
> cryptoloop.c:191: `lo' undeclared (first use in this function)
> cryptoloop.c:195: `size' undeclared (first use in this function)
> cryptoloop.c:199: `cmd' undeclared (first use in this function)
> cryptoloop.c:205: `raw_buf' undeclared (first use in this function)
> cryptoloop.c:206: `loop_buf' undeclared (first use in this function)
> cryptoloop.c:239: `IV' undeclared (first use in this function)
> cryptoloop.c:239: `LOOP_IV_SECTOR_SIZE' undeclared (first use in this
> function)
> cryptoloop.c: In function `cryptoloop_ioctl':
> cryptoloop.c:287: `LOOP_IV_SECTOR_SIZE' undeclared (first use in this
> function)
> make[3]: *** [cryptoloop.o] Error 1
> make[3]: Leaving directory `/usr/src/modules/cryptoloop'
> make[2]: *** [_mod_/usr/src/modules/cryptoloop] Error 2
> make[2]: Leaving directory `/usr/src/kernel-source-2.4.21'
> make[1]: *** [build-stamp] Error 2
> make[1]: Leaving directory `/usr/src/modules/cryptoloop'
> Module /usr/src/modules/cryptoloop failed.
> Hit return to Continue
>
> linux:/usr/src/linux#
>
>
>
>
>
> 2. hab nun ein .deb file in "/usr/src/", welches ich mit "dpgk -i
> cryptoapi-core-2.4.21_0.1.0-2+2.4.21_i386.deb" ausführe.
> der knallt mir dann die ganzen cryptoapi module in "/lib/modules/2.4.21
usw"
> anstelle von in "/lib/modules/2.4.21-3-686 usw". wenn ich die sektion
crypto
> von "/lib/modules/2.4.21 usw" nach "/lib/modules/2.4.21-3-686 usw" kopiere
> und nach einem reboot cryptoapi als modul laden will bzw modprobe mache
> krieg ich folgende ausgabe:
>
>
> linux:/# modprobe cryptoapi
> /lib/modules/2.4.21-3-686/kernel/crypto/cryptoapi.o: unresolved symbol
> remove_proc_entry_R0ffa1e01
> /lib/modules/2.4.21-3-686/kernel/crypto/cryptoapi.o: unresolved symbol
> proc_mkdir_R1c1b911a
> /lib/modules/2.4.21-3-686/kernel/crypto/cryptoapi.o: unresolved symbol
> create_proc_entry_R68959866
> /lib/modules/2.4.21-3-686/kernel/crypto/cryptoapi.o: insmod
> /lib/modules/2.4.21-3-686/kernel/crypto/cryptoapi.o failed
> /lib/modules/2.4.21-3-686/kernel/crypto/cryptoapi.o: insmod cryptoapi
failed
> linux:/#
>
>
>
> linux:/# insmod cryptoapi
> Using /lib/modules/2.4.21-3-686/kernel/crypto/cryptoapi.o
> /lib/modules/2.4.21-3-686/kernel/crypto/cryptoapi.o: unresolved symbol
> remove_proc_entry_R0ffa1e01
> /lib/modules/2.4.21-3-686/kernel/crypto/cryptoapi.o: unresolved symbol
> proc_mkdir_R1c1b911a
> /lib/modules/2.4.21-3-686/kernel/crypto/cryptoapi.o: unresolved symbol
> create_proc_entry_R68959866
> linux:/#
>
>
>
>
> THX,
> Fun4a
>
>
>
>
>
> "Axel Dürrbaum" <axeld@rts.maschinenbau.uni-kassel.de> schrieb im
> Newsbeitrag [🔎] m0he4ulzg0.fsf@rts-pc10.rts.maschinenbau.uni-kassel.de">news:[🔎] m0he4ulzg0.fsf@rts-pc10.rts.maschinenbau.uni-kassel.de...
> > Norbert Tretkowski <tretkowski@bzimage.de> writes:
> >
> > > * Marco Thorbruegge <marco.thorbruegge@gmx.de> wrote:
> >
> > > Bei letzterem ist aber ein Patch dabei.
> >
> > Und der funktioniert auch. Letzte Woche konte ich damit
> > cryptoloop und cryptoapi compilieren.
> >
> > Allerdings lassen sich beide Patches nach make-kpkg clean nicht mehr
> > sauber neu installieren, es hagelt jede Menge "hunk failed".
> >
> > Da half nur Neu-Entpacken der Kernel-Sourcen.
> >
> > MfG,
> > AxelD
> >
> > -- 
> > Axel Dürrbaum / Universität Kassel / FB 15 - RTS Regelungstechnik
> > Mönchebergstraße 7 / 34109 Kassel / Germany / Technik I/II / Raum 2602
> > phone:+49 561 804 3261  eMail:axeld@uni-kassel.de
> >
> >
>
>
>
>





Reply to: