Steven Hartland ha scritto:
Rebuild with threads enabled, will likely fix all your problems.

That's correct.

Why the default is off I don't know but it conflicts with a
number of the main libs used e.g. libxml hence causing segvs
just as you described.

The issue is very complex, it depends on many factors (FreeBSD version, calling program, extensions loaded, ports options, etc.). In short words, dlopening and dlclosing libthr is bad. The final and definitive solution would be a libc including libthr (if I'm not wrong there was a plan to do it). A less drastic solution would be to link to libthr every program that dlopen() uncontrolled libraries (i.e. apache, php, etc.). I've already proposed this change, but was considered too risky at that time. So, for now, you have to live with the LINKTHR php option that does its best to make all happy.

--
Alex Dupre
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to