Missing glob.h file when building
Hi, im trying to build libxml2-v2.12.0 for vxworks but during the build process for the first error it complains on not finding glob.h since there is no such file in the fuzz folder.
second error:
xmlwriter.c:47:42: note: expanded from macro 'VA_COPY'
#define VA_COPY(dest,src) (dest) = (src)
xmlreader.c:4593:9: error: array type 'va_list' (aka '__builtin_va_list') is not assignable
VA_COPY(aq, ap);
Here is a part of the output:
building libxml2/NonDebug/Objects/libxml2/fuzz/genSeed.o
building libxml2/NonDebug/Objects/libxml2/fuzz/testFuzzer.o
building libxml2/NonDebug/Objects/libxml2/xmlreader.o
building libxml2/NonDebug/Objects/libxml2/xmlwriter.o
C:/Users/SEARRAD/source/repos/Control_3rdParty/libxml2/libxml2-v2.12.0/fuzz/genSeed.c:9:10: fatal error: 'glob.h' file not found
#include <glob.h>
^~~~~~~~
C:/Users/SEARRAD/source/repos/Control_3rdParty/libxml2/libxml2-v2.12.0/fuzz/testFuzzer.c:9:10: fatal error: 'glob.h' file not found
#include <glob.h>
^~~~~~~~
1 error generated.
make[1]: *** [Makefile:214: libxml2/NonDebug/Objects/libxml2/fuzz/genSeed.o] Error 1
make[1]: *** Waiting for unfinished jobs....
1 error generated.
make[1]: *** [Makefile:230: libxml2/NonDebug/Objects/libxml2/fuzz/testFuzzer.o] Error 1
C:/Users/SEARRAD/source/repos/Control_3rdParty/libxml2/libxml2-v2.12.0/xmlreader.c:523:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
reader->entMax = newSize;
~ ^~~~~~~
C:/Users/SEARRAD/source/repos/Control_3rdParty/libxml2/libxml2-v2.12.0/xmlreader.c:760:27: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
s = xmlBufUse(inbuf) - reader->cur;
~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
C:/Users/SEARRAD/source/repos/Control_3rdParty/libxml2/libxml2-v2.12.0/xmlreader.c:779:9: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
val = xmlBufShrink(inbuf, reader->cur);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/SEARRAD/source/repos/Control_3rdParty/libxml2/libxml2-v2.12.0/xmlreader.c:793:27: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
s = xmlBufUse(inbuf) - reader->cur;
~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
C:/Users/SEARRAD/source/repos/Control_3rdParty/libxml2/libxml2-v2.12.0/xmlreader.c:797:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32]
reader->cur = xmlBufUse(inbuf);
~ ^~~~~~~~~~~~~~~~
C:/Users/SEARRAD/source/repos/Control_3rdParty/libxml2/libxml2-v2.12.0/xmlwriter.c:4489:5: error: array type 'va_list' (aka '__builtin_va_list') is not assignable
VA_COPY(locarg, argptr);
^~~~~~~~~~~~~~~~~~~~~~~
C:/Users/SEARRAD/source/repos/Control_3rdParty/libxml2/libxml2-v2.12.0/xmlwriter.c:47:42: note: expanded from macro 'VA_COPY'
#define VA_COPY(dest,src) (dest) = (src)
~~~~~~ ^
C:/Users/SEARRAD/source/repos/Control_3rdParty/libxml2/libxml2-v2.12.0/xmlwriter.c:4501:2: error: array type 'va_list' (aka '__builtin_va_list') is not assignable
VA_COPY(locarg, argptr);
^~~~~~~~~~~~~~~~~~~~~~~
C:/Users/SEARRAD/source/repos/Control_3rdParty/libxml2/libxml2-v2.12.0/xmlwriter.c:47:42: note: expanded from macro 'VA_COPY'
#define VA_COPY(dest,src) (dest) = (src)
~~~~~~ ^
2 errors generated.
C:/Users/SEARRAD/source/repos/Control_3rdParty/libxml2/libxml2-v2.12.0/xmlreader.c:4593:9: error: array type 'va_list' (aka '__builtin_va_list') is not assignable
VA_COPY(aq, ap);
^~~~~~~~~~~~~~~
C:/Users/SEARRAD/source/repos/Control_3rdParty/libxml2/libxml2-v2.12.0/xmlreader.c:71:42: note: expanded from macro 'VA_COPY'
#define VA_COPY(dest,src) (dest) = (src)
~~~~~~ ^
C:/Users/SEARRAD/source/repos/Control_3rdParty/libxml2/libxml2-v2.12.0/xmlreader.c:4637:8: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
ret = xmlGetLineNo(ctx->node);
~ ^~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:378: libxml2/NonDebug/Objects/libxml2/xmlwriter.o] Error 1
6 warnings and 1 error generated.
make[1]: *** [Makefile:350: libxml2/NonDebug/Objects/libxml2/xmlreader.o] Error 1
make: *** [Makefile:551: main_all] Error 2
Build Failed in Project 'libxml2' (Process Exit Value was '2'): 2023-11-28 11:59:10 (Elapsed Time: 00:08)
************************************************************
ERROR: Build command failed with exit value 2.
ERROR: BUILD FAILED project[C:/Users/SEARRAD/source/repos/Control_3rdParty/libxml2/libxml2-v2.12.0]
Edited by Nick Wellnhofer