aboutsummaryrefslogtreecommitdiff
path: root/projects/net-snmp
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@users.noreply.github.com>2021-08-18 02:34:20 -0700
committerGitHub <noreply@github.com>2021-08-18 10:34:20 +0100
commit2550a06f11cb5c4f332ebda58218364d74404bbd (patch)
treedcc431f5558811062736860408c1c0411a17ddbc /projects/net-snmp
parent20d69570fe06f137f874d904825b86ef147b73a9 (diff)
downloadoss-fuzz-2550a06f11cb5c4f332ebda58218364d74404bbd.tar.gz
net-snmp: Reenable MIB-II and IF-MIB (#6239)
Recently the IF-MIB implementation on the Net-SNMP master branch became dependent on libnl-route-3. An unfortunate side effect is that this broke the build of the fuzz tests. Add the pkg-config package such that the configure script can detect libnl-route-3 and reenable MIB-II and IF-MIB.
Diffstat (limited to 'projects/net-snmp')
-rw-r--r--projects/net-snmp/Dockerfile2
-rwxr-xr-xprojects/net-snmp/build.sh3
2 files changed, 3 insertions, 2 deletions
diff --git a/projects/net-snmp/Dockerfile b/projects/net-snmp/Dockerfile
index 4a81ee31e..1893d9bf6 100644
--- a/projects/net-snmp/Dockerfile
+++ b/projects/net-snmp/Dockerfile
@@ -15,7 +15,7 @@
################################################################################
FROM gcr.io/oss-fuzz-base/base-builder
-RUN apt-get update && apt-get install -y pkg-config make autoconf libtool libssl-dev libnl-genl-3-dev libnl-3-dev libnl-route-3-dev
+RUN apt-get update && apt-get install -y pkg-config make autoconf libtool libssl-dev libnl-genl-3-dev libnl-3-dev libnl-route-3-dev pkg-config
RUN git clone https://github.com/net-snmp/net-snmp net-snmp
WORKDIR net-snmp
COPY build.sh $SRC/
diff --git a/projects/net-snmp/build.sh b/projects/net-snmp/build.sh
index 069b1da64..28bd4e4f3 100755
--- a/projects/net-snmp/build.sh
+++ b/projects/net-snmp/build.sh
@@ -18,7 +18,8 @@
sed -i 's/#define NETSNMP_SELECT_TIMEVAL ${arg_type}/#define NETSNMP_SELECT_TIMEVAL struct timeval/g' ./configure
rm testing/fuzzing/build.sh && echo "echo 0" >> testing/fuzzing/build.sh && chmod +x ./testing/fuzzing/build.sh
-./configure --with-nl --with-openssl=/usr --with-defaults --disable-mibs --with-logfile="/dev/null" --with-persistent-directory="/dev/null" --with-out-mib-modules="mibII,if-mib"
+./configure --with-openssl=/usr --with-defaults --with-logfile="/dev/null" --with-persistent-directory="/dev/null"
+
# net-snmp build is not parallel-make safe; do not add -j
make