[LLVMdev] darwin dragon-egg build issues

Jack Howarth howarth at bromo.med.uc.edu
Tue Apr 13 06:59:33 PDT 2010


On Tue, Apr 13, 2010 at 09:01:16AM +0200, Duncan Sands wrote:
> Hi Jack,
>
>> bash-3.2$ gcc-4 hello.c -S -O1 -o - -fplugin=./dragonegg.so
>> cc1: error: Cannot load plugin ./dragonegg.so
>> dlopen(./dragonegg.so, 10): Symbol not found: _classify_argument
>
> looks like you forgot to apply the i386_static.diff patch to gcc.
>
> Ciao,
>
> Duncan.

Duncan,
   Doesn't i386_static.diff represent a violation of...

https://www.securecoding.cert.org/confluence/display/seccode/DCL36-C.+Do+not+declare+an+identifier+with+conflicting+linkage+classifications

since it first declares a function as extern and then
redefines it locally?
                  Jack



More information about the llvm-dev mailing list