[Freeswitch-users] 1.4/master openssl requirement change.

Lawrence Conroy lconroy at insensate.co.uk
Wed Feb 5 03:33:46 MSK 2014


Hi Mike, folks,
 I had wondered about precedence, but it was the same when I previously tried with CFLAGS="-I/usr/local/opt/openssl/include" LDFLAGS="/usr/local/opt/openssl/lib" .configure
In that case, don't the explicit CFLAGS & LDFLAGS exports take precendence?

Re. location -- OK, there are a bunch of them littered around; using a freshly locate.updatedb'd locate, the ones that even might be in the path are:
/usr/lib/libssl.0.9.7.dylib
/usr/lib/libssl.0.9.8.dylib
/usr/lib/libssl.0.9.dylib
/usr/lib/libssl.dylib
+
/usr/local/opt/openssl/lib/libssl.a

and
/usr/lib/libcrypto.0.9.7.dylib
/usr/lib/libcrypto.0.9.8.dylib
/usr/lib/libcrypto.0.9.dylib
/usr/lib/libcrypto.dylib
+
/usr/local/opt/openssl/lib/libcrypto.a

and


/usr/include/openssl/ssl.h
+
/usr/local/opt/openssl/include/openssl/ssl.h

---------

Note that my config.log is slightly different, as it doesn't find the SSL_CTX_set_tlsext_use_srtp symbol
-- which IS in /usr/local/opt/openssl/include/openssl/srtp.h:
int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles);

config.log sez:
configure:23194: checking for openssl
configure:23198: result: yes
configure:23202: checking openssl_CFLAGS
configure:23205: result:  
configure:23208: checking openssl_LIBS
configure:23211: result: -lssl -lcrypto -lz  
configure:23411: checking for SSL_CTX_set_tlsext_use_srtp in -lssl
configure:23436: gcc -o conftest -g -O2 -pipe -no-cpp-precomp -I/usr/local/opt/openssl/include  -pipe -bind_at_load -L/usr/local/opt/openssl/lib conftest.c -lssl  -lssl -lcrypto -lz   -lncurses -ljpeg  >&5
Undefined symbols:
  "_SSL_CTX_set_tlsext_use_srtp", referenced from:
      _main in cc8TlcDz.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
...

Beats me.

