<div dir="ltr">It looks like std/file.d needs to be updated to not use the largefile definition on 64-bit mode.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 5, 2015 at 9:18 AM, flamencofantasy via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Thanks for the tip!<br>
I pointed LD_ALTEXEC to the gnu ld like this;<br>
LD_ALTEXEC=/opt/local/x86_64-sun-solaris2.11/bin/ld<br>
<br>
Now I can compile and build and run a simple D program with no imports.<br>
I do get a link error but ld apparently auto corrects it;<br>
<br>
[root@smartmachine ~]# dmd hello.d<br>
/opt/local/x86_64-sun-solaris2.11/bin/ld: error in /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.4/crtend.o(.eh_frame); no .eh_frame_hdr table will be created.<br>
[root@smartmachine ~]#<br>
<br>
However once I import std.stdio and make use of writeln the build fails with the error below;<br>
<br>
[root@smartmachine ~]# dmd hello.d<br>
/opt/local/x86_64-sun-solaris2.11/bin/ld: error in /opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.4/crtend.o(.eh_frame); no .eh_frame_hdr table will be created.<br>
/opt/local/dmd/lib/libphobos2.a(file_8e0_5fb.o): In function `_D3std4file15DirIteratorImpl4nextMFZb':<br>
std/file.d:(.text._D3std4file15DirIteratorImpl4nextMFZb+0x7d): undefined reference to `readdir64'<span class=""><br>
collect2: error: ld returned 1 exit status<br></span>
--- errorlevel 1<br>
[root@smartmachine ~]#<br>
<br>
I did rebuild dmd, druntime and phobos with the binutils ld.<br>
<br>
Should I give up?<br>
<br>
Thanks!<br>
<br>
</blockquote></div><br></div>