Re: libgcrypt 1.10.2 compile on AIX POWER

2023-10-16 Thread Frank Lindner
It seems I found my mistake.
By accident the compiler was set to xlclang++, which is not the correct one I 
suppose.
Changing this back to cc/xlC did throw the well know issue of 'keyword inline 
unknown'.
And for that I think I found a solution for AIX.
Adding the -qlanglvl=extc99 compile option to my environment worked for 1.8.10.

For 1.10.2 I now run into the following:
> start ---<
/opt/freeware/bin/bash ../libtool  --tag=CC--mode=link cc 
-I/opt/freeware/include -qmaxmem=16384 -qlanglvl=extc99 -DSYSV -D_AIX -D_AIX32 
-D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 -D_AIX72 
-D_ALL_SOURCE -DFUNCPROTO=15 -O2 -I/opt/freeware/include  -no-install 
-L/opt/freeware/lib64 -L/opt/freeware/lib 
-Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib 
-Wl,-bmaxdata:0x8000 -o hashtest hashtest.o ../src/libgcrypt.la  
../compat/libcompat.la -L/opt/freeware/lib -lgpg-error -lpthread

libtool: link: cc -I/opt/freeware/include -qmaxmem=16384 -qlanglvl=extc99 
-DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 
-D_AIX71 -D_AIX72 -D_ALL_SOURCE -DFUNCPROTO=15 -O2 -I/opt/freeware/include 
-Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib 
-Wl,-bmaxdata:0x8000 -o hashtest hashtest.o  -L/opt/freeware/lib64 
-L/opt/freeware/lib -L../src/.libs -lgcrypt ../compat/.libs/libcompat.a 
-lgpg-error -lpthread 
-Wl,-blibpath:/opt/freeware/src/packages/BUILD/libgcrypt-1.10.2/src/.libs:/opt/freeware/lib:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib

source='t-kdf.c' object='t_kdf-t-kdf.o' libtool=no  DEPDIR=.deps 
depmode=xlc /opt/freeware/bin/bash ../build-aux/depcomp  cc -DHAVE_CONFIG_H -I. 
-I..  -I../src -I../src  -I/opt/freeware/include -D_THREAD_SAFE -qmaxmem=16384 
-qlanglvl=extc99 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 
-D_AIX53 -D_AIX61 -D_AIX71 -D_AIX72 -D_ALL_SOURCE -DFUNCPROTO=15 -O2 
-I/opt/freeware/include -c -o t_kdf-t-kdf.o `test -f 't-kdf.c' || echo 
'./'`t-kdf.c

/opt/freeware/bin/bash ../libtool  --tag=CC--mode=link cc 
-I/opt/freeware/include -D_THREAD_SAFE -qmaxmem=16384 -qlanglvl=extc99 -DSYSV 
-D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 
-D_AIX72 -D_ALL_SOURCE -DFUNCPROTO=15 -O2 -I/opt/freeware/include  -no-install 
-L/opt/freeware/lib64 -L/opt/freeware/lib 
-Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib 
-Wl,-bmaxdata:0x8000 -o t-kdf t_kdf-t-kdf.o ../src/libgcrypt.la  
../compat/libcompat.la -L/opt/freeware/lib -lgpg-error -lpthread -lpthread

libtool: link: cc -I/opt/freeware/include -D_THREAD_SAFE -qmaxmem=16384 
-qlanglvl=extc99 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 
-D_AIX53 -D_AIX61 -D_AIX71 -D_AIX72 -D_ALL_SOURCE -DFUNCPROTO=15 -O2 
-I/opt/freeware/include 
-Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib 
-Wl,-bmaxdata:0x8000 -o t-kdf t_kdf-t-kdf.o  -L/opt/freeware/lib64 
-L/opt/freeware/lib -L../src/.libs -lgcrypt ../compat/.libs/libcompat.a 
-lgpg-error -lpthread 
-Wl,-blibpath:/opt/freeware/src/packages/BUILD/libgcrypt-1.10.2/src/.libs:/opt/freeware/lib:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib

