2010-09-30 12:33:23 GnuPG
Matt Gilg (UNITED STATES)
Message: 94079
I'm looking to do PGP style encryption/decryption on the blackfin, and in my version of the dist, libgcrypt doesn't have a makefile. After doing some research, I noticed a tracker ticket for this, and it looks like Robin has added a Makefile to the trunk since.
1 - I didn't see any entries in the current trunk's KConfig system for libgcrypt -- did I just miss them? I don't have a problem adding them and submitting a patch if that would be useful.
2 - What I was originally looking for is a command-line client for gnupg. Does this happen to exist somewhere in the distribution as well?
Thanks,
-Matt
QuoteReplyEditDelete
2010-09-30 14:39:40 Re: GnuPG
Mike Frysinger (UNITED STATES)
Message: 94084
no, the libs arent fully integrated yet. iirc, some linker script discussions hung things up, but that's been largely sorted now. feel free to submit a patch.
gnupg is not integrated. if it were, it'd be at user/gnupg/.
QuoteReplyEditDelete
2010-10-04 19:06:17 Re: GnuPG
Matt Gilg (UNITED STATES)
Message: 94173
I've attached a diff, but it isn't exactly useful to anybody yet, and it might not be in an acceptable format. It adds the option and attempts the build, but I get an error when config tries to find libgpg-error:
checking whether a HMAC binary check is requested... no
checking whether padlock support is requested... yes
checking whether a -O flag munging is requested... yes
checking for gpg-error-config... no
checking for GPG Error - version >= 1.4... no
configure: error: libgpg-error is needed.
See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ .
make[3]: *** [build-libgcrypt-1.4.5/Makefile] Error 1
------------------------------------------------------------------------------------------
libgpg-error is definitely building correctly, and is selected in menuconfig.
The libraries are correctly built in the dist, here is a listing of the .libs directory
within the libgpg-error project.
------------------------------------------------------------------------------------------
gilgm@dev-server:~/Blackfin/uClinux/lib/libgpg-error/build-libgpg-error-1.7/src/.libs$ ls
gpg-error libgpg_error_la-code-from-errno.o libgpg_error_la-init.o libgpg-error.so
libgpg-error.a libgpg_error_la-code-to-errno.o libgpg_error_la-strerror.o libgpg-error.so.0
libgpg-error.la libgpg-error.lai libgpg_error_la-strsource.o libgpg-error.so.0.5.0
-------------------------------------------------------------------------------------------
Is there something I need to do to tell libgcrypt about the location of libgpg-error?
Thanks,
-Matt
gcrypt.patch
QuoteReplyEditDelete
2010-10-04 19:24:36 Re: GnuPG
Mike Frysinger (UNITED STATES)
Message: 94174
that output doesnt really tell you the problem. you need to read config.log.
QuoteReplyEditDelete
2010-10-05 10:56:02 Re: GnuPG
Matt Gilg (UNITED STATES)
Message: 94193
Thanks Mike. I'm not too familiar with the autoconf system, and so I guess I'm not sure quite what I'm looking for. Anyhow, the GPG_ERROR_CONFIG='no' seems wrong, as does the empty GPG_ERROR_LIBS.
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/gilgm/Blackfin/uClinux-msat-steve/lib/libgcrypt/libgcrypt-1.4.5/missing --run aclocal-1.10'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE='#'
AMTAR='${SHELL} /home/gilgm/Blackfin/uClinux-msat-steve/lib/libgcrypt/libgcrypt-1.4.5/missing --run tar'
AR='bfin-linux-uclibc-ar'
AS='bfin-linux-uclibc-as'
AUTOCONF='${SHELL} /home/gilgm/Blackfin/uClinux-msat-steve/lib/libgcrypt/libgcrypt-1.4.5/missing --run autoconf'
AUTOHEADER='${SHELL} /home/gilgm/Blackfin/uClinux-msat-steve/lib/libgcrypt/libgcrypt-1.4.5/missing --run autoheader'
AUTOMAKE='${SHELL} /home/gilgm/Blackfin/uClinux-msat-steve/lib/libgcrypt/libgcrypt-1.4.5/missing --run automake-1.10'
AWK='gawk'
BUILD_FILEVERSION=''
BUILD_REVISION='1417'
BUILD_TIMESTAMP=''
CC='bfin-linux-uclibc-gcc'
CCAS='bfin-linux-uclibc-gcc'
CCASDEPMODE='depmode=none'
CCASFLAGS='-pipe -Wall -g -O2 -mcpu=bf537-0.3'
CCDEPMODE='depmode=none'
CFLAGS='-pipe -Wall -g -O2 -mcpu=bf537-0.3'
CPP='bfin-linux-uclibc-gcc -E'
CPPFLAGS='-DEMBED -D__uClinux__ -I/home/gilgm/Blackfin/uClinux-msat-steve -mcpu=bf537-0.3'
CROSS_COMPILING_FALSE=''
CROSS_COMPILING_TRUE=''
CXX='bfin-linux-uclibc-g++'
CXXCPP='bfin-linux-uclibc-g++ -E'
CXXDEPMODE='depmode=none'
CXXFLAGS='-pipe -Wall -g -O2 -mcpu=bf537-0.3'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL='dlltool'
DL_LIBS=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
ENABLE_O_FLAG_MUNGING_FALSE='#'
ENABLE_O_FLAG_MUNGING_TRUE=''
EXEEXT=''
F77='bfin-linux-uclibc-gfortran'
FALLBACK_SOCKLEN_T=''
FFLAGS='-g -O2'
GCRYPT_CIPHERS=''
GCRYPT_DIGESTS=''
GCRYPT_PUBKEY_CIPHERS=''
GCRYPT_RANDOM=''
GPG_ERROR_CFLAGS=''
GPG_ERROR_CONFIG='no'
GPG_ERROR_LIBS=''
GREP='/bin/grep'
HAVE_LD_VERSION_SCRIPT_FALSE=''
HAVE_LD_VERSION_SCRIPT_TRUE='#'
HAVE_W32_SYSTEM_FALSE=''
HAVE_W32_SYSTEM_TRUE='#'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=' -mcpu=bf537-0.3'
LIBGCRYPT_CIPHERS=''
LIBGCRYPT_CONFIG_API_VERSION='1'
LIBGCRYPT_CONFIG_CFLAGS=''
LIBGCRYPT_CONFIG_LIBS='-lgcrypt'
LIBGCRYPT_DIGESTS=''
LIBGCRYPT_LT_AGE='5'
LIBGCRYPT_LT_CURRENT='16'
LIBGCRYPT_LT_REVISION='3'
LIBGCRYPT_PUBKEY_CIPHERS=''
LIBGCRYPT_THREAD_MODULES=''
LIBOBJS=''
LIBS=''
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LN_S='ln -s'
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /home/gilgm/Blackfin/uClinux-msat-steve/lib/libgcrypt/libgcrypt-1.4.5/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
MPI_MOD_ASM_MPIH_ADD1_FALSE=''
MPI_MOD_ASM_MPIH_ADD1_TRUE=''
MPI_MOD_ASM_MPIH_LSHIFT_FALSE=''
MPI_MOD_ASM_MPIH_LSHIFT_TRUE=''
MPI_MOD_ASM_MPIH_MUL1_FALSE=''
MPI_MOD_ASM_MPIH_MUL1_TRUE=''
MPI_MOD_ASM_MPIH_MUL2_FALSE=''
MPI_MOD_ASM_MPIH_MUL2_TRUE=''
MPI_MOD_ASM_MPIH_MUL3_FALSE=''
MPI_MOD_ASM_MPIH_MUL3_TRUE=''
MPI_MOD_ASM_MPIH_RSHIFT_FALSE=''
MPI_MOD_ASM_MPIH_RSHIFT_TRUE=''
MPI_MOD_ASM_MPIH_SUB1_FALSE=''
MPI_MOD_ASM_MPIH_SUB1_TRUE=''
MPI_MOD_ASM_UDIV_FALSE=''
MPI_MOD_ASM_UDIV_QRNND_FALSE=''
MPI_MOD_ASM_UDIV_QRNND_TRUE=''
MPI_MOD_ASM_UDIV_TRUE=''
MPI_MOD_C_MPIH_ADD1_FALSE=''
MPI_MOD_C_MPIH_ADD1_TRUE=''
MPI_MOD_C_MPIH_LSHIFT_FALSE=''
MPI_MOD_C_MPIH_LSHIFT_TRUE=''
MPI_MOD_C_MPIH_MUL1_FALSE=''
MPI_MOD_C_MPIH_MUL1_TRUE=''
MPI_MOD_C_MPIH_MUL2_FALSE=''
MPI_MOD_C_MPIH_MUL2_TRUE=''
MPI_MOD_C_MPIH_MUL3_FALSE=''
MPI_MOD_C_MPIH_MUL3_TRUE=''
MPI_MOD_C_MPIH_RSHIFT_FALSE=''
MPI_MOD_C_MPIH_RSHIFT_TRUE=''
MPI_MOD_C_MPIH_SUB1_FALSE=''
MPI_MOD_C_MPIH_SUB1_TRUE=''
MPI_MOD_C_UDIV_FALSE=''
MPI_MOD_C_UDIV_QRNND_FALSE=''
MPI_MOD_C_UDIV_QRNND_TRUE=''
MPI_MOD_C_UDIV_TRUE=''
MPI_SFLAGS=''
NOEXECSTACK_FLAGS=''
OBJDUMP='bfin-linux-uclibc-objdump'
OBJEXT='o'
PACKAGE='libgcrypt'
PACKAGE_BUGREPORT='bug-libgcrypt@gnupg.org'
PACKAGE_NAME='libgcrypt'
PACKAGE_STRING='libgcrypt 1.4.5'
PACKAGE_TARNAME='libgcrypt'
PACKAGE_URL=''
PACKAGE_VERSION='1.4.5'
PATH_SEPARATOR=':'
PTH_CFLAGS=''
PTH_CONFIG=''
PTH_LIBS=''
RANLIB='bfin-linux-uclibc-ranlib'
RC='no'
SET_MAKE=''
SHELL='/bin/bash'
STRIP='bfin-linux-uclibc-strip'
SYS_SOCKET_H=''
USE_RANDOM_DAEMON_FALSE=''
USE_RANDOM_DAEMON_TRUE='#'
VERSION='1.4.5'
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_F77=''
am__fastdepCCAS_FALSE=''
am__fastdepCCAS_TRUE='#'
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE='#'
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE='#'
am__include='include'
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='/usr/share'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='bfin-unknown-linux-uclibc'
host_alias='bfin-linux-uclibc'
host_cpu='bfin'
host_os='linux-uclibc'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='/usr/share/info'
install_sh='$(SHELL) /home/gilgm/Blackfin/uClinux-msat-steve/lib/libgcrypt/libgcrypt-1.4.5/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var/lib'
mandir='/usr/share/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "libgcrypt"
#define PACKAGE_TARNAME "libgcrypt"
#define PACKAGE_VERSION "1.4.5"
#define PACKAGE_STRING "libgcrypt 1.4.5"
#define PACKAGE_BUGREPORT "bug-libgcrypt@gnupg.org"
#define PACKAGE_URL ""
#define PACKAGE "libgcrypt"
#define VERSION "1.4.5"
#define PACKAGE "libgcrypt"
#define VERSION "1.4.5"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define SIZEOF_UNSIGNED_SHORT 2
#define SIZEOF_UNSIGNED_INT 4
#define SIZEOF_UNSIGNED_LONG 4
#define SIZEOF_UNSIGNED_LONG_LONG 8
#define HAVE_UINTPTR_T 1
#define EGD_SOCKET_NAME ""
#define ENABLE_PADLOCK_SUPPORT 1
#define PRINTABLE_OS_NAME "GNU/Linux"
#define NAME_OF_DEV_RANDOM "/dev/random"
#define NAME_OF_DEV_URANDOM "/dev/urandom"
configure: exit 1
-Matt
QuoteReplyEditDelete
2010-10-05 14:19:41 Re: GnuPG
Mike Frysinger (UNITED STATES)
Message: 94196
that isnt the important part of the log. post the whole thing as an attachment.
QuoteReplyEditDelete
2010-10-05 16:22:17 Re: GnuPG
Matt Gilg (UNITED STATES)
Message: 94200
Oops, sorry about that. I've attached the whole log.
-Matt
libgcrypt.config.log
QuoteReplyEditDelete
2010-10-06 03:01:25 Re: GnuPG
Mike Frysinger (UNITED STATES)
Message: 94219
i dont think that is the whole log. pretty much every config.log ive seen has info at the top like:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by dbus configure 1.3.0, which was
generated by GNU Autoconf 2.63. Invocation command line was
QuoteReplyEditDelete
2010-10-06 10:57:38 Re: GnuPG
Matt Gilg (UNITED STATES)
Message: 94285
Sorry Mike, accidentally attached the same log that my previous post contained. Oops. The full log is attached.
Thanks,
-Matt
gcrypt.config.log
QuoteReplyEditDelete
2010-10-06 14:04:54 Re: GnuPG
Mike Frysinger (UNITED STATES)
Message: 94294
hmm, i guess i fixed this locally but forgot to commit it. sorry about that. svn up the trunk lib dir.