cURL / Mailing Lists / curl-library / Single Mail


Re: Problems on FreeBSD

From: Daniel Stenberg <>
Date: Fri, 7 Sep 2001 10:27:34 +0200 (MET DST)

On Thu, 6 Sep 2001, Lucas Adamski wrote:

> I've been trying to port over a program I've been working on in C/C++ using
> libcurl from Solaris to FreeBSD, but I've run into numerous problems.
> 1) I had the same problem that other people mentioned with both libc and
> libc_r being linked in... there was a bug report
> (
> =976) regarding that, but I tried 7.9pre3 and it did not fix it.
> However, replacing every instance of "openbsd" with "freebsd" in
> fixed it.. I guess the OpenBSD folks already had a fix for
> that?

I've been in touch with "Brad" who seems to be the leading OpenBSD libtool
hacker, and he's been a driving force behind those OpenBSD fixes. Obviously,
the FreeBSD hackers don't have a similar friendly soul in that team.

I've forwarded your comment in the "freebsd libtool" bug report to him, to
see if it makes a difference.

> It has not, however, stopped the segfaults. I could post my code here,
> but it sucks so instead I tried compiling the multithread.c example in
> the distribution, and just like mine it segfaults after the first thread
> terminates:

Debugging multithreaded programs are painful, but is there any possibility to
discover on what source line in libcurl this happens?

> Anyone out there gotten multithread libcurl working on FBSD? Let me know
> if I can provide any additional info, though I'm kinda new at the dev on
> Unix thing, so some directional prodding wouldn't hurt. :) Otherwise,
> I'm rather stuck!

Unfortunately, I've got reports before with multithreaded problems on
FreeBSD. It seems to be working fine on at least Windows, Linux and
Solaris(*) so this problem might be something specific for FreeBSD. From what
I understand, FreeBSD does not have kernel support for threads but I can't
see why that should matter to libcurl...

I don't personally have any access to a FreeBSD machine why I can't dig into
this myself.

(*) = It may work fine on more OSes too, these are just examples I know have
been reported to work.

    Daniel Stenberg -- curl groks URLs --
Received on 2001-09-07