Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 622234

Summary: =net-misc/asterisk-13.15.1 build fails with libressl
Product: Gentoo Linux Reporter: James Cloos <cloos>
Component: Current packagesAssignee: Tony Vroon (RETIRED) <chainsaw>
Status: RESOLVED FIXED    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 561854    

Description James Cloos 2017-06-19 17:34:23 UTC
At the final call to ld(1) to generate the asterisk executable, one gets:

tcptls.o: In function `tcptls_stream_close':
/var/tmp/portage/net-misc/asterisk-13.15.1/work/asterisk-13.15.1/main/tcptls.c:404: undefined reference to `SSL_is_server'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:331: asterisk] Error 1

The current tip of asterisk's 13 branch has:

#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
                        if (!SSL_is_server(stream->ssl)) {
#else
                        if (!stream->ssl->server) {
#endif

which would avoid that.  That addition is part of their git commit 6a64f65fe6fee96702668bdd3344233f19232850.
Comment 1 James Cloos 2017-06-19 17:35:45 UTC
Add block for the libressl tracker bug.
Comment 2 Tony Vroon (RETIRED) gentoo-dev 2017-09-22 14:41:05 UTC
If tip had it at 13.15.1 time, it is not unreasonable to assume it made it into 13.7.2; has it?
Comment 3 Aaron Bauman (RETIRED) gentoo-dev 2018-04-18 00:29:40 UTC
net-misc/asterisk-13.19.0-r1 builds fine with libressl-2.6.4.  Please re-test.
Comment 4 James Cloos 2018-04-18 20:58:49 UTC
Yes, it has gotten fixed in the mean time.