In cmake/FindIconv.cmake the fix is:
change
iconv(iconv_t(-1), 0, 0, 0, 0);
to
iconv((iconv_t)-1, 0, 0, 0, 0);
in 3 places
++++++++++++++++++++++++++++
bash-4.3$ cat test.c
#include <iconv.h>
int main() {
iconv(iconv_t(-1), 0, 0, 0, 0);
}
bash-4.3$ gcc test.c
In file included from test.c:1:0:
test.c: In function ‘main’:
test.c:3:15: error: expected expression before ‘libiconv_t’
iconv(iconv_t(-1), 0, 0, 0, 0);
^
In file included from test.c:1:0:
test.c:3:9: error: too few arguments to function ‘libiconv’
iconv(iconv_t(-1), 0, 0, 0, 0);
^
/usr/local/include/iconv.h:82:15: note: declared here
extern size_t iconv (iconv_t cd, char* * inbuf, size_t *inbytesleft,
char* * outbuf, size_t *outbytesleft);
^
bash-4.3$ gcc --version
gcc (GCC) 6.3.1 20161221 (Red Hat 6.3.1-1)
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bash-4.3$ vi test.c
bash-4.3$ cat test.c
#include <iconv.h>
int main() {
iconv((iconv_t)-1, 0, 0, 0, 0);
}
bash-4.3$ gcc test.c
/tmp/ccsr6URT.o: In function `main':
test.c:(.text+0x21): undefined reference to `libiconv'
collect2: error: ld returned 1 exit status
bash-4.3$
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Doxygen-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/doxygen-develop