Page MenuHome GnuPG

ballapete (Peter Dyballa)
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Thursday

  • Clear sailing ahead.

User Details

User Since
Mar 27 2017, 4:48 PM (364 w, 17 h)
Availability
Available

Recent Activity

Sep 29 2021

ballapete created T5630: With GCC 4.2 gnupg-2.3.2/kbx/backend-support.c cannot be compiled Mac OS X 10.4.11, "Tiger".
Sep 29 2021, 10:47 PM · gnupg (gpg23), Bug Report

Mar 11 2021

ballapete added a comment to T5268: macOS getentropy.

Tiger's /usr/include/AvailabilityMacros.h seems to provide what rndlinux.c was looking for: libgcrypt 1.9.2 just built!

Mar 11 2021, 6:59 PM · libgcrypt, MacOS
ballapete added a comment to T5268: macOS getentropy.

Alright! Here is the error report from GCC:

Mar 11 2021, 6:40 PM · libgcrypt, MacOS
ballapete created T5345: libgcrypt 1.9.2 does not build on Mac OS X 10.4.11, Tiger, because rndlinux.c wants to include Availability.h which does not exist in Tiger.
Mar 11 2021, 1:17 PM · Bug Report

Feb 2 2021

ballapete added a comment to T5268: macOS getentropy.

There is some (partly) good news: The function getentropy() is available in the packet manager MacPorts. It has a legacy support:

Feb 2 2021, 12:52 AM · libgcrypt, MacOS

Feb 1 2021

ballapete added a comment to T5268: macOS getentropy.

To do that, I'd like to know, when the symbol getentropy was added.

Feb 1 2021, 9:40 PM · libgcrypt, MacOS

Jan 29 2021

ballapete added a comment to T5268: macOS getentropy.

Wouldn't it be better to move these failures as a single one into the configure script that it definitely can tell "This Mac has getentropy()"?

Jan 29 2021, 11:37 AM · libgcrypt, MacOS
ballapete added a comment to T5268: macOS getentropy.

I applied the two patches on Mac OS X 10.5.8, Leopard, to random/rndlinux.c, resulting in this unified diff:

Jan 29 2021, 11:25 AM · libgcrypt, MacOS

Jan 27 2021

ballapete added a comment to T5268: macOS getentropy.

In the next few days I'll be able to boot into Leopard, Mac OS X 10.5.8, to test this. Right now it seems that I need to fix a few problems with updated software sources…

Jan 27 2021, 5:39 PM · libgcrypt, MacOS
ballapete added a comment to T5268: macOS getentropy.

To support old macOS (< 10.12), I think that code should be something like this:

After libgcrypt 1.9.0 first built on Tiger and 'make check' succeeded I ran 'make clean' and applied the changes to random/rndlinux.c. A simple make succeeded without problem. 'make check' then ran into problems, spitting out many times messages messages like these:

Jan 27 2021, 11:03 AM · libgcrypt, MacOS
ballapete added a comment to rCfc901e978a0c: build: Check spawn.h for MacOS X Tiger..

With these two patches libgcrypt 1.9.0 built on PPC Tiger, Mac OS X 10.4.11. 'make check' succeeded.

Jan 27 2021, 10:42 AM

Jan 26 2021

ballapete added a comment to T5264: libgcrypt 1.9.0 does not compile on old Mac OS X, versions 10.5.8 (Leopard) and 10.4.11 (Tiger), both on PPC hardware.

I also needed this patch:

I am going to check whether I need it on Tiger!

Jan 26 2021, 10:21 PM · libgcrypt, Bug Report
ballapete added a comment to T5264: libgcrypt 1.9.0 does not compile on old Mac OS X, versions 10.5.8 (Leopard) and 10.4.11 (Tiger), both on PPC hardware.

I tested building on Ubuntu 8.04 (gcc-4.2) and got same error about cipher_bulk_ops_t. Applying patch fixed that problem.

