Bug 13186 – core/sys/posix/sys/uio.d is not linked into the standard lib
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2014-07-22T13:58:00Z
Last change time
2017-08-07T12:25:57Z
Assigned to
nobody
Creator
maor
Comments
Comment #0 by maor — 2014-07-22T13:58:34Z
the following code breaks:
import core.sys.posix.sys.uio;
int main() {
iovec[4] c;
return 0;
}
with error message (command line is 'dmd test.d'):
test.d:(.text._Dmain+0x15): undefined reference to `_D4core3sys5posix3sys3uio5iovec6__initZ'
test.d:(.text._Dmain+0x1c): undefined reference to `_D4core3sys5posix3sys3uio5iovec6__initZ'
because uio.o is not linked into the D standard library:
nm /usr/lib/x86_64-linux-gnu/libphobos2.a | grep uio
finds nothing.