[GCC-XML] A one-liner patch

Poste paolo.redaelli at poste.it
Wed Jun 22 04:13:08 EDT 2011


I run gccxml on Posix headers on an Ubuntu 11.04 - theNatty Narwhal ( 
gcc 4.5.2, gccxml 0.9.0+cvs20100501-2 ); I got this error

gccxml plugin/c/liberty-posix.h -fxml=posix.gcc-xml
In file included from /usr/include/fcntl.h:252,
                  from plugin/c/liberty-posix.h:15:
/usr/include/bits/fcntl2.h: In function 'int open(const char*, int, ...)':
/usr/include/bits/fcntl2.h:44: error: '__builtin_va_arg_pack_len' was 
not declared in this scope
/usr/include/bits/fcntl2.h:49: error: '__builtin_va_arg_pack_len' was 
not declared in this scope
/usr/include/bits/fcntl2.h:57: error: '__builtin_va_arg_pack_len' was 
not declared in this scope

I tried to solve it adding this single dummy declaration "int 
__builtin_va_arg_pack_len();" into 
/usr/share/gccxml-0.9/GCC/4.5/gccxml_builtins.h and it seems to make it 
working again.

I also tested it over Qt and it seems to work.
Did I do the "right thing"?
Thanks in advance for your attention
     Paolo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20110622/561de713/attachment.html>


More information about the gccxml mailing list