www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - CURL question on ubuntuforums.org

reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
http://ubuntuforums.org/showthread.php?p=11558146

Andrei
Jan 04 2012
next sibling parent reply "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
On Wednesday, 4 January 2012 at 15:54:26 UTC, Andrei Alexandrescu 
wrote:
 http://ubuntuforums.org/showthread.php?p=11558146
Curious: do you have a Google Alert set up for "D programming language"?
Jan 04 2012
parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 1/4/12 10:06 AM, Vladimir Panteleev wrote:
 On Wednesday, 4 January 2012 at 15:54:26 UTC, Andrei Alexandrescu wrote:
 http://ubuntuforums.org/showthread.php?p=11558146
Curious: do you have a Google Alert set up for "D programming language"?
Yes. Andrei
Jan 04 2012
prev sibling next sibling parent reply Dejan Lekic <dejan.lekic gmail.com> writes:
Weird, it does not segfault here. Could it be some buggy Curl build?

-- 
Dejan Lekic - http://dejan.lekic.org
Jan 04 2012
next sibling parent reply simendsjo <simendsjo gmail.com> writes:
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
parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 1/4/12 11:03 AM, simendsjo wrote:
 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.
You folks may want to reply to that thread (e.g. inviting the OP here for further issue investigation). Andrei
Jan 04 2012
prev sibling parent reply Joshua Reusch <yoschi arkandos.de> writes:
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
parent reply "Nick Sabalausky" <a a.a> writes:
"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
parent reply Jacob Carlborg <doob me.com> writes:
On 2012-01-05 11:00, Nick Sabalausky wrote:
 "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).
Isn't that what it's supposed to do, just forward the lib to the linker? -- /Jacob Carlborg
Jan 05 2012
parent reply Robert Clipsham <robert octarineparrot.com> writes:
On 05/01/2012 13:41, Jacob Carlborg wrote:
 On 2012-01-05 11:00, Nick Sabalausky wrote:
 "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).
Isn't that what it's supposed to do, just forward the lib to the linker?
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/
Jan 05 2012
parent reply Jacob Carlborg <doob me.com> writes:
On 2012-01-05 15:04, Robert Clipsham wrote:
 On 05/01/2012 13:41, Jacob Carlborg wrote:
 On 2012-01-05 11:00, Nick Sabalausky wrote:
 "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).
Isn't that what it's supposed to do, just forward the lib to the linker?
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 -- /Jacob Carlborg
Jan 06 2012
parent reply Robert Clipsham <robert octarineparrot.com> writes:
On 06/01/2012 13:58, Jacob Carlborg 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.
You mean it doesn't work for .di files, I'm aware of that. http://d.puremagic.com/issues/show_bug.cgi?id=2776
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/
Jan 06 2012
next sibling parent reply "Nick Sabalausky" <a a.a> writes:
"Robert Clipsham" <robert octarineparrot.com> wrote in message 
news:je7lcu$1ggl$1 digitalmars.com...
 On 06/01/2012 13:58, Jacob Carlborg 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.
You mean it doesn't work for .di files, I'm aware of that. http://d.puremagic.com/issues/show_bug.cgi?id=2776
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.
Did you mean that last line to be "dmd a.obj b.obj"?
Jan 06 2012
parent reply Robert Clipsham <robert octarineparrot.com> writes:
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
parent "Nick Sabalausky" <a a.a> writes:
"Robert Clipsham" <robert octarineparrot.com> wrote in message 
news:je7mss$1j23$1 digitalmars.com...
 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.
I see. Now it makes more sense :)
Jan 06 2012
prev sibling parent Jacob Carlborg <doob me.com> writes:
On 2012-01-06 21:26, Robert Clipsham wrote:
 On 06/01/2012 13:58, Jacob Carlborg 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.
You mean it doesn't work for .di files, I'm aware of that. http://d.puremagic.com/issues/show_bug.cgi?id=2776
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.
Oh, yeah, that problem as well. -- /Jacob Carlborg
Jan 06 2012
prev sibling parent deadalnix <deadalnix gmail.com> writes:
Le 04/01/2012 16:54, Andrei Alexandrescu a écrit :
 http://ubuntuforums.org/showthread.php?p=11558146

 Andrei
I 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