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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.gccxml.org/mailman/listinfo/gccxml

Reply via email to