Re: Bug mass-filing: Broken packages using errno without including errno.h
On Sun, 03 Nov 2002, Luca Barbieri wrote:
> The dynamic loader copies the initial value to the .bss errno and
> links every other module to the errno in the program's .bss section.
Would that cause trouble if a non-threaded app links to, or dlopens a
library that uses threading ?
FWIW, I just finished fixing this issue in cyrus21-imapd. You need also
kill any re-declarations of errno (extern int errno;), adding the header is
not enough.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
Reply to: