tst2005googlecode / umurmur

Automatically exported from code.google.com/p/umurmur
1 stars 0 forks source link

Support for PolarSSL 1.2x Feature Request #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install PolarSSL 1.2.3
2. Extract umurmur
3. configure
4. make

What is the expected output? What do you see instead?
Expect make to complete with no errors.
===>  Building for umurmur-0.2.10
gmake  all-recursive
gmake[1]: Entering directory `/usr/ports/audio/umurmur/work/umurmur-0.2.10'
Making all in src
gmake[2]: Entering directory `/usr/ports/audio/umurmur/work/umurmur-0.2.10/src'
clang -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include  -O2 -pipe 
-fno-strict-aliasing -MT ssl.o -MD -MP -MF .deps/ssl.Tpo -c -o ssl.o ssl.c
ssl.c:51:5: error: use of undeclared identifier 'SSL_EDH_RSA_AES_256_SHA'
    SSL_EDH_RSA_AES_256_SHA,
    ^
ssl.c:52:5: error: use of undeclared identifier 'SSL_EDH_RSA_CAMELLIA_256_SHA'
    SSL_EDH_RSA_CAMELLIA_256_SHA,
    ^
ssl.c:53:5: error: use of undeclared identifier 'SSL_EDH_RSA_DES_168_SHA'
    SSL_EDH_RSA_DES_168_SHA,
    ^
ssl.c:54:5: error: use of undeclared identifier 'SSL_RSA_AES_256_SHA'
    SSL_RSA_AES_256_SHA,
    ^
ssl.c:55:5: error: use of undeclared identifier 'SSL_RSA_CAMELLIA_256_SHA'
    SSL_RSA_CAMELLIA_256_SHA,
    ^
ssl.c:56:5: error: use of undeclared identifier 'SSL_RSA_AES_128_SHA'
    SSL_RSA_AES_128_SHA,
    ^
ssl.c:57:5: error: use of undeclared identifier 'SSL_RSA_CAMELLIA_128_SHA'
    SSL_RSA_CAMELLIA_128_SHA,
    ^
ssl.c:58:5: error: use of undeclared identifier 'SSL_RSA_DES_168_SHA'
    SSL_RSA_DES_168_SHA,
    ^
ssl.c:59:5: error: use of undeclared identifier 'SSL_RSA_RC4_128_SHA'
    SSL_RSA_RC4_128_SHA,
    ^
ssl.c:60:5: error: use of undeclared identifier 'SSL_RSA_RC4_128_MD5'
    SSL_RSA_RC4_128_MD5,
    ^
ssl.c:173:25: error: no member named 'peer_cert' in 'struct _ssl_context'; did
      you mean 'peer_cn'?
        x509_cert *cert = ssl->peer_cert;
                               ^~~~~~~~~
                               peer_cn
/usr/local/include/polarssl/ssl.h:483:17: note: 'peer_cn' declared here
    const char *peer_cn;                /*!<  expected peer CN        */
                ^
ssl.c:173:13: warning: incompatible pointer types initializing 'x509_cert *'
      (aka 'struct _x509_cert *') with an expression of type 'const char *'
      [-Wincompatible-pointer-types]
        x509_cert *cert = ssl->peer_cert;
                   ^      ~~~~~~~~~~~~~~
ssl.c:174:12: error: no member named 'peer_cert' in 'struct _ssl_context'; did
      you mean 'peer_cn'?
        if (!ssl->peer_cert) {
                  ^~~~~~~~~
                  peer_cn
/usr/local/include/polarssl/ssl.h:483:17: note: 'peer_cn' declared here
    const char *peer_cn;                /*!<  expected peer CN        */
                ^
ssl.c:210:29: error: too many arguments to function call, expected 2, have 4
    ssl_set_session(ssl, 0, 0, ssn);
    ~~~~~~~~~~~~~~~         ^~~~~~
/usr/local/include/polarssl/ssl.h:717:1: note: 'ssl_set_session' declared here
void ssl_set_session( ssl_context *ssl, const ssl_session *session );
^
1 warning and 13 errors generated.
gmake[2]: *** [ssl.o] Error 1
gmake[2]: Leaving directory `/usr/ports/audio/umurmur/work/umurmur-0.2.10/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/audio/umurmur/work/umurmur-0.2.10'
gmake: *** [all] Error 2
*** [do-build] Error code 1

Stop in /usr/ports/audio/umurmur.

What version of the product are you using? On what operating system?
umurmur-0.2.10
FreeBSD 10.0-CURRENT amd64

Please provide any additional information below.
This may be a non-trivial amount of work. 

PolarSSL API
https://polarssl.org/api/

PolarSSL changelog:
https://raw.github.com/polarssl/polarssl/fb1ba781b398d39f4444515381babcc9e5a8dcd
2/ChangeLog

Hiawatha 8.6 gained PolarSSL 1.2x support since 8.5. 
http://ftp7.freebsd.org/sites/ftp.freebsd.org/pub/FreeBSD/distfiles/hiawatha-8.5
.tar.gz
http://ftp7.freebsd.org/sites/ftp.freebsd.org/pub/FreeBSD/distfiles/hiawatha-8.6
.tar.gz

Original issue reported on code.google.com by brac...@gmail.com on 5 Dec 2012 at 3:58

GoogleCodeExporter commented 9 years ago
Hi and thanks for the report. The frequent PolarSSL API changes are a bit of a 
nuisance... I added support for 1.2.x and pushed it to GitHub:
https://github.com/fatbob313/umurmur/commit/5ae05ac1f347fcbdcc73aadf52d6a56c82a5
0e2e

Original comment by fatbob.s...@gmail.com on 5 Dec 2012 at 9:07