1.1.1d build failure with no-shared

Richard Levitte levitte at openssl.org
Sat Nov 23 20:49:50 UTC 2019


You don't happen to have a libcrypto.so lying around in your build
directory?

Just now, I noticed that test/build.info is a bit sloppy, this patch
should help:

diff --git a/test/build.info b/test/build.info
index e4fff15883..e5e1eef153 100644
--- a/test/build.info
+++ b/test/build.info
@@ -449,7 +449,7 @@ IF[{- !$disabled{tests} -}]
     PROGRAMS{noinst}=cipher_overhead_test
     SOURCE[cipher_overhead_test]=cipher_overhead_test.c
     INCLUDE[cipher_overhead_test]=.. ../include ../apps/include
-    DEPEND[cipher_overhead_test]=../libcrypto ../libssl libtestutil.a
+    DEPEND[cipher_overhead_test]=../libcrypto.a ../libssl.a libtestutil.a
   ENDIF
 
   SOURCE[uitest]=uitest.c ../apps/lib/apps_ui.c

Cheers,
Richard ( I'll check if there are others with the same problem )

On Fri, 22 Nov 2019 17:20:53 +0100,
Claus Assmann wrote:
> 
> Just FYI: trying to build openssl 1.1.1d with no-shared fails (on
> OpenBSD 6.5) see below. I'm not sure why test/cipher_overhead_test
> is needed for the build.
> 
> rm -f test/cipher_overhead_test
> ${LDCMD:-cc} -Wa,--noexecstack -Qunused-arguments -Wall -O3 -L.    -o test/cipher_overhead_test test/cipher_overhead_test.o  -lssl test/libtestutil.a -lcrypto  
> ld: error: undefined symbol: ssl3_num_ciphers
> >>> referenced by cipher_overhead_test.c
> >>>               test/cipher_overhead_test.o:(cipher_overhead)
> 
> ld: error: undefined symbol: ssl3_get_cipher
> >>> referenced by cipher_overhead_test.c
> >>>               test/cipher_overhead_test.o:(cipher_overhead)
> 
> ld: error: undefined symbol: ssl_cipher_get_overhead
> >>> referenced by cipher_overhead_test.c
> >>>               test/cipher_overhead_test.o:(cipher_overhead)
> cc: error: linker command failed with exit code 1 (use -v to see invocation)
> *** Error 1 in . (Makefile:8181 'test/cipher_overhead_test')
> *** Error 1 in [[path removed]]/openssl-1.1.1d (Makefile:174 'all')
> 
-- 
Richard Levitte         levitte at openssl.org
OpenSSL Project         http://www.openssl.org/~levitte/


More information about the openssl-users mailing list