Jan 26 2021, 10:10 PM · libgcrypt, Bug Report
ballapete added a comment to T5264: libgcrypt 1.9.0 does not compile on old Mac OS X, versions 10.5.8 (Leopard) and 10.4.11 (Tiger), both on PPC hardware.

I see now my mistake: I also have to re-write line #132 which I did not see yet!

Jan 26 2021, 9:51 PM · libgcrypt, Bug Report
ballapete added a comment to T5264: libgcrypt 1.9.0 does not compile on old Mac OS X, versions 10.5.8 (Leopard) and 10.4.11 (Tiger), both on PPC hardware.

With your other patch I still get:

libtool: compile:  /opt/local/bin/gcc-apple-4.2 -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I../mpi -I../mpi -I/opt/local/include -I/opt/local/include -pipe -Os -std=gnu89 -arch ppc -fno-delete-null-pointer-checks -Wall -MT cipher.lo -MD -MP -MF .deps/cipher.Tpo -c cipher.c  -fno-common -DPIC -o .libs/cipher.o
In file included from cipher.c:31:
./cipher-internal.h:145: error: redefinition of typedef 'cipher_bulk_ops_t'
../src/cipher-proto.h:132: error: previous declaration of 'cipher_bulk_ops_t' was here
Jan 26 2021, 9:46 PM · libgcrypt, Bug Report
ballapete added a comment to T5264: libgcrypt 1.9.0 does not compile on old Mac OS X, versions 10.5.8 (Leopard) and 10.4.11 (Tiger), both on PPC hardware.

Thanks for testing. However, I do not believe patch has been correctly applied.

The "Portfile" that conducts the build process has the patch contained, I sent you the list of files being patched, and here is the end of my translated patch set:

Jan 26 2021, 9:02 PM · libgcrypt, Bug Report
ballapete added a comment to T5264: libgcrypt 1.9.0 does not compile on old Mac OS X, versions 10.5.8 (Leopard) and 10.4.11 (Tiger), both on PPC hardware.

Here's patch to try out:

Jan 26 2021, 5:30 PM · libgcrypt, Bug Report
ballapete added a comment to T5268: macOS getentropy.

To support old macOS (< 10.12), I think that code should be something like this:

diff --git a/random/rndlinux.c b/random/rndlinux.c
index 04e2a464..f378a549 100644
Jan 26 2021, 5:09 PM · libgcrypt, MacOS
ballapete added a comment to T5264: libgcrypt 1.9.0 does not compile on old Mac OS X, versions 10.5.8 (Leopard) and 10.4.11 (Tiger), both on PPC hardware.

In "src/cipher-proto.h", try removing typedef and leaving just forward declaration of structure.

Performing only this change leads consistently to the well-known error of:

Jan 26 2021, 3:40 PM · libgcrypt, Bug Report
ballapete added a comment to T5264: libgcrypt 1.9.0 does not compile on old Mac OS X, versions 10.5.8 (Leopard) and 10.4.11 (Tiger), both on PPC hardware.

Do not use -fno-common

Jan 26 2021, 3:31 PM · libgcrypt, Bug Report
ballapete added a comment to T5264: libgcrypt 1.9.0 does not compile on old Mac OS X, versions 10.5.8 (Leopard) and 10.4.11 (Tiger), both on PPC hardware.

The translated bulk patch fails. Compilation still runs into this error:

Jan 26 2021, 2:58 PM · libgcrypt, Bug Report
ballapete added a comment to T5264: libgcrypt 1.9.0 does not compile on old Mac OS X, versions 10.5.8 (Leopard) and 10.4.11 (Tiger), both on PPC hardware.

Here's patch to try out:

Jan 26 2021, 2:10 PM · libgcrypt, Bug Report
ballapete added a comment to T5264: libgcrypt 1.9.0 does not compile on old Mac OS X, versions 10.5.8 (Leopard) and 10.4.11 (Tiger), both on PPC hardware.

Alright!

Jan 26 2021, 9:45 AM · libgcrypt, Bug Report

Jan 25 2021

ballapete added a comment to T5264: libgcrypt 1.9.0 does not compile on old Mac OS X, versions 10.5.8 (Leopard) and 10.4.11 (Tiger), both on PPC hardware.

