On 5/8/2026 1:52 PM, Frank wrote:
Hello,
it has been a while and I am trying to compile a new version of GPG
(2.5.19) and its libraries.
Only npth was already successfully compiled.
I am already struggling with libgpg-error and
since libgpg-error is the basis for everything else I am stuck.
error message:
libtool: link: ( cd ".libs" && rm -f "libgpg-error.la" && ln -s "../
libgpg-error.la" "libgpg-error.la" )
/opt/freeware/bin/bash ../libtool --tag=CC --mode=link cc -
qlanglvl=extc1x -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 -L/opt/freeware/lib64 -L/opt/
freeware/lib -Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/
lib:/lib -Wl,-bmaxdata:0x80000000 -o gpg-error gpg_error-strsource-sym.o
gpg_error-strerror-sym.o gpg_error-gpg-error.o libgpg-error.la
libtool: link: cc -qlanglvl=extc1x -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 -Wl,-blibpath:/
opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib -Wl,-
bmaxdata:0x80000000 -o .libs/gpg-error gpg_error-strsource-sym.o
gpg_error-strerror-sym.o gpg_error-gpg-error.o -L/opt/freeware/lib64 -
L/opt/freeware/lib -L./.libs -lgpg-error -lpthread -Wl,-blibpath:/opt/
freeware/lib:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib
ld: 0711-317 ERROR: Undefined symbol: .gpgrt_fconcat
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
make: The error code from the last command is 8.
Stop.
make: The error code from the last command is 2.
Stop.
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 2.
Stop.
I found this in the Changelog:
2025-12-09 Werner Koch <[email protected]>
argparse: gpgrt_fconcat to get the SYSCONFDIR.
+ commit 6fe7cf710254d78ada27fbf63747ab0e97bc6979
* src/stringutils.c (_gpgrt_fconcat): New internal function.
* src/argparse.c (_gpgrt_argparser): Use it.
New function gpgrt_fconcat.
+ commit 34dba88757fedb61d1ea63616a3e03837ccf50ab
* src/w32-utils.c: New.
* src/init.c (_gpg_err_init, DllMain): Call new init function.
* src/visibility.c (gpgrt_fconcat): New.
* src/gpg-error.h.in (gpgrt_fconcat): New prototype.
(GPGRT_FCONCAT_ABS): New.
(GPGRT_FCONCAT_TILDE): New.
(GPGRT_FCONCAT_SYSCONF): New.
* src/gpg-error.def.in (gpgrt_fconcat): New.
* src/gpg-error.vers: (gpgrt_fconcat): New.
* src/stringutils.c (_gpgrt_vfnameconcat): Repalce want-abs but
a new
flags arg. Change to support GPGRT_FCONCAT_SYSCONF. Fix tilde
expansion under Windows to use CISDL_PROFILE instead of $HOME.
Adjust
all callers.
* src/gpg-error.c (main): New command "fconcat".
Any idea, what the reason might be?
Which additional information can I provide to pinpoint the issue?
Best regards
Frank
On a different side note:
I tried to compile the library using xlclang++ and it resulted in an
empty (rather malformed) mkerror.h.
I was curious to why and found that the xlclang option '-P' creates a
.i-file and does not generate the output on stdout.
In case you want to support xlclang, either the option -P needs to be
dropped or the .i-file put into the following '| grep...'.
Regardless, even xlclang++ runs into the same 'Undefined symbol' after that.
Best regards
Frank
_______________________________________________
Gnupg-users mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gnupg-users