Bug 22683 – core.math.rndtonl can't be linked

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2022-01-16T23:02:22Z
Last change time
2022-02-12T01:29:54Z
Keywords
pull
Assigned to
No Owner
Creator
Tony Edgin

Comments

Comment #0 by tedgin — 2022-01-16T23:02:22Z
The function rndtonl in the phobos package core.math is defined, but it isn't available in the library's object file. Here's an example program that fails at link time. ``` import core.math; import std; void main() { const lval = rndtonl(5.0L); writeln("lval = %d", lval); } ``` Here's the dmd linking error as reported by https://run.dlang.io. ``` ./onlineapp.d:6: error: undefined reference to 'rndtonl' collect2: error: ld returned 1 exit status Error: linker exited with status 1 ```
Comment #1 by dlang-bot — 2022-01-17T00:21:18Z
@ibara created dlang/druntime pull request #3676 "Remove external reference to rndtonl." fixing this issue: - Remove external reference to rndtonl. It was removed in https://github.com/dlang/phobos/commit/b4f675fe150afaa577d6a41d6013ca33d932bd57 Fix Issue 22683 - core.math.rndtonl can't be linked https://github.com/dlang/druntime/pull/3676
Comment #2 by dlang-bot — 2022-01-17T02:46:15Z
dlang/druntime pull request #3676 "Remove external reference to rndtonl." was merged into stable: - 3a6261e99339c7e921af25c33cb914329f5dba39 by Brian Callahan: Deprecate external reference to rndtonl. It was removed in https://github.com/dlang/phobos/commit/b4f675fe150afaa577d6a41d6013ca33d932bd57 Fix Issue 22683 - core.math.rndtonl can't be linked https://github.com/dlang/druntime/pull/3676
Comment #3 by dlang-bot — 2022-02-12T01:29:54Z
dlang/druntime pull request #3738 "Merge branch 'stable' into merge_stable" was merged into master: - 9c23698f7eeffafd49b869b9429091c19b50255a by Brian Callahan: Deprecate external reference to rndtonl. It was removed in https://github.com/dlang/phobos/commit/b4f675fe150afaa577d6a41d6013ca33d932bd57 Fix Issue 22683 - core.math.rndtonl can't be linked https://github.com/dlang/druntime/pull/3738