NetBSD-Users archive

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

Re: Rust with 9 Beta



On Thu, Aug 01, 2019 at 08:40:17AM -0400, Ron Georgia wrote:
> I did a fresh install for 9.0 BETA. Built pkgin from source, /usr/pkg/etc/pkgin/repositories.conf points me to http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/amd64/8.0_2019Q2/All. So far almost everything I need installs. I did have to softlink a few expected libraries in /usr/lib to a later version. i.e. one package wanted libcrypto.so.12, but that was not present, so I linked it to so.14.
> 
> $ ls -l /usr/lib/libcrypto.so.*
> lrwxr-xr-x  1 root  wheel  17 Jul 31 15:42 /usr/lib/libcrypto.so.12 -> libcrypto.so.14.0
> lrwxr-xr-x  1 root  wheel  27 Jul 30 12:52 /usr/lib/libcrypto.so.14 -> ../../lib/libcrypto.so.14.0
> lrwxr-xr-x  1 root  wheel  27 Jul 30 12:52 /usr/lib/libcrypto.so.14.0 -> ../../lib/libcrypto.so.14.0
> 
> When I try to install Rustup I get the following error:
> 
> $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
> /usr/pkg/lib/libcurl.so.4: Undefined PLT symbol "SSL_load_error_strings" (symnum = 77)
> 
> Installing Rust with pkgin installs without an error but I get this when I try to use cargo:
> 
> $ cargo --version
> cargo: Undefined symbol "SSLeay" (symnum = 99)
> 
> $ cargo run
> cargo: Undefined symbol "SSLeay" (symnum = 99)
> 
> $ cargo build
> cargo: Undefined symbol "SSLeay" (symnum = 99)
> 
> I have not tried to build from source yet. The pkgsrc version pulled in by the install is stable and that has rust version 1.34.
> 
> Any suggestions?
> 
> 

Last I checked, upstream's NetBSD/amd64 build is against some vintage
of netbsd-7.  You'll need to provide the relevant shared libraries from
a build of 7.x yourself.  (Would pkgsrc/emulators/compat70, if it
existed, be a solution?)

I'd hope pkgsrc has this figured out for netbsd-9 already/soon, but it's
possible someone needs to have built a amd64 bootstrap rust against
recent -current or netbsd-9.

	Jonathan Kollasch


Home | Main Index | Thread Index | Old Index