Right now I am compiling with my old PowerBook in Tiger. In case a compilation fails I'll try this patch – on Tiger (Mac OS X 10.4.11)! It's a bit more primitive than Leopard.

Jan 25 2021, 9:53 PM · libgcrypt, Bug Report

Jan 24 2021

ballapete created T5264: libgcrypt 1.9.0 does not compile on old Mac OS X, versions 10.5.8 (Leopard) and 10.4.11 (Tiger), both on PPC hardware.
Jan 24 2021, 11:39 AM · libgcrypt, Bug Report

Mar 1 2017

ballapete added a comment to T2447: macport compile failed in libassuan-2.4.3 due to undefine _POSIX_C_SOURCE.

This happens on at least PPC Mac OS X 10.4.11, Tiger. Compiler is by default Apple's
version of GCC 4.2. The error is reported as this:

libtool: compile: /opt/local/bin/gcc-apple-4.2 -DHAVE_CONFIG_H -I. -I..
-I.. -I/opt/local/include -I/opt/local/include -pipe -Os -arch ppc -Wall
-Wcast-align -Wshadow -Wstrict-prototypes -Wpointer-arith -MT
libassuan_la-assuan-socket.lo -MD -MP -MF .deps/libassuan_la-assuan-
socket.Tpo -c assuan-socket.c -fno-common -DPIC -o .libs/libassuan_la-
assuan-socket.o
assuan-socket.c: In function 'socks5_connect':
assuan-socket.c:732: error: 'INADDR_LOOPBACK' undeclared (first use in
this function)
assuan-socket.c:732: error: (Each undeclared identifier is reported only
once
assuan-socket.c:732: error: for each function it appears in.)
make[3]: * [libassuan_la-assuan-socket.lo] Error 1
make[3]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.or
g_release_tarballs_ports_devel_libassuan/libassuan/work/libassuan-2.4.3/src'
make[2]:
* [all] Error 2
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.or
g_release_tarballs_ports_devel_libassuan/libassuan/work/libassuan-2.4.3/src'
make[1]: * [all-recursive] Error 1
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.or
g_release_tarballs_ports_devel_libassuan/libassuan/work/libassuan-2.4.3'
make:
* [all] Error 2
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.or
g_release_tarballs_ports_devel_libassuan/libassuan/work/libassuan-2.4.3'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.or
g_release_tarballs_ports_devel_libassuan/libassuan/work/libassuan-2.4.3"
&& /usr/bin/make -w all

Cause is that the declaration of 'INADDR_LOOPBACK' is hidden behind some guards. The
two external links document the situation, they also offer patches, either the attached
one or this addition for src/assuan-socket.c:

//fix missing define in MacOSX 10.4 Tiger
#ifndef INADDR_LOOPBACK

#define INADDR_LOOPBACK (u_int32_t)0x7f000001

#endif

In ten days I'll be at home again with my Apple PowerBook G4 and might have time to
check the situation in Mac OS X 10.5, Leopard.

Mar 1 2017, 8:59 PM · MacOS, Bug Report, libassuan
ballapete changed External Link from https://trac.macports.org/ticket/51708 to https://trac.macports.org/ticket/51708, https://trac.macports.org/ticket/53602 on T2447: macport compile failed in libassuan-2.4.3 due to undefine _POSIX_C_SOURCE.
Mar 1 2017, 8:59 PM · MacOS, Bug Report, libassuan
ballapete changed Version from 2.4.3 to 2.4.3, 2.4.2 on T2447: macport compile failed in libassuan-2.4.3 due to undefine _POSIX_C_SOURCE.
Mar 1 2017, 8:59 PM · MacOS, Bug Report, libassuan
ballapete added a comment to T2447: macport compile failed in libassuan-2.4.3 due to undefine _POSIX_C_SOURCE.

D380: 963_src_assuan-socket_INADDR_LOOPBACK.patch

Mar 1 2017, 8:59 PM · MacOS, Bug Report, libassuan