Bug 12374 – undefined reference to ...__initZ link error

Status
RESOLVED
Resolution
INVALID
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-15T09:34:00Z
Last change time
2017-06-26T00:59:08Z
Assigned to
nobody
Creator
oivind.loe

Attachments

IDFilenameSummaryContent-TypeSize
1338test0.tar.bz2Source and Makefile to reproduce errorapplication/octet-stream4119

Comments

Comment #0 by oivind.loe — 2014-03-15T09:34:38Z
Breaks my current project. Applies both to 2.065 and master Tried to reduce as much as possible. Don't know if it is a DMD or linker error. build/test/src.boss.proc.o: In function `_D4boss4core3con3Con84__T4sendTS4boss4proc13procworker_if25__T17MsgWorkerInitWorkTiZ17MsgWorkerInitWorkTiZ4sendMFNaNbNfiZv': /tmp/test0/src/boss/core/con.d:6: undefined reference to `_D4boss4proc13procworker_if25__T17MsgWorkerInitWorkTiZ17MsgWorkerInitWork6__initZ' collect2: error: ld returned 1 exit status Unzip and run 'make test' to reproduce
Comment #1 by oivind.loe — 2014-03-15T09:35:35Z
Created attachment 1338 Source and Makefile to reproduce error
Comment #2 by dlang-bugzilla — 2017-06-26T00:59:08Z
Unfortunately the test case you provided is not complete because it is not self-contained. The makefile references files in ~/.dub, and attempting to build the makefile fails due to those files not being found. Anyone can only guess what exact versions need to be there, and the exact versions are necessary to ensure that the issue is reproduced in the same way as you are encountering it. Since there was no activity on this issue for over 3 years, I am going to close it, but please reopen it if you can provide a working, self-contained test case.