http://d.puremagic.com/issues/show_bug.cgi?id=4439

           Summary: The declaration of the in6addr_* in druntime is wrong.
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: s...@invisibleduck.org
        ReportedBy: satoru.hosot...@gmail.com


--- Comment #0 from satoru_h <satoru.hosot...@gmail.com> 2010-07-08 15:52:06 
PDT ---
The following code cannot be compiled.

--- prog.d

import std.c.linux.socket;

void main()
{
    auto a = in6addr_loopback.s6_addr;
}

---

And compilation message is below.

$ dmd prog.d

/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:
in6addr_loopback: TLS reference in prog.o mismatches non-TLS definition in
/lib32/libc.so.6 section .rodata
/lib32/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
--- errorlevel 1


core.sys.posix.netinet.in_.in6addr_* should be declared as shared.
But it is not declared so.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to