digitalmars.D - CURL question on ubuntuforums.org
- Andrei Alexandrescu (2/2) Jan 04 2012 http://ubuntuforums.org/showthread.php?p=11558146
- Vladimir Panteleev (4/5) Jan 04 2012 Curious: do you have a Google Alert set up for "D programming
- Andrei Alexandrescu (3/6) Jan 04 2012 Yes.
- Dejan Lekic (3/3) Jan 04 2012 Weird, it does not segfault here. Could it be some buggy Curl build?
- simendsjo (2/3) Jan 04 2012 Could be. I've gotten similar segfaults on windows using wrong builds.
- Andrei Alexandrescu (4/9) Jan 04 2012 You folks may want to reply to that thread (e.g. inviting the OP here
- Joshua Reusch (7/8) Jan 04 2012 Just installed libcurl from the repos and also got a segfault.
- Nick Sabalausky (8/10) Jan 05 2012 What I think is happening:
- Jacob Carlborg (4/15) Jan 05 2012 Isn't that what it's supposed to do, just forward the lib to the linker?
- Robert Clipsham (7/25) Jan 05 2012 The only time pragma(lib) works is when the file it's in is provided on
- Jacob Carlborg (5/29) Jan 06 2012 You mean it doesn't work for .di files, I'm aware of that.
- Robert Clipsham (10/16) Jan 06 2012 dmd -c a.d
- Nick Sabalausky (3/18) Jan 06 2012 Did you mean that last line to be "dmd a.obj b.obj"?
- Robert Clipsham (5/6) Jan 06 2012 Uuurrr, oops. Yes I did, sorry about that.
- Nick Sabalausky (3/6) Jan 06 2012 I see. Now it makes more sense :)
- Jacob Carlborg (4/19) Jan 06 2012 Oh, yeah, that problem as well.
- deadalnix (6/8) Jan 04 2012 I do not use ubuntu anymore. But the version of gdc in ubuntu's
http://ubuntuforums.org/showthread.php?p=11558146 Andrei
Jan 04 2012
On Wednesday, 4 January 2012 at 15:54:26 UTC, Andrei Alexandrescu wrote:http://ubuntuforums.org/showthread.php?p=11558146Curious: do you have a Google Alert set up for "D programming language"?
Jan 04 2012
On 1/4/12 10:06 AM, Vladimir Panteleev wrote:On Wednesday, 4 January 2012 at 15:54:26 UTC, Andrei Alexandrescu wrote:Yes. Andreihttp://ubuntuforums.org/showthread.php?p=11558146Curious: do you have a Google Alert set up for "D programming language"?
Jan 04 2012
Weird, it does not segfault here. Could it be some buggy Curl build? -- Dejan Lekic - http://dejan.lekic.org
Jan 04 2012
On 04.01.2012 17:26, Dejan Lekic wrote:Weird, it does not segfault here. Could it be some buggy Curl build?Could be. I've gotten similar segfaults on windows using wrong builds.
Jan 04 2012
On 1/4/12 11:03 AM, simendsjo wrote:On 04.01.2012 17:26, Dejan Lekic wrote:You folks may want to reply to that thread (e.g. inviting the OP here for further issue investigation). AndreiWeird, it does not segfault here. Could it be some buggy Curl build?Could be. I've gotten similar segfaults on windows using wrong builds.
Jan 04 2012
Am 04.01.2012 17:26, Dejan Lekic wrote:Weird, it does not segfault here. Could it be some buggy Curl build?Just installed libcurl from the repos and also got a segfault. System: Ubuntu 11.10 32bit, dmd 2.057 the versions of libcurl3 and libcurl4-openssl-dev 7.21.6-3ubuntu3, the version string in the etc.c.curl header is 7.21.4 (is this a problem?) OT: Why does dmd ignore the pragma(lib, ...) in the etc.c.curl module while rdmd seems to recognize it?
Jan 04 2012
"Joshua Reusch" <yoschi arkandos.de> wrote in message news:je26q8$19oo$1 digitalmars.com...OT: Why does dmd ignore the pragma(lib, ...) in the etc.c.curl module while rdmd seems to recognize it?What I think is happening: The pragma(lib, ...) causes DMD's -deps=filename option to include the library file in the dependency list that gets output. RDMD takes that list and sends everything in it back to DMD on the command line. Apperently, DMD is only forwarding libs to the linker when it receives them on the command line (though I don't know why, sounds like a bug to me).
Jan 05 2012
On 2012-01-05 11:00, Nick Sabalausky wrote:"Joshua Reusch"<yoschi arkandos.de> wrote in message news:je26q8$19oo$1 digitalmars.com...Isn't that what it's supposed to do, just forward the lib to the linker? -- /Jacob CarlborgOT: Why does dmd ignore the pragma(lib, ...) in the etc.c.curl module while rdmd seems to recognize it?What I think is happening: The pragma(lib, ...) causes DMD's -deps=filename option to include the library file in the dependency list that gets output. RDMD takes that list and sends everything in it back to DMD on the command line. Apperently, DMD is only forwarding libs to the linker when it receives them on the command line (though I don't know why, sounds like a bug to me).
Jan 05 2012
On 05/01/2012 13:41, Jacob Carlborg wrote:On 2012-01-05 11:00, Nick Sabalausky wrote:The only time pragma(lib) works is when the file it's in is provided on the command line. rdmd can work around this as it invokes dmd twice, there's not a lot that can be done otherwise though. -- Robert http://octarineparrot.com/"Joshua Reusch"<yoschi arkandos.de> wrote in message news:je26q8$19oo$1 digitalmars.com...Isn't that what it's supposed to do, just forward the lib to the linker?OT: Why does dmd ignore the pragma(lib, ...) in the etc.c.curl module while rdmd seems to recognize it?What I think is happening: The pragma(lib, ...) causes DMD's -deps=filename option to include the library file in the dependency list that gets output. RDMD takes that list and sends everything in it back to DMD on the command line. Apperently, DMD is only forwarding libs to the linker when it receives them on the command line (though I don't know why, sounds like a bug to me).
Jan 05 2012
On 2012-01-05 15:04, Robert Clipsham wrote:On 05/01/2012 13:41, Jacob Carlborg wrote:You mean it doesn't work for .di files, I'm aware of that. http://d.puremagic.com/issues/show_bug.cgi?id=2776 -- /Jacob CarlborgOn 2012-01-05 11:00, Nick Sabalausky wrote:The only time pragma(lib) works is when the file it's in is provided on the command line. rdmd can work around this as it invokes dmd twice, there's not a lot that can be done otherwise though."Joshua Reusch"<yoschi arkandos.de> wrote in message news:je26q8$19oo$1 digitalmars.com...Isn't that what it's supposed to do, just forward the lib to the linker?OT: Why does dmd ignore the pragma(lib, ...) in the etc.c.curl module while rdmd seems to recognize it?What I think is happening: The pragma(lib, ...) causes DMD's -deps=filename option to include the library file in the dependency list that gets output. RDMD takes that list and sends everything in it back to DMD on the command line. Apperently, DMD is only forwarding libs to the linker when it receives them on the command line (though I don't know why, sounds like a bug to me).
Jan 06 2012
On 06/01/2012 13:58, Jacob Carlborg wrote:dmd -c a.d dmd -c b.d dmd a.d b.d ... Cue linker errors if A or B has a pragma(lib) in it and relevant extern declarations. -- Robert http://octarineparrot.com/The only time pragma(lib) works is when the file it's in is provided on the command line. rdmd can work around this as it invokes dmd twice, there's not a lot that can be done otherwise though.You mean it doesn't work for .di files, I'm aware of that. http://d.puremagic.com/issues/show_bug.cgi?id=2776
Jan 06 2012
"Robert Clipsham" <robert octarineparrot.com> wrote in message news:je7lcu$1ggl$1 digitalmars.com...On 06/01/2012 13:58, Jacob Carlborg wrote:Did you mean that last line to be "dmd a.obj b.obj"?dmd -c a.d dmd -c b.d dmd a.d b.d ... Cue linker errors if A or B has a pragma(lib) in it and relevant extern declarations.The only time pragma(lib) works is when the file it's in is provided on the command line. rdmd can work around this as it invokes dmd twice, there's not a lot that can be done otherwise though.You mean it doesn't work for .di files, I'm aware of that. http://d.puremagic.com/issues/show_bug.cgi?id=2776
Jan 06 2012
On 06/01/2012 20:35, Nick Sabalausky wrote:Did you mean that last line to be "dmd a.obj b.obj"?Uuurrr, oops. Yes I did, sorry about that. -- Robert http://octarineparrot.com/
Jan 06 2012
"Robert Clipsham" <robert octarineparrot.com> wrote in message news:je7mss$1j23$1 digitalmars.com...On 06/01/2012 20:35, Nick Sabalausky wrote:I see. Now it makes more sense :)Did you mean that last line to be "dmd a.obj b.obj"?Uuurrr, oops. Yes I did, sorry about that.
Jan 06 2012
On 2012-01-06 21:26, Robert Clipsham wrote:On 06/01/2012 13:58, Jacob Carlborg wrote:Oh, yeah, that problem as well. -- /Jacob Carlborgdmd -c a.d dmd -c b.d dmd a.d b.d ... Cue linker errors if A or B has a pragma(lib) in it and relevant extern declarations.The only time pragma(lib) works is when the file it's in is provided on the command line. rdmd can work around this as it invokes dmd twice, there's not a lot that can be done otherwise though.You mean it doesn't work for .di files, I'm aware of that. http://d.puremagic.com/issues/show_bug.cgi?id=2776
Jan 06 2012
Le 04/01/2012 16:54, Andrei Alexandrescu a écrit :http://ubuntuforums.org/showthread.php?p=11558146 AndreiI do not use ubuntu anymore. But the version of gdc in ubuntu's repository has been bugguy for a long time, and still may be bugguy. I did mention that in the newgroup as well as on ubuntu's forum. This is a bad advertisement for D, but broken packages are quite common on ubuntu (gd lib for PHP has been broken for years).
Jan 04 2012