Closed aelmahmoudy closed 9 years ago
Sounds like you need to build libgpg-error first. gpg_strerror() comes from libgpg-error.
libgpg-error did get built successfully, it is in external/lib/ (both static & dynamic libs)
Hmm, like you said before -lgpg-error
seems to be missing from that compile command line. We haven't touched this project in years but it would be great to see it revived. The thing to do is to check how we are going native builds on our other projects, and port this to the modern style. Here are some example projects: IOCipher, gnupg-for-android, Lil' Debi.
Ok, I managed to build most of the stuff except for a few issues:
1) running autogen.sh in util-linux-ng causes a fork bomb, so I skipped autogen.sh, and directly patched some Makefile.in files
2) cryptsetup binary didn't link because it cannot find 'getline' during linking. I am stuck at that point
This got fixed by running autoreconf for cryptsetup
I have a question though, while building util-linux, I got several errors about missing *mntent symbols, so what I've done is patched config.h to have:
is that the right thing ? or shall I add definitions for those functions as in https://github.com/guardianproject/lildebi/blob/master/external/003-mount-umount-fsck-df.patch ?
I would try first using #undef HAVE_MNTENT_H
, and if everything you need
works, then that's the simplest route. Otherwise, you'll have to do something
like I did to patch busybox. I got those patches from someone else, so I
can't speak to this issue in any more detail.
First I had to edit external/Makefile as follows: NDK_TOOLCHAIN=$(NDK_BASE)/toolchains/arm-linux-androideabi-4.8/prebuilt/$(NDK_UNAME)-x86_64
Then, compilation failed at libgcrypt-1.4.6: