Port-sparc archive

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

OpenSSL build error on 8.2



Hi All,

since we were speculating which exact error happens when compiling openssl on 8.2 (and yes, it is pulled in as dependency, as foreseen...)

${LDCMD:-cc} -pthread -Wa,--noexecstack -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -O2 -L. -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib \
        -o fuzz/asn1parse-test fuzz/asn1parse.o fuzz/test-corpus.o \
         -lcrypto -pthread
./libcrypto.so: undefined reference to `__atomic_is_lock_free'
gmake[1]: *** [Makefile:6849: fuzz/asn1parse-test] Error 1
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: Leaving directory '/home/pkg-workdir/security/openssl/work/openssl-1.1.1e'
gmake: *** [Makefile:175: all] Error 2


Romain mentioned that a section can just be commented out.

I suppose:

crypto/threads_pthread.c:

# 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


here it is already "guarded" ... perhaps it is wrong that _ATOMIC_ACQ_REL is defined?


Pathing that in pkgsrc or even upstream would be best: it would allow the build of 8.2 packages to complete, of great use!


Riccardo


Home | Main Index | Thread Index | Old Index