Bug 1895 – missing symbols during linking for anything that uses writef
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-03-07T02:14:00Z
Last change time
2015-06-09T01:14:36Z
Assigned to
bugzilla
Creator
braddr
Comments
Comment #0 by braddr — 2008-03-07T02:14:28Z
Reported in the newsgroup by 'nobody':
import std.stdio;
void main() {
writef("Hello World\n");
}
dmd hello.d
hello.o: In function `_D3std6format80__T14formattedWriteTS3std5stdio25__T17PrivateFileWriterTaZ17PrivateFileWriterTaZ14formattedWriteFKS3std5stdio25__T17PrivateFileWriterTaZ17PrivateFileWriterAxaZv':
hello.d:(.text._D3std6format80__T14formattedWriteTS3std5stdio25__T17PrivateFileWriterTaZ17PrivateFileWriterTaZ14formattedWriteFKS3std5stdio25__T17PrivateFileWriterTaZ17PrivateFileWriterAxaZv+0xa6): undefined reference to `_D3std6format10FormatInfo6flDashMFbZv'
<... more errors ...>
I can confirm with the released 2.012 zip file's libphobos2.a. With my own build the problem does not occur. Looking for symbol _D3std6format10FormatInfo6flDashMFbZv in the release .a file, it's missing. In my build it's present.
Flagged as a p1 regression.
Comment #1 by braddr — 2008-03-07T03:38:59Z
Walter uploaded a corrected dmd.2.012.zip file with the right version of the .a file. To check to make sure you have the right one, here's the relevant info:
libphobos.a
size: 1669414
md5sum: e90f6bfb31ce9a678a8acbfb206cd1bf
dmd.2.012.zip
size: 5336394
md5sum: 6e0aae81028e24e6ecc866f1b1f439bd