Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jul 2020 22:54:08 -0500
From:      Scott Allendorf <scott-allendorf@uiowa.edu>
To:        multimedia@FreeBSD.org
Subject:   net/liveMedia does not build on 11-STABLE in presence of security/openssl
Message-ID:  <cb3d499d-3dc3-2bbf-0093-2bab18cc4cf8@uiowa.edu>

next in thread | raw e-mail | index | archive | help
--------------ms080604070900050004040801
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

TL;DR: The net/liveMedia port does not appear to pick up the proper=20
includes when building on 11-STABLE when security/openssl is installed.

I have an 11-STABLE system where security/openssl has been made the=20
default (now required by QT) via the following in /etc/make.conf:

	DEFAULT_VERSIONS+=3D      ssl=3Dopenssl

When attempting to build net/liveMedia, it fails with:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
env MAKE_JOBS_UNSAFE=3Dyes make all

=2E..

c++ -otestMP3Streamer -L.  -Wl,-rpath,/usr/local/lib=20
-fstack-protector-strong  testMP3Streamer.o=20
=2E./liveMedia/libliveMedia.so.16.0.1 ../groupsock/libgroupsock.so.1.0.1 =

=2E./BasicUsageEnvironment/libBasicUsageEnvironment.so.0.0.1=20
=2E./UsageEnvironment/libUsageEnvironment.so.1.0.0 -L/usr/local/lib -lssl=
=20
-lcrypto
=2E./liveMedia/libliveMedia.so.16.0.1: undefined reference to=20
`SSLv23_client_method'
=2E./liveMedia/libliveMedia.so.16.0.1: undefined reference to=20
`SSL_library_init'
=2E./liveMedia/libliveMedia.so.16.0.1: undefined reference to=20
`EVP_MD_CTX_destroy'
=2E./liveMedia/libliveMedia.so.16.0.1: undefined reference to=20
`EVP_MD_CTX_create'
c++: error: linker command failed with exit code 1 (use -v to see=20
invocation)
gmake[2]: *** [Makefile:133: testMP3Streamer] Error 1
gmake[2]: Leaving directory '/usr/ports/net/liveMedia/work/live/testProgs=
'
gmake[1]: *** [Makefile:67: all] Error 2
gmake[1]: Leaving directory '/usr/ports/net/liveMedia/work/live'
*** Error code 1

Stop.
make: stopped in /usr/ports/net/liveMedia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

It is correctly attempting to link against the openssl port libraries,=20
but does not appear to have used the port headers while compiling.=20
Those four references have been deprecated by modern versions of openssl =

and the port header files #define these functions to their modern=20
equivalents:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
root@sallendorf:/usr/ports/net/liveMedia # egrep=20
'SSLv23_client_method|SSL_library_init|EVP_MD_CTX_destroy|EVP_MD_CTX_crea=
te'=20
/usr/local/include/openssl/*
/usr/local/include/openssl/evp.h:# define EVP_MD_CTX_create()=20
EVP_MD_CTX_new()
/usr/local/include/openssl/evp.h:# define EVP_MD_CTX_destroy(ctx)=20
EVP_MD_CTX_free((ctx))

=2E..

/usr/local/include/openssl/ssl.h:#define SSLv23_client_method=20
TLS_client_method
/usr/local/include/openssl/ssl.h:#  define SSL_library_init()=20
OPENSSL_init_ssl(0, NULL)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

If I coerce the build to use the headers from the port, the build=20
succeeds.  My workaround was to add the following into /etc/make.conf:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=2Eif ${.CURDIR:M*/net/liveMedia*}
         CFLAGS+=3D        -I${OPENSSLINC}
=2Eendif
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Please let me know if I can provide any additional information and thank =

you for all of your efforts with FreeBSD.

Cheers,

Scott

--=20
Scott C. Allendorf                     Email:  scott-allendorf@uiowa.edu
Senior Systems Administrator           Office:         303A MacLean Hall
CLAS Linux Group                       Voice:             (319) 335-0003
The University of Iowa                 FAX:               (319) 335-3668
Iowa City, Iowa  52242-1419            ICBM:  41 39 37.8 N  91 32 11.5 W


--------------ms080604070900050004040801
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC
CzgwggUgMIIECKADAgECAhEA2xWHd4nMamNtrtYUTxeF4TANBgkqhkiG9w0BAQsFADCBljEL
MAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2Fs
Zm9yZDEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMT4wPAYDVQQDEzVTZWN0aWdvIFJTQSBD
bGllbnQgQXV0aGVudGljYXRpb24gYW5kIFNlY3VyZSBFbWFpbCBDQTAeFw0yMDAyMjQwMDAw
MDBaFw0yMzAyMjMyMzU5NTlaMCoxKDAmBgkqhkiG9w0BCQEWGXNjb3R0LWFsbGVuZG9yZkB1
aW93YS5lZHUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDUm/OxLLHiMTK77N+y
i2mV/H3Sa9qcPN2gHlrYbXitwWF3h0f0M/eb8dm2gUQQ7HPpHDQYDCydyroUK0ERJjhuhgRM
LbCgKlSpKMkcJaMlmgBWndB5JJLEUHRVVC9vJZ0shtyWub38psm8MISFVN1aArIvrNItx/Uz
QjzI9b7RSKmz75Z2/VagrhIjzYm2RCsCVvHA6/9NaQ9rTSb/GmLM1xQabDJMtR8D8GXDKo8r
kW9BlRd6d1HqKzPdP+s16TBx1YI4vTsdVpEmTAYh0XuMf8ClW6xhZHjl2SMJ4A7uJKqFjOTJ
Og2G1OS8PyBX+lIq3eW9vaI7SOtMdPdtR0hfAgMBAAGjggHSMIIBzjAfBgNVHSMEGDAWgBQJ
wPL8C9qU21/+K9+omULPyeCtADAdBgNVHQ4EFgQU+cohltqWV6O0oxUTfgoQ2M8WsacwDgYD
VR0PAQH/BAQDAgWgMAwGA1Ud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BbMuYFv0FKRrqSpEy9PXVhX71WBUgD0YaLlAC
MWBF6ulIqXiFCsK+lC/oBRugvKxJAK/j9tFtfkGyiNm2QbVZKAI67uOojNsSOprTb+X6kmo2
egdNY6W/a+zEHIFNKHFoipgSYEvbyOhUYQEm+bpsO3ZMMasAygf8ozEEbI9JvPc5ChlrGgZ9
e34LePziQFrWtyjVSwAAAAAAAA==

--------------ms080604070900050004040801--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb3d499d-3dc3-2bbf-0093-2bab18cc4cf8>