ld: 0711-317 ERROR: Undefined symbol: .gcry_kdf_open
ld: 0711-317 ERROR: Undefined symbol: .gcry_kdf_compute
ld: 0711-317 ERROR: Undefined symbol: .gcry_kdf_final
ld: 0711-317 ERROR: Undefined symbol: .gcry_kdf_close

ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

make: The error code from the last command is 8.
> end ---<

Which looks somehow vaguely familiar.

Any tips?

Kind regards
Frank

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users


libgcrypt 1.10.2 compile on AIX POWER

2023-10-16 Thread Frank Lindner
Hello,

it's been a while and I just tried to compile a new version of GnuPG and needed 
libraries.
I am having troubles with libgcrypt 1.10.2.

/opt/freeware/bin/bash ../libtool --tag=CC --mode=compile xlclang++ 
-DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/opt/freeware/include 
-qmaxmem=16384 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 
-D_AIX53 -D_AIX61 -D_AIX71 -D_AIX72 -D_ALL_SOURCE -DFUNCPROTO=15 -O2 
-I/opt/freeware/include -fno-delete-null-pointer-checks -Wall -MT mpi-bit.lo 
-MD -MP -MF .deps/mpi-bit.Tpo -c -o mpi-bit.lo mpi-bit.c

libtool: compile: xlclang++ -DHAVE_CONFIG_H -I. -I.. -I../src -I../src 
-I/opt/freeware/include -qmaxmem=16384 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 
-D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 -D_AIX72 -D_ALL_SOURCE 
-DFUNCPROTO=15 -O2 -I/opt/freeware/include -fno-delete-null-pointer-checks 
-Wall -MT mpi-bit.lo -MD -MP -MF .deps/mpi-bit.Tpo -c mpi-bit.c -DPIC -o 
.libs/mpi-bit.o

warning: 1540-5200 The option "-fno-delete-null-pointer-checks" is not 
supported.

1 warning generated.

Assembler:

.libs/mpi-bit$1.s: line 48: Error In Syntax

1500-067: (S) asm statement generates errors in assembler output.

make: The error code from the last command is 1.

Stop.
make: The error code from the last command is 1.

Stop.
make: The error code from the last command is 2.

Stop.
error: Bad exit status from /var/tmp/rpm-tmp.XU_aeb (%build)

Currently I have no ideas how to track down this problem any further.
My latest successful build was 1.9.4.

Any ideas?
Is sticking with LTS version (1.8.x) a viable solution?

Kind regards
Frank

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Can preferred order of decryption keys be specified?

2023-10-16 Thread Werner Koch via Gnupg-users
On Sat, 14 Oct 2023 12:06, Martin Jambor said:

> Is there a way to specify a preferred decryption key (that is different
> from the default signing key)?

Although we meanwhile have a way to set preferences for ssh keys [1] we
don't have this for decryption keys.  :-(

> Incidentally, does anybody know how to convince emacs EasyPG to pass
> --no-throw-keyids to GPG? :-)

Elisp is easy to modify ;-).  One other idea: Replace the throw-keyid in
gpg.conf by

--8<---cut here---start->8---
[getenv no_throw_keyid NO_THROW_KEYID]
[if $no_throw_keyid -z ]
  throw-keyid
[fi]
--8<---cut here---end--->8---

and then have Emacs to set the NO_THROW_KEYID envvar to 1 or so.


Shalom-Salam,

   Werner


[1] In the respective .key file you may put this name/value:
*** Use-for-ssh
If given and the value is "yes" or "1" the key is allowed for use by
gpg-agent's ssh-agent implementation.  This is thus the same as
putting the keygrip into the 'sshcontrol' file.  Only one such item
should exist.  If another non-zero value between 1 and 9 is used,
this is taken to establish the order in which the keys are returned to
ssh; lower numbers are returned first.  If a negative value is used
this overrides currently active (inserted) cards and thus allows to
prefer on-disk keys over inserted cards.  A value of -1 has the
highest priority; values are capped at -999 and have a lower priority
but still above the positive values, inserted cards or the order in
sshcontrol.

-- 
The pioneers of a warless world are the youth that
refuse military service. - A. Einstein


openpgp-digital-signature.asc
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users