pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Rust amd64 build failure.



On Wed, 5 Jul 2023 at 10:47, pin <voidpin%protonmail.com@localhost> wrote:
>
> It was merged yesterday. Sync your wip tree

I did, this time I just got:
....
  = note: ld: warning: libssl.so.15, needed by
/usr/pkgsrc/wip/rust/work/.buildlink/lib/libcurl.so, may conflict with
libssl.so.1.1                                     ld:
/usr/pkgsrc/wip/rust/work/rustc-1.70.0-src/build/x86_64-unknown-netbsd/stage2-tools/x86_64-unknown-netbsd/release/deps/liblibgit2_sys-7f7dd4dc00b4a9a6.rlib(openssl.o):
undefined reference to symbol
'SSL_get1_peer_certificate@@OPENSSL_3.0.0'
          ld: /usr/lib/libssl.so.15: error adding symbols: DSO missing
from command line


                  = note: some `extern` functions couldn't be found;
some native libraries may need to be installed or have their path
specified                                = note: use the `-l` flag to
specify native libraries to link
                                                          = note: use
the `cargo:rustc-link-lib` directive to specify the native libraries
to link with Cargo (see
https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)
....
I have:

# nm /usr/lib/libssl.so.14.0| grep SSL_get1_peer_certificate
# nm /usr/lib/libssl.so.15.0| grep SSL_get1_peer_certificate
0000000000065174 T SSL_get1_peer_certificate

so for some reason even if it shows libssl.so.15, it is linking with
libssl.so.14 .

Running separately the failed command:
...
  running: "gcc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC"
"-m64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64"
"-O2" "-fPIC" "-I/usr/pkg/include" "-I/usr/include"
"-I/usr/include/krb5" "-I/usr/pkg/include/python3.10" "-I"
"/usr/pkgsrc/wip/rust/work/rustc-1.70.0-src/build/x86_64-unknown-netbsd/stage2-tools/x86_64-unknown-netbsd/release/build/libssh2-sys-0f3cab667439a96a/out/include"
"-I" "libssh2/src" "-I"
"/usr/pkgsrc/wip/rust/work/rustc-1.70.0-src/build/x86_64-unknown-netbsd/stage2-tools/x86_64-unknown-netbsd/release/build/libssh2-sys-0f3cab667439a96a/out/build"
"-I" "/usr/pkg/include" "-fvisibility=hidden" "-DHAVE_LONGLONG"
"-DHAVE_SNPRINTF" "-DHAVE_UNISTD_H" "-DHAVE_INTTYPES_H"
"-DHAVE_STDLIB_H" "-DHAVE_SYS_SELECT_H" "-DHAVE_SYS_SOCKET_H"
"-DHAVE_SYS_IOCTL_H" "-DHAVE_SYS_TIME_H" "-DHAVE_SYS_UN_H"
"-DHAVE_O_NONBLOCK" "-DLIBSSH2_OPENSSL" "-DHAVE_LIBCRYPT32"
"-DHAVE_EVP_AES_128_CTR" "-DHAVE_POLL" "-DHAVE_GETTIMEOFDAY"
"-DLIBSSH2_DH_GEX_NEW" "-DLIBSSH2_HAVE_ZLIB" "-o"
"/usr/pkgsrc/wip/rust/work/rustc-1.70.0-src/build/x86_64-unknown-netbsd/stage2-tools/x86_64-unknown-netbsd/release/build/libssh2-sys-0f3cab667439a96a/out/build/libssh2/src/kex.o"
"-c" "libssh2/src/kex.c"
  cargo:warning=libssh2/src/kex.c: In function
‘diffie_hellman_sha_algo’:

cargo:warning=libssh2/src/kex.c:259:34: error:
‘LIBSSH2_DH_MAX_MODULUS_BITS’ undeclared (first use in this function);
did you mean ‘OPENSSL_DH_MAX_MODULUS_BITS’?
....

I *think* I checked everything that might link to libssl.so.14 and
made sure it is rebuilt, but now it seems best to actually remove it
and retry.


(*think* being an operative word...)

