CheckFunc doesn't give correct result due to "error: too few arguments to function"
Alex Fan <[email protected]> Sat, 7 Jan 2023 00:21:46 +0000
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <PS1PR06MB27603511BA5C386CF7DA454DA9F89@PS1PR06MB2760.apcprd06.prod.outlook.com> |
Hi, Happy New Year
Reproducer:
env = Environment()
conf = Configure(env)
conf.CheckFunc(
'getxattr',
header=
'#include <sys/types.h>\n#include <sys/xattr.h>'
)
It produces a config.log like:
...
gcc -o .sconf_temp/conftest_c10cc6ce1defa319be0b1e0d1eeface9_0.o -c .sconf_temp/conftest_c10cc6ce1defa319be0b1e0d1eeface9_0.c
.sconf_temp/conftest_c10cc6ce1defa319be0b1e0d1eeface9_0.c: In function 'main':
.sconf_temp/conftest_c10cc6ce1defa319be0b1e0d1eeface9_0.c:15:3: error: too few arguments to function 'getxattr'
15 | getxattr();
| ^~~~~~~~
In file included from .sconf_temp/conftest_c10cc6ce1defa319be0b1e0d1eeface9_0.c:5:
/usr/include/sys/xattr.h:60:16: note: declared here
60 | extern ssize_t getxattr (const char *__path, const char *__name,
| ^~~~~~~~
scons: Configure: no
My gcc version is gcc version 11.3.1 20221209 (Gentoo 11.3.1_p20221209 p3)
Any clue if this can be fixed?
_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users