digitalmars.D.learn - linker errors after upgrade to Ubuntu 11.10
- Sean Silva (27/27) Oct 23 2011 I just upgraded to Ubuntu 11.10 (from 11.04). I have attached the error
- Jesse Phillips (9/9) Oct 23 2011 Ubuntu made some changes to the linker. See if this information helps an...
- Jonathan M Davis (4/15) Oct 23 2011 It will be fixed with the next release. -L-lrt won't even be needed in d...
- Sean Silva (9/18) Oct 23 2011 prevent
- Steven Schveighoffer (5/9) Oct 24 2011 It's a "bug" fixed in the upcoming compiler release:
I just upgraded to Ubuntu 11.10 (from 11.04). I have attached the error message. It looks like it is a problem with a reference to `clock_gettime`. Any suggestions? begin 644 errs.txt M+W5S<B]L:6(O9V-C+W X-E\V-"UL:6YU>"UG;G4O-"XV+C$O+BXO+BXO+BXO M+BXO;&EB+VQI8G!H;V)O<S(N82AD871E=&EM95\T.&)?,65C+F\I.B!);B!F M=6YC=&EO;B! 7T0S<W1D.&1A=&5T:6UE-4-L;V-K,3%C=7)R4W1D5&EM949. M9$YE6FPG. IS=&0O9&%T971I;64N9#HH+G1E>'0N7T0S<W1D.&1A=&5T:6UE M-4-L;V-K,3%C=7)R4W1D5&EM949.9$YE6FPK,' Q9"DZ('5N9&5F:6YE9"!R M-C0M;&EN=7 M9VYU+S0N-BXQ+RXN+RXN+RXN+RXN+VQI8B]L:6)P:&]B;W,R M,E1I8VM$=7)A=&EO;C$R7W-T871I8T-T;W(W3T9.95IV)SH*<W)C+V-O<F4O M871I8T-T;W(W3T9.95IV*S!X,68I.B!U;F1E9FEN960 <F5F97)E;F-E('1O M+S0N-BXQ+RXN+RXN+RXN+RXN+VQI8B]L:6)P:&]B;W,R+F$H=&EM95]C,%\T M;C$T8W5R<E-Y<W1E;51I8VM&3F1.95I3-&-O<F4T=&EM93$R5&EC:T1U<F%T M8VM$=7)A=&EO;C$T8W5R<E-Y<W1E;51I8VM&3F1.95I3-&-O<F4T=&EM93$R M5&EC:T1U<F%T:6]N*S!X,68I.B!U;F1E9FEN960 <F5F97)E;F-E('1O(&!C M;&]C:U]G971T:6UE)PIC;VQL96-T,CH ;&0 <F5T=7)N960 ,2!E>&ET('-T %871U<PH` ` end
Oct 23 2011
Ubuntu made some changes to the linker. See if this information helps and report back. This is from a post in digitalmars.D "Changes to gcc or ld in Ubuntu 11.10 require a small addition to prevent linker errors referencing librt. "-L-lphobos2" needs to be added to DFLAGS before "-L-lrt". I spent a long time trying to figure the problem out before I realized that gcc was tacking on a -lphobos2 to the END of the command (after the -lrt flag). "This page: https://wiki.ubuntu.com/NattyNarwhal/ToolchainTransition may explain the behavior, I'm not sure." Justin Whear
Oct 23 2011
On Monday, October 24, 2011 03:45:14 Jesse Phillips wrote:Ubuntu made some changes to the linker. See if this information helps and report back. This is from a post in digitalmars.D "Changes to gcc or ld in Ubuntu 11.10 require a small addition to prevent linker errors referencing librt. "-L-lphobos2" needs to be added to DFLAGS before "-L-lrt". I spent a long time trying to figure the problem out before I realized that gcc was tacking on a -lphobos2 to the END of the command (after the -lrt flag). "This page: https://wiki.ubuntu.com/NattyNarwhal/ToolchainTransition may explain the behavior, I'm not sure." Justin WhearIt will be fixed with the next release. -L-lrt won't even be needed in dmd.conf anymore. It's being linked in by the compiler just like libpthread is. - Jonathan M Davis
Oct 23 2011
== Quote from Jesse Phillips (jessekphillips+d gmail.com)'s articleUbuntu made some changes to the linker. See if this informationhelps andreport back. This is from a post in digitalmars.D "Changes to gcc or ld in Ubuntu 11.10 require a small addition topreventlinker errors referencing librt. "-L-lphobos2" needs to be added toDFLAGSbefore "-L-lrt". I spent a long time trying to figure the problemoutbefore I realized that gcc was tacking on a -lphobos2 to the END ofthecommand (after the -lrt flag). "This page: https://wiki.ubuntu.com/NattyNarwhal/ToolchainTransitionmayexplain the behavior, I'm not sure." Justin WhearYup, that did the trick! Everything is working just fine now as far as I can tell.
Oct 23 2011
On Sun, 23 Oct 2011 21:36:10 -0400, Sean Silva <chisophugis gmail.com> wrote:I just upgraded to Ubuntu 11.10 (from 11.04). I have attached the error message. It looks like it is a problem with a reference to `clock_gettime`. Any suggestions?It's a "bug" fixed in the upcoming compiler release: http://d.puremagic.com/issues/show_bug.cgi?id=6822 -Steve
Oct 24 2011