>
>
> Skickat från Proton Mail mobil
>
>
>
> -------- Original Message --------
> On Jul 5, 2023, 11:45, Chavdar Ivanov < ci4ic4%gmail.com@localhost> wrote:
>
>
> On Wed, 5 Jul 2023 at 10:31, Thomas Klausner wrote: > > On Wed, Jul 05, 2023 at 09:59:21AM +0100, Chavdar Ivanov wrote: > > On Tue, 4 Jul 2023 at 18:48, Jonathan Perkin wrote: > > > > > > * On 2023-07-04 at 17:11 BST, Chavdar Ivanov wrote: > > > > > > >On Sun, 2 Jul 2023 at 14:37, Jonathan Perkin wrote: > > > >> > > > >> * On 2023-06-30 at 22:28 BST, Jan-Hinrich Fessel wrote: > > > >> > > > >> >warning: libssh2/src/kex.c: In function 'diffie_hellman_sha_algo': > > > >> >warning: libssh2/src/kex.c:259:34: error: 'LIBSSH2_DH_MAX_MODULUS_BITS' undeclared (first use in this function); did you mean 'OPENSSL_DH_MAX_MODULUS_BITS'? > > > >> >warning: 259 | if(_libssh2_bn_bits(p) > LIBSSH2_DH_MAX_MODULUS_BITS) { > > > >> >warning: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > >> >warning: | OPENSSL_DH_MAX_MODULUS_BITS > > > >> >[...] > > > >> >error: failed to run custom build command for `libssh2-sys v0.2.23` > > > >> >[...] > > > >> > > > >> Yes I see this in some of my builds too ever since libssh2 was updated. > > > > > > > >Here as well. > > > > > > I fixed this yesterday. > > > > Where? It still fails for the same way. > > .... > > warning: libssh2/src/kex.c: In function 'diffie_hellman_sha_algo': > > > > warning: libssh2/src/kex.c:259:34: error: > > 'LIBSSH2_DH_MAX_MODULUS_BITS' undeclared (first use in this function); > > did you mean 'OPENSSL_DH_MAX_MODULUS_BITS'? warning: 259 | > > if(_libssh2_bn_bits(p) > LIBSSH2_DH_MAX_MODULUS_BITS) { > > warning: > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > warning: | > > OPENSSL_DH_MAX_MODULUS_BITS > > warning: > > libssh2/src/kex.c:259:34: note: each undeclared identifier is reported > > only once for each function it appears in > > warning: libssh2/src/kex.c:588:30: error: 'LIBSSH2_DH_GEX_MINGROUP' > > undeclared (first use in this function); did you mean > > 'LIBSSH2_DH_GEX_NEW'? warning: 588 | > > LIBSSH2_DH_GEX_MINGROUP); > > warning: | > > ^~~~~~~~~~~~~~~~~~~~~~~ > > > > warning: | LIBSSH2_DH_GEX_NEW > > warning: libssh2/src/kex.c:590:30: error: 'LIBSSH2_DH_GEX_OPTGROUP' > > undeclared (first use in this function); did you mean > > 'LIBSSH2_DH_GEX_NEW'? > > warning: 590 | > > LIBSSH2_DH_GEX_OPTGROUP); > > warning: | > > ^~~~~~~~~~~~~~~~~~~~~~~ > > warning: > > | LIBSSH2_DH_GEX_NEW > > warning: libssh2/src/kex.c:592:30: error: 'LIBSSH2_DH_GEX_MAXGROUP' > > undeclared (first use in this function); did you mean > > 'LIBSSH2_DH_GEX_NEW'? > > warning: 592 | > > LIBSSH2_DH_GEX_MAXGROUP); > > warning: | > > ^~~~~~~~~~~~~~~~~~~~~~~ > > warning: > > | LIBSSH2_DH_GEX_NEW > > warning: libssh2/src/kex.c: In function > > 'kex_method_diffie_hellman_group_exchange_sha1_key_exchange': > > warning: > > libssh2/src/kex.c:1345:50: error: 'LIBSSH2_DH_GEX_MINGROUP' undeclared > > (first use in this function); did you mean 'LIBSSH2_DH_GEX_NEW'? > > .... > > I guess he meant the attached commit. Apologies, I was trying to build wip/rust 1.70; lang/rust 1.69 built OK for me (and I didn't have a failure building it). I applied the same on wip/rust and am trying to build it now. > Thomas > > > ---------- Forwarded message ---------- > From: Jonathan Perkin > To: pkgsrc-changes%netbsd.org@localhost > Cc: > Bcc: > Date: Mon, 3 Jul 2023 20:38:21 +0000 > Subject: CVS commit: pkgsrc/lang/rust > Module Name: pkgsrc > Committed By: jperkin > Date: Mon Jul 3 20:38:21 UTC 2023 > > Modified Files: > pkgsrc/lang/rust: Makefile > > Log Message: > rust: Ensure libssh2 is not buildlinked. > > > To generate a diff of this commit: > cvs rdiff -u -r1.285 -r1.286 pkgsrc/lang/rust/Makefile > > Please note that diffs are not public domain; they are subject to the > copyright notices on the relevant files. > -- ----



-- 
----


Home | Main Index | Thread Index | Old Index