all the best,
  Lawrence (who's also off to bed :)

On 4 Feb 2014, at 23:54, Michael Jerris wrote:
> it sounds to me like its finding a system version before the other one.  can you let me know the other locations on your box where the following files are
> 
> libssl.*
> libcrypto.*
> openssl/ssl.h
> 
> also what is in your config.log comparable to the settings below from mine system
> 
> configure:23191: checking for openssl                                                                                                                     
> configure:23195: result: yes                                                                                                                              
> configure:23199: checking openssl_CFLAGS                                                                                                                  
> configure:23202: result:                                                                                                                                  
> configure:23205: checking openssl_LIBS                                                                                                                    
> configure:23208: result: -lssl -lcrypto -lz                                                                                                               
> configure:23408: checking for SSL_CTX_set_tlsext_use_srtp in -lssl                                                                                        
> configure:23442: result: yes                                                                                                                              
> configure:23454: checking for DTLSv1_method in -lssl                                                                                                      
> configure:23488: result: yes                                                                                                                              
> 
> 
> On Feb 4, 2014, at 6:26 PM, Lawrence Conroy <lconroy at insensate.co.uk> wrote:
> 
>> Hi There,
>> I suspect me too.
>> 
>> OS X Snow Leopard (to remove any residual Mavericks questions) on a C2D MBP.
>> NB: I need openssl 101f only because of the new fS requirement so have left the existing system openssl gubbins in /usr/{bin, include,...} & intended to build 101f "off the beaten track" just for fS. I have no interest in webRTC and its webby tree-hugginess, but if 101f's a requirement ... onwards and upwards.
>> 
>> Steps:
>> grabbed fresh fS master as of a few hours ago.
>> grabbed openssl101f. built openssl to put its stuff in /usr/local/opt/openssl (i.e., /usr/local/opt/openssl/bin, /usr/local/opt/openssl/lib, /usr/local/opt/openssl/include/openssl).
>> 
>> in fS, bootstrap.sh, then .configure
>> configure reports it's added "-I/usr/local/opt/openssl/include" and "-L/usr/local/opt/openssl/lib".
>> 
>> However, same complaint: 
>> checking for SSL_CTX_set_tlsext_use_srtp in -lssl... no
>> configure: error: OpenSSL >= 1.0.1e and associaed developement headers required
>> 
>> -------------
>> config.log sez (amongst loads else):
>> configure:23411: checking for SSL_CTX_set_tlsext_use_srtp in -lssl
>> configure:23436: gcc -o conftest -g -O2 -pipe -no-cpp-precomp -I/usr/local/opt/openssl/include  -pipe -bind_at_load -L/usr/local/opt/openssl/lib conftest.c -lssl  -lssl -lcrypto -lz   -lncurses -ljpeg  >&5
>> Undefined symbols:
>> "_SSL_CTX_set_tlsext_use_srtp", referenced from:
>>     _main in cc81KfHG.o
>> ld: symbol(s) not found
>> collect2: ld returned 1 exit status
>> -------------
>> 
>> So ... openssl 101f DID put its stuff in /usr/local/opt/openssl, fS appears to have added the -I and -L to look there, but no joy.
>> 
>> Hence, I *think* this is the same issue. Ideas?
>> 
>> all the best,
>> Lawrence
>> 
>> 
>> On 4 Feb 2014, at 19:20, Anthony Minessale wrote:
>>> You may need to put the variable declarations first and all the command
>>> line switches such as --prefix last.
>>> 
>>> 
>>> 
>>> On Tue, Feb 4, 2014 at 1:09 PM, Tamas Jalsovszky <jalsot at gmail.com> wrote:
>>> 
>>>> Hello,
>>>> 
>>>> I tried this: ./configure --prefix=/opt/freeswitch --enable-sse
>>>> CFLAGS="-I/opt/freeswitch/openssl101f/include"
>>>> LDFLAGS="-L/opt/freeswitch/openssl101f/lib"
>>>> Previously I compiled openssl as it is documented in the wiki and in this
>>>> thread.
>>>> Unfortunately I got:
>>>> checking for openssl... yes
>>>> checking openssl_CFLAGS...
>>>> checking openssl_LIBS... -lssl -lcrypto
>>>> adding "-DHAVE_OPENSSL" to SWITCH_AM_CFLAGS
>>>> checking for SSL_CTX_set_tlsext_use_srtp in -lssl... yes
>>>> checking for DTLSv1_method in -lssl... no
>>>> 
>>>> configure: error: OpenSSL >= 1.0.1e and associaed developement headers
>>>> required
>>>> 
>>>> FS git master (5228e02b19ea3d952d0c476e5aa0f1173b2083e4), Ubuntu 12.04 LTS.
>>>> 
>>>> Is there other trick to build FS master with openssl from source code?
>>>> 
>>>> Regards,
>>>> T.
>>>> 
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>> 
>>>> 
>>>> 
>>>> 
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://wiki.freeswitch.org
>>>> http://www.cluecon.com
>>>> 
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> http://www.freeswitch.org
>>>> 
>>>> 
>>> 
>>> 
>>> -- 
>>> Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬
>>> 
>>>http://freeswitch.org/http://cluecon.com/>>> http://twitter.com/FreeSWITCH
>>> ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
>>> <http://freeswitch.org/g+>*
>>> 
>>> ClueCon Weekly Development Call
>>> ☎ sip:888 at conference.freeswitch.org  ☎ +19193869900
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>> 
>>> 
>>> 
>>> 
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>> 
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>> 
>> 
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>> 
>> 
>> 
>> 
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>> 
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org




Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list