Maxim Sobolev wrote:
> $ cc test.c -o test -lc -lc_r
> 
> When either of -lc or -lc_r is omitted, or their order is reversed the
> problem disappears. The problem doesn't exist on 4-STABLE.
> 
> Any ideas, comments and suggestions are welcome.

Symbols are resolved from libraries in the order in which
they are specified to the linker.

So the fix is obvious: specify them in the right order.

Linux doesn't see this because libc_r is just there for
the reentrant calls, and their threading uses processes,
instead of a user space ("quantum conservation") scheduler.

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to