#460 Problem compiling with SSLv2

1.7.x
closed-fixed
saghul
core (110)
5
2012-01-13
2012-01-13
Muhammad Shahzad
No

I am getting linker errors while compiling opensips 1.7.1 latest stable release with svn revision 8659.

tls/tls_init.c: In function ‘init_ssl_methods’:
tls/tls_init.c:323:2: warning: implicit declaration of function ‘SSLv2_client_method’ [-Wimplicit-function-declaration]
tls/tls_init.c:323:37: warning: assignment makes pointer from integer without a cast [enabled by default]
tls/tls_init.c:324:2: warning: implicit declaration of function ‘SSLv2_server_method’ [-Wimplicit-function-declaration]
tls/tls_init.c:324:37: warning: assignment makes pointer from integer without a cast [enabled by default]
tls/tls_init.c:325:2: warning: implicit declaration of function ‘SSLv2_method’ [-Wimplicit-function-declaration]
tls/tls_init.c:325:33: warning: assignment makes pointer from integer without a cast [enabled by default]
tls/tls_init.c:327:37: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
tls/tls_init.c:328:37: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
tls/tls_init.c:329:33: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
tls/tls_init.c:331:37: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
tls/tls_init.c:332:37: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
tls/tls_init.c:333:33: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
tls/tls_init.c:335:38: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
tls/tls_init.c:336:38: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
tls/tls_init.c:337:34: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
Compiling tls/tls_server.c
Linking opensips
tls/tls_init.o: In function `init_ssl_methods':
/usr/src/svn-src/opensips_1_7/tls/tls_init.c:323: undefined reference to `SSLv2_client_method'
/usr/src/svn-src/opensips_1_7/tls/tls_init.c:324: undefined reference to `SSLv2_server_method'
/usr/src/svn-src/opensips_1_7/tls/tls_init.c:325: undefined reference to `SSLv2_method'
collect2: ld returned 1 exit status
make: *** [opensips] Error 1

I am using Ubuntu server 11.10 64-bit edition.

Feel free to ask for more info as needed.

Discussion

  • Just confirmed i have libssl-dev installed. Same opensips version installs correctly without any problem on debian 6.0 32-bit server. But not working on ubuntu 11.10 64-bit server.

     
  • saghul
    saghul
    2012-01-13

    Hi,

    Debian (and I guess Ubuntu) bundle OpenSSL >= 1.0 without SSL2 support in. I fixed this in trunk but forgot to do the backport for 1.7.

    I'll backport the fix to 1.7.

     
  • Can you fix it today? Since i have to finalize a production deployment today.

    Many thanks in advance.

     
    • assigned_to: nobody --> saghul
     
  • saghul
    saghul
    2012-01-13

    Fixed in revision 8660 on the 1.7 branch.

     
  • saghul
    saghul
    2012-01-13

    • status: open --> closed-fixed