[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fwd: Missing c_isdigit with Asan and UBsan builds
From: |
Jeffrey Walton |
Subject: |
Fwd: Missing c_isdigit with Asan and UBsan builds |
Date: |
Tue, 23 Mar 2021 17:18:54 -0400 |
The Gnulib folks suggested this should go to libtasn1 developers.
I can also duplicate this problem on an older Intel Mac-mini, so it is
not limited to M1 hardware.
Maybe it is time to build a new release tarball with the latest Gnulib.
Jeff
---------- Forwarded message ---------
From: Jeffrey Walton <noloader@gmail.com>
Date: Tue, Mar 23, 2021 at 4:02 PM
Subject: Missing c_isdigit with Asan and UBsan builds
To: bug-gnulib@gnu.org List <bug-gnulib@gnu.org>
Hi Everyone,
I'm building libtasn1-4.16.0 on an Apple M1. I'm testing under Asan
and UBsan due to a couple of failed self tests. Both Asan and UBsan
libtasn1 link is failing with:
Undefined symbols for architecture arm64:
"_c_isdigit", referenced from:
__asn1_expand_object_id in parser_aux.o
__asn1_check_identifier in parser_aux.o
When I inspect libgnu.a I don't see any symbols. (This may be the
wrong use of the tool):
# Capital letter "i", not lower "L"
% otool -I libtasn1-4.16.0/lib/gl/.libs/libgnu.a
Archive : libtasn1-4.16.0/lib/gl/.libs/libgnu.a
libtasn1-4.16.0/lib/gl/.libs/libgnu.a(c-ctype.o):
libtasn1-4.16.0/lib/gl/.libs/libgnu.a(strverscmp.o):
% otool -G libtasn1-4.16.0/lib/gl/.libs/libgnu.a
Archive : libtasn1-4.16.0/lib/gl/.libs/libgnu.a
libtasn1-4.16.0/lib/gl/.libs/libgnu.a(c-ctype.o):
Data in code table (0 entries)
offset length kind
libtasn1-4.16.0/lib/gl/.libs/libgnu.a(strverscmp.o):
Data in code table (0 entries)
offset length kind
Here is the link command:
libtool: link: mv -f ".libs/libtasn1.expT" ".libs/libtasn1.exp"
libtool: link: sed 's|^|_|' < .libs/libtasn1.exp > .libs/libtasn1-symbols.expsym
libtool: link: /usr/bin/cc -dynamiclib -o .libs/libtasn1.6.dylib
.libs/ASN1.o .libs/coding.o .libs/decoding.o .libs/element.o
.libs/errors.o .libs/gstr.o .libs/parser_aux.o .libs/structure.o
.libs/version.o -Wl,-force_load,gl/.libs/libgnu.a
-L/Users/jwalton/ok2delete-asan/lib -ldl -lpthread -g3 -O1
-fsanitize=address -arch arm64 -pthread -fsanitize=address -Wl,-rpath
-Wl,@loader_path/../lib -Wl,-rpath
-Wl,/Users/jwalton/ok2delete-asan/lib -pthread -install_name
/Users/jwalton/ok2delete-asan/lib/libtasn1.6.dylib
-compatibility_version 13 -current_version 13.0 -Wl,-single_module
-Wl,-exported_symbols_list,.libs/libtasn1-symbols.expsym
Does anyone see what I might be doing wrong?
Thanks.
libtasn1-config.log.zip
Description: Zip archive
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Fwd: Missing c_isdigit with Asan and UBsan builds,
Jeffrey Walton <=