[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Missing c_isdigit with Asan and UBsan builds
From: |
Jeffrey Walton |
Subject: |
Missing c_isdigit with Asan and UBsan builds |
Date: |
Tue, 23 Mar 2021 16:02:12 -0400 |
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
- Missing c_isdigit with Asan and UBsan builds,
Jeffrey Walton <=