Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Sep 2025 12:49:01 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>,  Konstantin Belousov <kib@freebsd.org>
Subject:   Re: git: d549de769055 - main - libc: Remove readdir_r(3)  [This broke building rust 1.88]
Message-ID:  <86bjnhi7s2.fsf@ltc.des.dev>
In-Reply-To: <1F6A4621-1505-4F78-97C6-85EA556B2165@yahoo.com> (Mark Millard's message of "Wed, 10 Sep 2025 23:22:45 -0700")
References:  <1F6A4621-1505-4F78-97C6-85EA556B2165@yahoo.com>

index | next in thread | previous in thread | raw e-mail

Mark Millard <marklmi@yahoo.com> writes:
> Example error message text from the log file for the
> rust build via poudriere-devel:
>
>
>   = note: ld: error: undefined symbol: readdir_r
>           >>> referenced by std.d8968a002452916e-cgu.07
>           >>>               std-de94806a57729acc.std.d8968a002452916e-cgu.07.rcgu.o:(std::sys::fs::unix::remove_dir_impl::remove_dir_all_recursive::hbe1160129d2c5f7c)
>           >>> in archive /wrkdirs/usr/ports/lan
> g/rust/work/bootstrap/lib/rustlib/x86_64-unknown-freebsd/lib/libstd-de94806a57729acc.rlib
>           >>> did you mean: readdir_r@FBSD_1.5
>           >>> defined in: /lib/libc.so.7
>           cc: error: linker command failed with exit code 1 (use -v to see invocation)

Tell that to the Rust developers.  They have been repeatedly warned
against using readdir_r(3) for years, as far back as 2016.

DES
-- 
Dag-Erling Smørgrav - des@FreeBSD.org


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86bjnhi7s2.fsf>