Error while compiling ecryptfs utils : undefined reference to `PK11_ImportSymKey'
Hello All,
I am trying to cross compile ecryptfs utils for arm. I am getting the below mentioned error. After analysing the trace now I know that it needs mozilla NSS package for compilation. I have tried to cross compile NSS for arm but without any success. Please let me know if any one has faced such problem? Anyone who can suggest some solution? ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_ImportSymKey' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_GetBestSlot' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_CreateContextBySymKey' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_HashBuf' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_ParamFromIV' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_CipherOp' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_FreeSymKey' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `NSS_NoDB_Init' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_DigestFinal' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_FreeSlot' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `SECITEM_FreeItem' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_DestroyContext' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PORT_GetError' Thanks in advance |
All dependencies to build ecryptfs-utils are listed here
http://packages.debian.org/source/lenny/ecryptfs-utils And a package , ecryptfs-utils for arm is here http://packages.debian.org/stable/misc/ecryptfs-utils There are about 10,000 packages for arm from Debian. If you want to know, what your "make" errors means, you will have to show the error result five lines before the errors start and e.g. five lines after, total ten lines, as an example. Are you quite sure, that all libs used are cross compiled ? It is advisable to tell which host you are using, like CentOS 5.4 , Ubuntu 9.05 , Fedora 11. Please tell the name of the Linux OS, every time, a question is asked. ..... |
Rephrasing ............
I apologize for the same
Let me rephrase my question My host PC: Fedora 8 I am sure that I have all cross compiled libraries except NSS. These undefined references belong to NSS package libraries only. Many libraries are built when we compile NSS for X86, libssl3, libsmime and libnss libraries are three of them and these APIs belong to them. Now the I have two options either I cross compile complete NSS package which I have tried without success. Second is find a replacement for these APIs in ecryptfs utils, Replacement can be provided by some other cryptographic library, So I need guidance if anyone has faced such issue then he/she can guide me. make[3]: Entering directory `/home/nitin/EncryptFS/eCryptFS-arm-pki/src/utils' /bin/sh ../../libtool --tag=CC --mode=link arm_v6_vfp_le-gcc -I/home/nitin/EncryptFS/keyutils-1.2 -L/home/nitin/EncryptFS/keyutils-1.2 -o ecryptfs-manager ecryptfs_manager-manager.o ecryptfs_manager-io.o ecryptfs_manager-gen_key.o ../../src/libecryptfs/libecryptfs.la -lkeyutils -ldl libtool: link: arm_v6_vfp_le-gcc -I/home/nitin/EncryptFS/keyutils-1.2 -o .libs/ecryptfs-manager ecryptfs_manager-manager.o ecryptfs_manager-io.o ecryptfs_manager-gen_key.o -L/home/nitin/EncryptFS/keyutils-1.2 ../../src/libecryptfs/.libs/libecryptfs.so -lkeyutils -ldl -Wl,-rpath -Wl,/home/nitin/EncryptFS/libs/lib ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_ImportSymKey' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_GetBestSlot' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_CreateContextBySymKey' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_HashBuf' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_ParamFromIV' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_CipherOp' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_FreeSymKey' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `NSS_NoDB_Init' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_DigestFinal' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_FreeSlot' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `SECITEM_FreeItem' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PK11_DestroyContext' ../../src/libecryptfs/.libs/libecryptfs.so: undefined reference to `PORT_GetError' collect2: ld returned 1 exit status make[3]: *** [ecryptfs-manager] Error 1 make[3]: Leaving directory `/home/nitin/EncryptFS/eCryptFS-arm-pki/src/utils' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/nitin/EncryptFS/eCryptFS-arm-pki/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/nitin/EncryptFS/eCryptFS-arm-pki' make: *** [all] Error 2 Thanks in Advance |
All the required "crypto" libs etc. are listed here
http://packages.debian.org/source/lenny/ecryptfs-utils libgcrypt > libgcrypt11_1.4.1.orig.tar.gz opencryptoki > opencryptoki_2.2.6+dfsg2.orig.tar.gz libgpg-error > libgpg-error_1.4.orig.tar.gz gpgme > gpgme1.0_1.1.6.orig.tar.gz keyutils > keyutils_1.2.orig.tar.gz pam > pam_1.0.1.orig.tar.gz tspi > trousers_0.3.1.orig.tar.gz No "mozilla NSS package" seems necessary. ..... And you may get a pointer from the Debian source / patch > rules showing these options .. Code:
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --libdir=\$${prefix}/lib --mandir=\$${prefix}/share/man --enable-static --enable-gpg --disable-gui --enable-pam --disable-openssl --disable-pkcs11-helper --disable-tspi They are for arm ! Did you try out the package ? ? Can be unpacked with ' ar -x <package>.deb ' ..... |
All times are GMT -5. The time now is 09:30 PM. |