Re: Unable to compile Freetds with OpenSSL 1.1.X
nik mur <[email protected]> Mon, 13 Feb 2017 07:53:36 +0000
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <CAC9_r5OZjS4wy=LxArCyZMgrfcsgor6Z2qdND1Cq3dSsBGmX0Q@mail.gmail.com> |
Seems like I will be stuck on OpenSSL 1.0.X for a while. On Sat, Feb 11, 2017 at 7:40 PM Frediano Ziglio <[email protected]> wrote: > 2017-02-11 5:11 GMT+00:00 nik mur <[email protected]>: > > This my first message to the list, very happy to do so. > > > > While compiling freetds with OpenSSL 1.1.0d I am receiving the following > > errors which I am unable to debug or make sense even after googling for > > hours > > > > Here is the error string (i am really sorry but the error string is very > > long) : > > > > tls.c: In function 'tds_pull_func_login': > > tls.c:83: error: dereferencing pointer to incomplete type > > tls.c: In function 'tds_push_func_login': > > tls.c:114: error: dereferencing pointer to incomplete type > > tls.c: In function 'tds_pull_func': > > tls.c:126: error: dereferencing pointer to incomplete type > > tls.c: In function 'tds_push_func': > > tls.c:149: error: dereferencing pointer to incomplete type > > tls.c: In function 'tds_ssl_ctrl_login': > > tls.c:551: error: dereferencing pointer to incomplete type > > --------------------------------------------------------------- > > tls.c:569: error: variable 'tds_method_login' has initializer but > > incomplete type > > tls.c:571: warning: excess elements in struct initializer > > tls.c:571: warning: (near initialization for 'tds_method_login') > > --------------------------------------------------------------- > > tls.c:580: warning: (near initialization for 'tds_method_login') > > tls.c:583: error: variable 'tds_method' has initializer but incomplete > type > > ---------------------------------------------------------------- > > tls.c: In function 'tds_init_openssl': > > tls.c:611: warning: 'TLSv1_client_method' is deprecated (declared at > > /usr/local/apps/include/openssl/ssl.h:1598) > > tls.c: In function 'check_alt_names': > > tls.c:747: warning: 'ASN1_STRING_data' is deprecated (declared at > > /usr/local/apps/include/openssl/asn1.h:553) > > tls.c: In function 'tds_ssl_init': > > ---------------------------------------------------------------- > > tls.c:887: error: dereferencing pointer to incomplete type > > tls.c:887: error: 'SSL_ST_OK' undeclared (first use in this function) > > tls.c:887: error: (Each undeclared identifier is reported only once > > tls.c:887: error: for each function it appears in.) > > ---------------------------------------------------------------- > > > > In case if something is wrong with my configure command you can check it > > below : > > > > LDFLAGS="-L$PPS_PATH/lib" CPPFLAGS="-I$PPS_PATH/include" ./configure > > --prefix=$PPS_PATH \ > > --enable-shared \ > > --with-libiconv-prefix=$PPS_PATH \ > > --with-openssl=$PPS_PATH && make && make install >> $LOG 2>&1 > > > > Also you can check my openssl configure command below : > > > > LDFLAGS="-L$PPS_PATH/lib" CPPFLAGS="-I$PPS_PATH/include" ./config > > --prefix=$PPS_PATH \ > > --openssldir=$PPS_PATH/etc/openssl shared && make && make install >> $LOG > > 2>&1 > > > Looks like they decided to entirely break the ABI from 1.0 to 1.1... > Not impossible to solve, just tedious and take some time. One reason I > prefer GnuTLS. > Patches are welcome! > > Frediano > _______________________________________________ > FreeTDS mailing list > [email protected] > http://lists.ibiblio.org/mailman/listinfo/freetds >