[Bug 207964] /usr/src/lib/libc/gen/signal.c:(.text+0x0): multiple definition of `signal'

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Apr 10 13:54:34 UTC 2016


Jilles Tjoelker <jilles at FreeBSD.org> changed:

           What    |Removed                     |Added
                 CC|                            |jilles at FreeBSD.org

--- Comment #1 from Jilles Tjoelker <jilles at FreeBSD.org> ---
Apparently, libc and libroken can't be both linked statically. I recommend
linking at least libc (and libthr and librt if you use them) dynamically.
Another reason for this is that external NSS modules only work with dynamic
linking of libc.

If you can modify the application's source code, changing it to use sigaction()
instead of signal() may help. Note that libroken's signal enables SA_RESTART
for all signals except SIGALRM.

Libc could avoid this problem by moving the definition of the _sigintr variable
to its own file.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the freebsd-amd64 mailing list