Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Wed, 14 Feb 2018 17:29:08 +0200
From: Dmitry Golovin <>
To: "" <>
Subject: Re: shmctl not found when compiling compiler-rt

Thank you!

DECLARE_REAL worked. It seems it was there, but was removed later:

But it seems that it is declared also here: 

So, probably the problem is that SANITIZER_INTERCEPT_SHMCTL is not enabled for some reason. I will investigate it and change the patch accordingly.

Thank you once again for your help!


13.02.2018, 16:15, "Szabolcs Nagy" <>:
> * Dmitry Golovin <> [2018-02-13 15:34:34 +0200]:
>>  I'm trying to compile compiler-rt with musl and it used to be fine, but I can't succeed with recent versions of compiler-rt.
>>  The compilation fails because of the lack of real_shmctl while musl clearly has shmctl:
>>  Here is the complete output:
>>      llvm/projects/compiler-rt/lib/msan/ error: no member named 'real_shmctl' in namespace '__interception'; did you mean 'real_ioctl'?
>>          int res = REAL(shmctl)(shmid, shmctl_ipc_stat, &ds);
>>                    ^~~~~~~~~~~~
> there should be a
> DECLARE_REAL(int, shmctl, int shmid, int cmd, void *buf)
> in that file which defines __interception::real_shmctl.
>>  To compile without glibc on linux using this patch:
>>  Regards,
>>  Dmitry

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