aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar DavidKorczynski <david@adalogics.com>2021-06-18 12:11:04 +0100
committerGravatar GitHub <noreply@github.com>2021-06-18 12:11:04 +0100
commit030782d4e4e3d26c6db8844a717f5bd97e9dbd5e (patch)
tree14ffc89b58d71771ae68d2ff1b49d7356c4fd931
parentde2e9e1f74cd18de5d8a8ed153c35ef1f95a004a (diff)
xmlsec: fix build. (#5941)
-rw-r--r--projects/xmlsec/Dockerfile2
-rwxr-xr-xprojects/xmlsec/build.sh5
2 files changed, 4 insertions, 3 deletions
diff --git a/projects/xmlsec/Dockerfile b/projects/xmlsec/Dockerfile
index 75814fcc..013c5307 100644
--- a/projects/xmlsec/Dockerfile
+++ b/projects/xmlsec/Dockerfile
@@ -16,7 +16,7 @@
FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config \
- libssl-dev libxslt-dev wget liblzma-dev
+ libssl-dev wget liblzma-dev python-dev python3-dev
RUN git clone --depth 1 https://github.com/lsh123/xmlsec
RUN git clone --depth 1 https://gitlab.gnome.org/GNOME/libxml2.git
diff --git a/projects/xmlsec/build.sh b/projects/xmlsec/build.sh
index b2976c3d..bb601a79 100755
--- a/projects/xmlsec/build.sh
+++ b/projects/xmlsec/build.sh
@@ -28,7 +28,7 @@ make -j$(nproc) all
make install
cd $SRC/libxslt
-./autogen.sh --prefix="$XMLSEC_DEPS_PATH"
+./autogen.sh --prefix="$XMLSEC_DEPS_PATH" --with-libxml-src=${SRC}/libxml2
make -j$(nproc)
make install
@@ -40,7 +40,8 @@ make -j$(nproc) all
for file in $SRC/xmlsec/tests/oss-fuzz/*_target.c; do
b=$(basename $file _target.c)
- $CC $CFLAGS -c $file -I /usr/include/libxml2 -I ./include/ \
+ echo -e "#include <stdint.h>\n$(cat $file)" > $file
+ $CC $CFLAGS -c $file -I${XMLSEC_DEPS_PATH=}/include/libxml2 -I${XMLSEC_DEPS_PATH=}/include/ -I ./include/ \
-o $OUT/${b}_target.o
$CXX $CXXFLAGS $OUT/${b}_target.o ./src/.libs/libxmlsec1.a \
./src/openssl/.libs/libxmlsec1-openssl.a $LIB_FUZZING_ENGINE \