From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28] helo=dude02.lab.pengutronix.de) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jGdPU-00078c-2M for ptxdist@pengutronix.de; Tue, 24 Mar 2020 07:51:36 +0100 Received: from mol by dude02.lab.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1jGdPT-00065Z-QG for ptxdist@pengutronix.de; Tue, 24 Mar 2020 07:51:35 +0100 Date: Tue, 24 Mar 2020 07:51:35 +0100 From: Michael Olbrich Message-ID: <20200324065135.GA27006@pengutronix.de> References: <206eea0820414b698d608b079095017e@se.bosch.com> <2263958.67Rj0McoCF@ada> <5999b0e6ebfa421d924d4c3e028fe73b@se.bosch.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <5999b0e6ebfa421d924d4c3e028fe73b@se.bosch.com> Subject: Re: [ptxdist] curl does not compile with SSL support List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de On Mon, Mar 23, 2020 at 10:48:59AM +0000, Effert Sascha (CM/EBV3) wrote: > I replaced libcurl.in and libcurl.make with the actual master containing = that commit. But it ends up with the same error. > = > Even before ptxdist has set --with-default-ssl-backend=3Dssl already. I p= rinted out all parameters passed to configure and I got following call (sor= ry, it is quite long): Before the commit mentioned by Alex, --with-default-ssl-backend was never used in PTXdist upstream and with the latest version it uses --with-default-ssl-backend=3Dopenssl (with openssl not ssl). Michael > configure --prefix=3D/usr --sysconfdir=3D/etc --localstatedir=3D/var --li= bdir=3D/usr/lib --build=3Dx86_64-host-linux-gnu --host=3Darm-v7a-linux-gnue= abihf --disable-debug --enable-optimize --disable-warnings --disable-werror= --disable-curldebug --enable-symbol-hiding --enable-hidden-symbols --disab= le-ares --enable-rt --disable-code-coverage --enable-largefile --enable-htt= p --enable-ftp --disable-file --disable-ldap --disable-ldaps --disable-rtsp= --enable-proxy --disable-dict --disable-telnet --disable-tftp --disable-po= p3 --disable-imap --disable-smb --disable-smtp --disable-gopher --disable-m= anual --enable-libcurl-option --disable-libgcc --disable-ipv6 --enable-open= ssl-auto-load-config --disable-versioned-symbols --enable-threaded-resolver= --enable-pthreads --disable-verbose --disable-sspi --disable-crypto-auth -= -disable-ntlm-wb --enable-tls-srp --enable-unix-sockets --disable-cookies -= -enable-http-auth --disable-doh --disable-mime --enable-dateparse --enable-= netrc --enable-progress-meter --disable-dnsshuffle --disable-alt-svc --with= -zlib=3D/home/vagrant/repositories/DAIMLER_CTP_19.01.S.033/platform/bsp/dai= mler_ctp/platform-acup/sysroot-target --without-brotli --without-gssapi --w= ith-default-ssl-backend=3Dssl --without-winssl --without-schannel --without= -darwinssl --without-secure-transport --without-amissl --with-ssl=3D/home/v= agrant/repositories/DAIMLER_CTP_19.01.S.033/platform/bsp/daimler_ctp/platfo= rm-acup/sysroot-target/usr --with-random=3D/dev/urandom --without-gnutls --= without-mbedtls --without-cyassl --without-wolfssl --without-mesalink --wit= hout-nss --with-ca-bundle=3D/etc/ssl/certs/ca-certificates.crt --with-ca-pa= th=3Dno --without-ca-fallback --without-libpsl --without-libmetalink --with= out-libssh2 --without-libssh --without-librtmp --without-winidn --without-l= ibidn2 --without-nghttp2 --without-zsh-functions-dir --without-fish-functio= ns-dir > = > Mit freundlichen Gr=FC=DFen / Best regards > = > Sascha Effert > = > Car Multimedia, Engineering BBM CM VC 3 (CM/EBV3) > Robert Bosch GmbH | Postfach | 31132 Hildesheim | GERMANY | www.bosch.com > Tel. +49 5121 49-4512 | Mobil +49 1522 2560174 | Sascha.Effert@se.bosch.c= om > = > Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart, HRB 14000; > Aufsichtsratsvorsitzender: Franz Fehrenbach; Gesch=E4ftsf=FChrung: Dr. Vo= lkmar Denner, = > Prof. Dr. Stefan Asenkerschbaumer, Dr. Michael Bolle, Dr. Christian Fisch= er, Dr. Stefan Hartung,
Dr. Markus Heyn, Harald Kr=F6ger, Christoph K= =FCbel, Rolf Najork, Uwe Raschke, Peter Tyroller > = > = > -----Urspr=FCngliche Nachricht----- > Von: Alexander Dahl = > Gesendet: Montag, 23. M=E4rz 2020 11:01 > An: ptxdist@pengutronix.de > Cc: Effert Sascha (CM/EBV3) > Betreff: Re: [ptxdist] curl does not compile with SSL support > = > Hello Sascha, > = > Am Montag, 23. M=E4rz 2020, 09:35:58 CET schrieb Effert Sascha (CM/EBV3): > > Hi, > > = > > I am using ptxdist 2019.01.0 in a project. In the project we currently = > > use libcurl without SSL support. I changesd this using menuconfig, so = > > libcurl should now compile with http, ftp and ssl support (use ca-certi= ficates). > > Openssl is also available. Compiling fails thereafter in target = > > libcurl.prepare with following error: > = > > checking for OpenSSL headers version... 1.0.2 - 0x1000211fL checking = > > for OpenSSL library version... 1.0.2 checking for OpenSSL headers and = > > library versions matching... yes checking for SRP_Calc_client_key in = > > -lcrypto... yes > > configure: built with one SSL backend > > configure: error: Default SSL backend ssl not enabled! > > /usr/local/lib/ptxdist-2019.01.0/rules/post/ptxd_make_world_prepare.mak= e:21: > > recipe for target > > '/home/vagrant/repositories/DAIMLER_CTP_19.01.S.033/platform/bsp/daiml > > er_ct p/platform-acup/state/libcurl.prepare' failed > make: *** > > [/home/vagrant/repositories/DAIMLER_CTP_19.01.S.033/platform/bsp/daiml > > er_ct p/platform-acup/state/libcurl.prepare] Error 1 > > = > > = > > Can someone give me a hint what I can do? I searched google and the = > > mailing list, but without any success. To give more information here = > > the output of configure regarding SSL: > = > I would try looking at changes to rules/libcurl.* in later versions of pt= xdist. This commit looks promising: 0d75d1ce80e3e8f5fe66934c0b945e4aad53c45b > = > = > > = > > checking if GSS-API support is requested... no checking whether to = > > enable Windows native SSL/TLS (Windows native builds only)... no > checking whether to enable Secure Transport... no > > checking whether to enable Amiga native SSL/TLS (AmiSSL)... no > > configure: PKG_CONFIG_LIBDIR will be set to = > > "/home/vagrant/repositories/DAIMLER_CTP_19.01.S.033/platform/bsp/daiml > > er_ct p/platform-acup/sysroot-target/usr/lib/pkgconfig" > checking for openssl > > options with pkg-config... found > > configure: pkg-config: SSL_LIBS: "-lssl -lcrypto" > > configure: pkg-config: SSL_LDFLAGS: "" > > configure: pkg-config: SSL_CPPFLAGS: "" > > checking for HMAC_Update in -lcrypto... yes checking for SSL_connect = > > in -lssl... yes checking openssl/x509.h usability... yes checking = > > openssl/x509.h presence... yes checking for openssl/x509.h... yes = > > checking openssl/rsa.h usability... yes checking openssl/rsa.h = > > presence... yes checking for openssl/rsa.h... yes checking = > > openssl/crypto.h usability... yes checking openssl/crypto.h = > > presence... yes checking for openssl/crypto.h... yes checking = > > openssl/pem.h usability... yes checking openssl/pem.h presence... yes = > > checking for openssl/pem.h... yes checking openssl/ssl.h usability... = > > yes checking openssl/ssl.h presence... yes checking for = > > openssl/ssl.h... yes checking openssl/err.h usability... yes checking = > > openssl/err.h presence... yes checking for openssl/err.h... yes = > > checking for RAND_egd... yes checking for SSLv2_client_method... yes = > > checking for OpenSSL_version... no checking for BoringSSL... no = > > checking for libressl... no checking for OpenSSL headers version... = > > 1.0.2 - 0x1000211fL checking for OpenSSL library version... 1.0.2 = > > checking for OpenSSL headers and library versions matching... yes = > > checking for SRP_Calc_client_key in -lcrypto... yes > > configure: built with one SSL backend > > configure: error: Default SSL backend ssl not enabled! > > make: *** > > [/home/vagrant/repositories/DAIMLER_CTP_19.01.S.033/platform/bsp/daiml > > er_ct p/platform-acup/state/libcurl.prepare] Error 1 > > /usr/local/lib/ptxdist-2019.01.0/rules/post/ptxd_make_world_prepare.ma > > ke:21 > > : recipe for target > > '/home/vagrant/repositories/DAIMLER_CTP_19.01.S.033/platform/bsp/daiml > > er_ct p/platform-acup/state/libcurl.prepare' failed > = > Same error as above. Perhaps curl needs to have --with-default-ssl-backen= d=3D passed to ./configure ? > = > HTH & Greets > Alex > = > = > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de > = -- = Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de