Port-sparc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: OpenSSL build error on 8.2



Le sam. 16 mai 2020 à 19:26, Romain Dolbeau <romain%dolbeau.org@localhost> a écrit :
> The block of code in question is disabled in the source code of NetBSD
> 9.0 (with a '#ifdef notyet'), so it should be safe to disable on sparc
> in pkgsrc, I would assume.

Probably a bit too far-reaching, but with:

#####
ss20# cat patches/patch-crypto_threads_pthread.c
--- ./crypto/threads_pthread.c.orig     2020-03-17 15:31:17.000000000 +0100
+++ ./crypto/threads_pthread.c  2020-05-17 09:13:01.493708116 +0200
@@ -162,12 +162,14 @@

 int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock)
 {
+#ifdef notyet
 # if defined(__GNUC__) && defined(__ATOMIC_ACQ_REL)
     if (__atomic_is_lock_free(sizeof(*val), val)) {
         *ret = __atomic_add_fetch(val, amount, __ATOMIC_ACQ_REL);
         return 1;
     }
 # endif
+#endif
     if (!CRYPTO_THREAD_write_lock(lock))
         return 0;

#####

The current openssl (1.1.1e) compile & install find on NetBSD
9.0/sparc, and so far is passing 'make test' (it's not fast t on a 60
Mhz SuperSPARC II...)

Cordially,

-- 
Romain Dolbeau


Home | Main Index | Thread Index | Old Index