I used --enable-developer and all I got was this lousy build failure ...

Richard Sharpe realrichardsharpe at gmail.com
Thu Aug 31 14:59:09 UTC 2023


On Thu, Aug 31, 2023 at 6:15 AM Richard Sharpe
<realrichardsharpe at gmail.com> wrote:
>
> Hi folks,
>
> I user --enable-developer on configure and then built and got this:
>
> --------------------
> ../../third_party/heimdal/lib/hcrypto/rsa-ltm.c: In function
> ‘ltm_rsa_public_decrypt’:
> ../../third_party/heimdal/lib/hcrypto/rsa-ltm.c:261:9: error: ‘size’
> may be used uninitialized in this function
> [-Werror=maybe-uninitialized]
>      size--; p++;
>      ~~~~^~
> ../../third_party/heimdal/lib/hcrypto/rsa-ltm.c:262:20: error: ‘p’ may
> be used uninitialized in this function [-Werror=maybe-uninitialized]
>      while (size && *p == 0xff) {
>                     ^~
> cc1: all warnings being treated as errors
>
> ../../third_party/heimdal/lib/hcrypto/bn.c: In function ‘hc_BN_is_bit_set’:
> ../../third_party/heimdal/lib/hcrypto/bn.c:238:24: warning: cast
> discards ‘const’ qualifier from pointer target type [-Wcast-qual]
>      heim_integer *hi = (heim_integer *)bn;
>                         ^
> ../../third_party/heimdal/lib/hcrypto/bn.c: In function ‘hc_BN_get_word’:
> ../../third_party/heimdal/lib/hcrypto/bn.c:309:24: warning: cast
> discards ‘const’ qualifier from pointer target type [-Wcast-qual]
>      heim_integer *hi = (heim_integer *)bn;
> -----------------
>
> How do I fix this?

Well, I solved this by just using --address-sanitizer and not using
--developer, but now I get this:

--------------------
==22284==You are trying to dlopen a /usr/lib64/ldb/modules/ldb/asq.so
shared library with RTLD_DEEPBIND flag which is incompatibe with
sanitizer runtime (see https://github.com/google/sanitizers/issues/611
for details). If you want to run /usr/lib64/ldb/modules/ldb/asq.so
library under sanitizers please remove RTLD_DEEPBIND from dlopen
flags.
--------------------

Can I safely remove RTLD_DEEPBIND?


-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)(传说杜康是酒的发明者)



More information about the samba-technical mailing list