www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13186] New: core/sys/posix/sys/uio.d is not linked into the

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 puremagic.com
          Reporter: maor 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.

--
Jul 22 2014