[bug-notifications] [libiconv 0004726]: build is not thread-safe - errno issues

Mantis Bug Tracker noreply at opencsw.org
Wed Mar 16 22:47:43 CET 2011


A NOTE has been added to this issue. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4726 
====================================================================== 
Reported By:                huginn
Assigned To:                dam
====================================================================== 
Project:                    libiconv
Issue ID:                   4726
Category:                   regular use
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2011-03-16 17:44 CET
Last Modified:              2011-03-16 22:47 CET
====================================================================== 
Summary:                    build is not thread-safe - errno issues
Description: 
errno in libiconv latest build is a simple global variable

[amok at border](1)~/$ nm /opt/csw/lib/amd64/libiconv.so | grep errno
[954]   |             0|           0|OBJT |GLOB |0    |UNDEF  |errno

Programs build with thread-safe errno fail on errno check
when iconv() returns with non zero value and should set errno.

Package from blastwave.org is build with thread-safe errno BTW.

[amok at border](1)~/$ nm /opt/csw/lib/amd64/libiconv.so | grep errno
[1314]  |             0|           0|FUNC |GLOB |0    |UNDEF  |___errno

====================================================================== 

---------------------------------------------------------------------- 
 (0008920) huginn (reporter) - 2011-03-16 22:47
 https://www.opencsw.org/mantis/view.php?id=4726#c8920 
---------------------------------------------------------------------- 
I did try your package, nm shows errno should be thread safe now, thanks!
Unfortunately, my test app crashes at iconv() call
(blastwave version works fine).
It is quite late here so I will look more into it tomorrow to give you
more details.

One question BTW, am I doing something wrong or newly build
CSWiconv package is missing symbolic links:

/opt/csw/lib/amd64/libiconv.so
/opt/csw/lib/libiconv.so

are nowhere to be found.

Best regards!



More information about the bug-notifications mailing list