1.1.1d build failure with no-shared

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

1.1.1d build failure with no-shared

Claus Assmann
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')
Reply | Threaded
Open this post in threaded view
|

Re: 1.1.1d build failure with no-shared

Richard Levitte - VMS Whacker-2
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         [hidden email]
OpenSSL Project         http://www.openssl.org/~levitte/
Reply | Threaded
Open this post in threaded view
|

Re: 1.1.1d build failure with no-shared

Claus Assmann
On Sat, Nov 23, 2019, Richard Levitte wrote:
> You don't happen to have a libcrypto.so lying around in your build
> directory?

That was probably be the (my) mistake, sorry for the false alarm
(I cannot reproduce the problem in a setup where I just untar'ed
the source code).

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

At least something good came out of this :-)

Thanks.