curl-library
Re: curl 7.56.0 build problems
Date: Sun, 12 Nov 2017 16:02:28 +0100
On 12/11/2017 15:29, Patrick Monnerat via curl-library wrote:
>
> On 11/12/2017 03:19 PM, Michael Felt wrote:
>> On 12/11/2017 14:44, Patrick Monnerat via curl-library wrote:
>>>
>>> The problem has probably been introduced by commit
>>> https://github.com/curl/curl/commit/a243ce7ab289f0e7bb8a6b90b40fcf8fa62428bf.
>>> Maybe Johannes can help?
>>
>> I suspect not - as I was never able to build 7.55 either. But I'll
>> try 7.55 and see how that goes.
>>
> 7.55.0 release date is Aug 9 2017 (see
> https://curl.haxx.se/docs/releases.html) while commit date is Jul 28
> 2017. Therefore 7.55.0 contains the commit.
"Beyond my pay grade :)" - My summary of the current situation compared
with 7.54.1
root_at_x064:[/data/prj/aixtools/curl/curl-7.54.1]rm Makefile
root_at_x064:[/data/prj/aixtools/curl/curl-7.54.1]buildaix
--with-ca-bundle=/var/ssl/cacert.pem
VRMF
xlc is /usr/vacpp/bin/xlc
+ CPPFLAGS="-I/opt/include" CFLAGS="-I/opt/include -O2 -qmaxmem=-1
-qarch=pwr5"\
./configure\
--prefix=/opt \
--sysconfdir=/var/curl/etc\
--sharedstatedir=/var/curl/com\
--localstatedir=/var/curl\
--mandir=/usr/share/man\
--infodir=/opt/share/info/curl
--with-ca-bundle=/var/ssl/cacert.pem\
> .buildaix/configure.out
configure: WARNING: Continuing even with errors mentioned immediately
above this line.
configure: WARNING: Cannot find libraries for LDAP support: LDAP disabled
configure: WARNING: libpsl was not found
configure: WARNING: Cannot find libraries for IDN support: IDN disabled
configure: WARNING: Continuing even with errors mentioned immediately
above this line.
+ make > .buildaix/make.out
Warning: compression requested but Gzip is not available
+ make install DESTDIR=/var/aixtools/aixtools/curl/7.54.1.0 >
.buildaix/install.out
libtool: warning: remember to run 'libtool --finish /opt/lib'
libtool: warning: '../lib/libcurl.la' has not been installed in '/opt/lib'
+ mkinstallp.ksh /var/aixtools/aixtools/curl/7.54.1.0 >
.buildaix/mkinstallp.out
==============================
aixtools.curl:aixtools.curl.man.en_US:7.54.1.0::I:T:::::N:aixtools curl
man pages::::0::
aixtools.curl:aixtools.curl.rte:7.54.1.0::I:T:::::N:aixtools curl
12-Nov-2017::::0::
aixtools.curl:aixtools.curl.share:7.54.1.0::I:T:::::N:aixtools curl
universal files::::0::
==============================
root_at_x064:[/data/prj/aixtools/curl/curl-7.57.0]buildaix
--with-ca-bundle=/var/ssl/cacert.pem
VRMF
xlc is /usr/vacpp/bin/xlc
+ CPPFLAGS="-I/opt/include" CFLAGS="-I/opt/include -O2 -qmaxmem=-1
-qarch=pwr5"\
./configure\
--prefix=/opt \
--sysconfdir=/var/curl/etc\
--sharedstatedir=/var/curl/com\
--localstatedir=/var/curl\
--mandir=/usr/share/man\
--infodir=/opt/share/info/curl
--with-ca-bundle=/var/ssl/cacert.pem\
> .buildaix/configure.out
configure: WARNING: Continuing even with errors mentioned immediately
above this line.
configure: WARNING: Cannot find libraries for LDAP support: LDAP disabled
configure: WARNING: libpsl was not found
configure: WARNING: Cannot find libraries for IDN support: IDN disabled
configure: WARNING: Continuing even with errors mentioned immediately
above this line.
+ make > .buildaix/make.out
"Makefile", line 3808: make: 1254-055 Dependency line needs colon or
double colon operator.
"Makefile", line 3809: make: 1254-055 Dependency line needs colon or
double colon operator.
"Makefile", line 3810: make: 1254-055 Dependency line needs colon or
double colon operator.
"Makefile", line 3811: make: 1254-055 Dependency line needs colon or
double colon operator.
"Makefile", line 3813: make: 1254-055 Dependency line needs colon or
double colon operator.
"Makefile", line 3814: make: 1254-055 Dependency line needs colon or
double colon operator.
"Makefile", line 3815: make: 1254-055 Dependency line needs colon or
double colon operator.
"Makefile", line 3816: make: 1254-055 Dependency line needs colon or
double colon operator.
"Makefile", line 3817: make: 1254-055 Dependency line needs colon or
double colon operator.
"Makefile", line 3818: make: 1254-055 Dependency line needs colon or
double colon operator.
"Makefile", line 3819: make: 1254-055 Dependency line needs colon or
double colon operator.
"Makefile", line 3822: make: 1254-055 Dependency line needs colon or
double colon operator.
"Makefile", line 3823: make: 1254-055 Dependency line needs colon or
double colon operator.
"Makefile", line 3824: make: 1254-055 Dependency line needs colon or
double colon operator.
"Makefile", line 3826: make: 1254-055 Dependency line needs colon or
double colon operator.
"Makefile", line 3862: make: 1254-055 Dependency line needs colon or
double colon operator.
make: 1254-058 Fatal errors encountered -- cannot continue.
make: 1254-004 The error code from the last command is 1.
Stop.
make returned an error
## cleanup Makefile (delete new (optional) stuff)
~
"Makefile" 3783 lines, 313115 characters
root_at_x064:[/data/prj/aixtools/curl/curl-7.57.0/lib]make V=1
libcurl_la-http_ntlm.lo
source='http_ntlm.c' object='libcurl_la-http_ntlm.lo'
libtool=yes DEPDIR=.deps depmode=xlc /bin/sh ../depcomp /bin/sh
../libtool --tag=CC --mode=compile xlc_r -DHAVE_CONFIG_H -I../include
-I../lib -I../lib -DBUILDING_LIBCURL -I/opt/include -qthreaded
-qnoansialias -qhalt=e -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 -c
-o libcurl_la-http_ntlm.lo `test -f 'http_ntlm.c' || echo './'`http_ntlm.c
libtool: compile: xlc_r -DHAVE_CONFIG_H -I../include -I../lib -I../lib
-DBUILDING_LIBCURL -I/opt/include -qthreaded -qnoansialias -qhalt=e
-I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 -c http_ntlm.c
-Wp,-qmakedep=gcc,-MF.deps/libcurl_la-http_ntlm.TPlo -DPIC -o
.libs/libcurl_la-http_ntlm.o
"/usr/include/openssl/crypto.h", line 518.44: 1506-275 (S) Unexpected
text free_func encountered.
"/usr/include/openssl/crypto.h", line 523.47: 1506-275 (S) Unexpected
text free_func encountered.
"/usr/include/openssl/asn1.h", line 925.46: 1506-275 (S) Unexpected text
free_func encountered.
"/usr/include/openssl/asn1.h", line 1079.49: 1506-275 (S) Unexpected
text free_func encountered.
"/usr/include/openssl/objects.h", line 1009.31: 1506-275 (S) Unexpected
text free_func encountered.
"/usr/include/openssl/ec.h", line 858.41: 1506-275 (S) Unexpected text
free_func encountered.
"/usr/include/openssl/ec.h", line 870.44: 1506-275 (S) Unexpected text
free_func encountered.
make: 1254-004 The error code from the last command is 1.
##########
Back in 7.54.1 - just run the same compile command (now that both are
in-line)
root_at_x064:[/data/prj/aixtools/curl/curl-7.54.1/lib]xlc_r -DHAVE_CONFIG_H
-I../include -I../lib -I../lib -DBUILDING_LIBCURL -I/opt/include
-qthreaded -qnoansialias -qhalt=e -I/opt/include -O2 -qmaxmem=-1
-qarch=pwr5 -c http_ntlm.c
-Wp,-qmakedep=gcc,-MF.deps/libcurl_la-http_ntlm.TPlo -DPIC -o
.libs/libcurl_la-http_ntlm.o
root_at_x064:[/data/prj/aixtools/curl/curl-7.54.1/lib]
##########
As the "system" files are unchanged - it must be something different in
curl.
Maybe this specific diff gives you some ideas on where I can look further.
michael_at_x071:[/data/prj/aixtools/curl]diff -u
curl-7.54.1/lib/http_ntlm.c curl-7.57.0/lib/http_ntlm.c
--- curl-7.54.1/lib/http_ntlm.c 2017-02-21 07:09:13 +0000
+++ curl-7.57.0/lib/http_ntlm.c 2017-11-12 14:39:29 +0000
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel_at_haxx.se>, et al.
+ * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel_at_haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -37,11 +37,14 @@
#include "sendf.h"
#include "strcase.h"
#include "http_ntlm.h"
+#include "curl_ntlm_core.h"
#include "curl_ntlm_wb.h"
#include "vauth/vauth.h"
#include "url.h"
-#if defined(USE_NSS)
+/* SSL backend-specific #if branches in this file must be kept in the order
+ documented in curl_ntlm_core. */
+#if defined(NTLM_NEEDS_NSS_INIT)
#include "vtls/nssg.h"
#elif defined(USE_WINDOWS_SSPI)
#include "curl_sspi.h"
@@ -129,7 +132,7 @@
DEBUGASSERT(conn);
DEBUGASSERT(conn->data);
-#ifdef USE_NSS
+#if defined(NTLM_NEEDS_NSS_INIT)
if(CURLE_OK != Curl_nss_force_init(conn->data))
return CURLE_OUT_OF_MEMORY;
#endif
@@ -170,8 +173,8 @@
case NTLMSTATE_TYPE1:
default: /* for the weird cases we (re)start here */
/* Create a type-1 message */
- result = Curl_auth_create_ntlm_type1_message(userp, passwdp, ntlm,
&base64,
- &len);
+ result = Curl_auth_create_ntlm_type1_message(conn->data, userp,
passwdp,
+ ntlm, &base64, &len);
if(result)
return result;
> -------------------------------------------------------------------
> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
> Etiquette: https://curl.haxx.se/mail/etiquette.html
>
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-11-12