foss-for-synopsys-dwc-arc-processors / buildroot

The development tree for Buildroot support for the Synopsys DesignWare ARC processor family
https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/blob/arc-dev/README.md
Other
7 stars 2 forks source link

package/lftp: Build fails #23

Closed shahab-vahedi closed 2 years ago

shahab-vahedi commented 2 years ago

On an attempt to build the lftp-4.9.2, the process fails with:

lftp_ssl.cc: In static member function ‘static int lftp_ssl_openssl::verify_crl(X509_STORE_CTX*)’:
lftp_ssl.cc:1164:10: error: ‘X509_STORE_CTX_get_by_subject’ was not declared in this scope; did you mean ‘X509_STORE_get_by_subject’?
 1164 |     rc = X509_STORE_CTX_get_by_subject(store_ctx, X509_LU_CRL, subject, obj);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |          X509_STORE_get_by_subject
make[4]: *** [Makefile:2370: liblftp_network_la-lftp_ssl.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
ftpclass.cc: In member function ‘void Ftp::CheckResp(int)’:
ftpclass.cc:4377:16: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘union sockaddr_u’; use assignment or value-initialization instead [-Wclass-memaccess]
 4377 |          memset(&conn->data_sa,0,sizeof(conn->data_sa));
      |          ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from Resolver.h:27,
                 from NetAccess.h:24,
                 from ftpclass.h:26,
                 from ftpclass.cc:31:
network.h:67:7: note: ‘union sockaddr_u’ declared here
   67 | union sockaddr_u
      |       ^~~~~~~~~~

The only place on the net that I found with the same error was one of buildroot's autobuilds itself. The buildroot HEAD is package/uftrace: bump to version 0.10 (github) and here comes the configurations:

BR2_arcle=y
BR2_archs38=y
BR2_ENABLE_DEBUG=y
BR2_DEBUG_3=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_PATH="/install/arcgnu/gl_bingdb"
BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_14=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
BR2_TOOLCHAIN_EXTERNAL_HAS_SSP_STRONG=y
# BR2_TOOLCHAIN_EXTERNAL_INET_RPC is not set
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_TARGET_GENERIC_HOSTNAME="arcv2"
BR2_ROOTFS_DEVICE_TABLE="/tools/buildroot/device_table.txt"
BR2_SYSTEM_DHCP="eth0"
BR2_ROOTFS_OVERLAY="/tools/buildroot/overlay/qemu"
BR2_PACKAGE_STRACE=y
BR2_PACKAGE_LIBRESSL=y
BR2_PACKAGE_NCURSES_WCHAR=y
BR2_PACKAGE_NCURSES_TARGET_PROGS=y
BR2_PACKAGE_NCURSES_ADDITIONAL_TERMINFO="t/tmux"
BR2_PACKAGE_LFTP=y
BR2_PACKAGE_OPENSSH=y
BR2_TARGET_ROOTFS_CPIO=y
BR2_PACKAGE_HOST_KMOD=y