GnuPG 1.2.4 Make Failure on AIX 4.3.3
Christoph Moench-Tegeder
cmt at burggraben.net
Tue Feb 24 16:29:33 CET 2004
## Rusty Howell (rhowell at bsc.edu):
> I then try to make it, and receive the following error at the end of
> the 'make.' (right after it finishes making in the 'checks' subdir)
>
> -----
> Making all in checks
> ./gpg_dearmor > ./plain-1 < ./plain-1o.asc
> gpg: can't lock memory: Not owner
> make: The error code from the last command is 2.
This comes from util/secmem.c. Line 141 sets err (err = EPERM),
and ll. 171 checks for err and errno. Since errno remains 0,
gpg throws an error.
This patch did it for me:
diff -Nru gnupg-1.2.4.orig/util/secmem.c gnupg-1.2.4/util/secmem.c
--- gnupg-1.2.4.orig/util/secmem.c Thu Oct 23 09:49:45 2003
+++ gnupg-1.2.4/util/secmem.c Sun Feb 22 21:24:42 2004
@@ -179,6 +179,9 @@
#ifdef ENOMEM /* Linux can return this */
&& errno != ENOMEM
#endif
+#ifdef _AIX /* err was set above, but errno remains 0 */
+ && errno
+#endif
)
log_error("can't lock memory: %s\n", strerror(err));
show_warning = 1;
Regards,
Christoph
--
Spare Space
More information about the Gnupg-users
mailing list