Mailing List Archive

building newpg
Hi ot sure if this is the right list or not but im trying to build newpg
against libgcrypt-1.1.94 and am comming across the following errors.

cc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -march=i386 -mcpu=i686 -Wall
-Wcast-align -Wshadow -Wstrict-prototypes -c `test -f 'maperror.c' || echo
'./'`maperror.c
maperror.c: In function `map_gcry_err':
maperror.c:72: error: `GCRYERR_EOF' undeclared (first use in this function)
maperror.c:72: error: (Each undeclared identifier is reported only once
maperror.c:72: error: for each function it appears in.)
maperror.c:80: error: `GCRYERR_WRONG_PK_ALGO' undeclared (first use in this
function)
maperror.c:81: error: `GCRYERR_INV_PK_ALGO' undeclared (first use in this
function)
maperror.c:82: error: `GCRYERR_INV_MD_ALGO' undeclared (first use in this
function)
maperror.c:83: error: `GCRYERR_INV_CIPHER_ALGO' undeclared (first use in this
function)
maperror.c:86: error: `GCRYERR_INV_KEYLEN' undeclared (first use in this
function)
maperror.c:87: error: `GCRYERR_WEAK_KEY' undeclared (first use in this
function)
maperror.c:88: error: `GCRYERR_BAD_PUBLIC_KEY' undeclared (first use in this
function)
maperror.c:89: error: `GCRYERR_BAD_SECRET_KEY' undeclared (first use in this
function)
maperror.c:90: error: `GCRYERR_BAD_SIGNATURE' undeclared (first use in this
function)
maperror.c:92: error: `GCRYERR_BAD_MPI' undeclared (first use in this
function)
maperror.c:96: error: `GCRYERR_INV_ARG' undeclared (first use in this
function)
maperror.c:97: error: `GCRYERR_INV_OP' undeclared (first use in this function)
maperror.c:98: error: `GCRYERR_INTERNAL' undeclared (first use in this
function)
maperror.c:99: error: `GCRYERR_INV_CIPHER_MODE' undeclared (first use in this
function)
maperror.c:103: error: `GCRYERR_SELFTEST' undeclared (first use in this
function)
maperror.c:107: error: `GCRYERR_SEXP_INV_LEN_SPEC' undeclared (first use in
this function)
maperror.c:108: error: `GCRYERR_SEXP_STRING_TOO_LONG' undeclared (first use in
this function)
maperror.c:109: error: `GCRYERR_SEXP_UNMATCHED_PAREN' undeclared (first use in
this function)
maperror.c:110: error: `GCRYERR_SEXP_NOT_CANONICAL' undeclared (first use in
this function)
maperror.c:111: error: `GCRYERR_SEXP_BAD_CHARACTER' undeclared (first use in
this function)
maperror.c:112: error: `GCRYERR_SEXP_BAD_QUOTATION' undeclared (first use in
this function)
maperror.c:113: error: `GCRYERR_SEXP_ZERO_PREFIX' undeclared (first use in
this function)
maperror.c:114: error: `GCRYERR_SEXP_NESTED_DH' undeclared (first use in this
function)
maperror.c:115: error: `GCRYERR_SEXP_UNMATCHED_DH' undeclared (first use in
this function)
maperror.c:116: error: `GCRYERR_SEXP_UNEXPECTED_PUNC' undeclared (first use in
this function)
maperror.c:117: error: `GCRYERR_SEXP_BAD_HEX_CHAR' undeclared (first use in
this function)
maperror.c:118: error: `GCRYERR_SEXP_ODD_HEX_NUMBERS' undeclared (first use in
this function)
maperror.c:119: error: `GCRYERR_SEXP_BAD_OCT_CHAR' undeclared (first use in
this function)
maperror.c:123: error: `GCRYERR_NO_MEM' undeclared (first use in this
function)
maperror.c:125: error: `GCRYERR_NOT_IMPL' undeclared (first use in this
function)
maperror.c:126: error: `GCRYERR_CONFLICT' undeclared (first use in this
function)
maperror.c:128: error: `GCRYERR_INV_OBJ' undeclared (first use in this
function)
maperror.c:129: error: `GCRYERR_TOO_SHORT' undeclared (first use in this
function)
maperror.c:130: error: `GCRYERR_TOO_LARGE' undeclared (first use in this
function)
maperror.c:131: error: `GCRYERR_NO_OBJ' undeclared (first use in this
function)
make[3]: *** [maperror.o] Error 1
make[3]: Leaving directory `/var/tmp/rpm/newpg-0.9.4/common'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/rpm/newpg-0.9.4/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/rpm/newpg-0.9.4'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm/rpm-tmp.84339 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm/rpm-tmp.84339 (%build)

all was fine until getting to this version of gcrypt has the api changed?

Dennis
Re: building newpg [ In reply to ]
On Sat, 1 May 2004 23:10:26 +1000, Dennis Gilmore said:

> Hi ot sure if this is the right list or not but im trying to build newpg
> against libgcrypt-1.1.94 and am comming across the following errors.

Don't build newpg at all. It has been superseded by gnupg-1.9.x .

You would need an old libgcrypt < 1.1.42 to build it. The configure
sscript was not able to detect newer versions with a changed API.

Werner
Re: building newpg [ In reply to ]
Once upon a time Sunday 02 May 2004 1:23 am, Werner Koch wrote:
> Don't build newpg at all.  It has been superseded by gnupg-1.9.x .
>
> You would need an old libgcrypt < 1.1.42 to build it.  The configure
> sscript was not able to detect newer versions with a changed API.

hmm ok this seems just wrong there is no gnupg-1.9.x the development tree is
at 1.3.5 but why would a stable peice of software require an unstable one to
work. shouldn't libgcrpt still provide the nessecary API until the stable
version of gnupg has the neccessary functionality?

Dennis
Re: building newpg [ In reply to ]
Dennis Gilmore <dennis@ausil.us> writes:

> hmm ok this seems just wrong there is no gnupg-1.9.x

There is. See http://www.gnupg.org/(en)/download/cvs_access.html;
GnuPG 1.9 can be accessed by checking out the "GNUPG-1-9" branch of
the "gnupg" module. Your checkout command should be similar to:

cvs -z 9 -d :pserver:anoncvs@cvs.gnupg.org:/cvs/gnupg co -r GNUPG-1-9-BRANCH -d gnupg-1-9 gnupg

> the development tree is at 1.3.5

This is not the only development tree. 1.3.5 is much closer to 1.2
than 1.9 is.

> but why would a stable peice of software require an unstable one to
> work.

I don't understand. Neither GnuPG 1.9/1.3.5 nor "NewPG" nor Libgcrypt
< 1.2 has been declared as "stable".

moritz
--
Moritz Schulte
CF0508EC/2E18 1822 1468 11F7 4BDF 2A75 1276 2417 CF05 08EC