[Issue 13186] New: core/sys/posix/sys/uio.d is not linked into the standard lib

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jul 22 06:58:34 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13186

          Issue ID: 13186
           Summary: core/sys/posix/sys/uio.d is not linked into the
                    standard lib
           Product: D
           Version: D2
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: maor at weka.io

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.

--


More information about the Digitalmars-d-bugs mailing list