<div dir="ltr">I have took some time to investigate this issue<div><br></div><div>--</div><div>CMake Error at misc/CMakeLists.txt:125 (add_library):<br>  Target "openvas_misc_shared" links to item " -lpcap" which has leading or<br>  trailing whitespace.  This is now an error according to policy CMP0004.<br><br><br>CMake Error at nasl/CMakeLists.txt:147 (add_library):<br>  Target "openvas_nasl_shared" links to item " -lpcap" which has leading or<br>  trailing whitespace.  This is now an error according to policy CMP0004.<br><br><br>CMake Error at nasl/CMakeLists.txt:147 (add_library):<br>  Target "openvas_nasl_shared" links to item " -lpcap" which has leading or<br>  trailing whitespace.  This is now an error according to policy CMP0004.<br><br><br>CMake Error at nasl/CMakeLists.txt:147 (add_library):<br>  Target "openvas_nasl_shared" links to item " -lpcap" which has leading or<br>  trailing whitespace.  This is now an error according to policy CMP0004.<br><br>--<br></div><div><br></div><div>This issue is caused by libpcap-dev [1], and the following patch could solve this issue.</div><div><br></div><div><br></div><div><div>diff --git a/CMakeLists.txt b/CMakeLists.txt</div><div>index 033d122..71deefc 100644</div><div>--- a/CMakeLists.txt</div><div>+++ b/CMakeLists.txt</div><div>@@ -212,6 +212,7 @@ if (NOT OPENVAS_OMP_ONLY)</div><div>     execute_process (COMMAND pcap-config --cflags</div><div>       OUTPUT_VARIABLE PCAP_CFLAGS</div><div>       OUTPUT_STRIP_TRAILING_WHITESPACE)</div><div>+    string(STRIP "${PCAP_LDFLAGS}" PCAP_LDFLAGS)</div><div>   else (PCAP_CONFIG)</div><div>     message (STATUS "pcap-config not found, using defaults...")</div><div>     set (PCAP_LDFLAGS "-L/usr/lib -lpcap")</div></div><div><br></div><div class="gmail_extra">Any feedback on it?</div><div class="gmail_extra"><br></div><div class="gmail_extra">ref:</div><div class="gmail_extra">[1]: <a href="https://anonscm.debian.org/cgit/users/rfrancoise/libpcap.git/commit/?id=95f3623920effd288b7add3e8d2f0092c5bb46a6">https://anonscm.debian.org/cgit/users/rfrancoise/libpcap.git/commit/?id=95f3623920effd288b7add3e8d2f0092c5bb46a6</a><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><pre style="padding-top:8px;margin-top:0px;border-top:0px"><font color="#000000">--</font></pre><pre style="padding-top:8px;margin-top:0px;border-top:0px"><span style="font-family:"microsoft jhenghei",sans-serif"><font color="#000000">SZ Lin (林上智) <<a href="mailto:szlin@debian.org" target="_blank">szlin@debian.org</a>>, </font><b><font color="#ff0000"><a href="http://people.debian.org/~szlin" target="_blank">http://people.debian.org/~szlin</a></font></b></span></pre><pre style="padding-top:8px;margin-top:0px;border-top:0px"><span style="font-family:"microsoft jhenghei",sans-serif"><b>Debian Developer</b>, <a href="http://debian.org.tw" style="font-size:14px" target="_blank"><font color="#0000ff">debian.org.tw</font></a><font style="font-size:14px" color="#000000"> Administrator</font></span></pre><pre style="padding-top:8px;margin-top:0px;border-top:0px"><span style="font-family:"microsoft jhenghei",sans-serif">4096R/ 178F 8338 B314 01E3 04FC 44BA A959 B38A 9561 F3F9</span></pre></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2017-09-18 19:42 GMT+08:00 SZ Lin <span dir="ltr"><<a href="mailto:szlin@debian.org" target="_blank">szlin@debian.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span style="font-size:14px">Source: openvas-libraries</span><br style="font-size:14px"><span style="font-size:14px">Version:</span> 9.0.1-3<br style="font-size:14px"><span style="font-size:14px">Severity: serious</span><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"><a href="https://tests.reproducible-builds.org/debian/rbuild/unstable/amd64/openvas-libraries_9.0.1-3.rbuild.log" target="_blank">https://tests.reproducible-<wbr>builds.org/debian/rbuild/<wbr>unstable/amd64/openvas-<wbr>libraries_9.0.1-3.rbuild.log</a></span><br></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">...</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">dh_auto_configure: cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/<wbr>etc -DCMAKE_INSTALL_LOCALSTATEDIR=<wbr>/var -DCMAKE_EXPORT_NO_PACKAGE_<wbr>REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_<wbr>PACKAGE_REGISTRY=ON -DSYSCONFDIR=/etc -DLOCALSTATEDIR=/var -DLIBDIR=/usr/lib/x86_64-<wbr>linux-gnu -DBUILD_WITH_LDAP=ON -DCMAKE_BUILD_TYPE=release -DBUILD_WITH_RADIUS=no returned exit code 1</span><br></div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">debian/rules:10: recipe for target 'override_dh_auto_configure' failed
make[1]: *** [override_dh_auto_configure] Error 2
make[1]: Leaving directory '/build/1st/openvas-libraries-<wbr>9.0.1'
debian/rules:7: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2</pre></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"><br clear="all"></span><div><div class="gmail-m_-7039209326017785662gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><pre style="padding-top:8px;margin-top:0px;border-top:0px"><font color="#000000">--</font></pre><pre style="padding-top:8px;margin-top:0px;border-top:0px"><span style="font-family:"microsoft jhenghei",sans-serif"><font color="#000000">SZ Lin (林上智) <<a href="mailto:szlin@debian.org" target="_blank">szlin@debian.org</a>>, </font><b><font color="#ff0000"><a href="http://people.debian.org/~szlin" target="_blank">http://people.debian.org/~<wbr>szlin</a></font></b></span></pre><pre style="padding-top:8px;margin-top:0px;border-top:0px"><span style="font-family:"microsoft jhenghei",sans-serif"><b>Debian Developer</b>, <a href="http://debian.org.tw" style="font-size:14px" target="_blank"><font color="#0000ff">debian.org.tw</font></a><font style="font-size:14px" color="#000000"> Administrator</font></span></pre><pre style="padding-top:8px;margin-top:0px;border-top:0px"><span style="font-family:"microsoft jhenghei",sans-serif">4096R/ 178F 8338 B314 01E3 04FC 44BA A959 B38A 9561 F3F9</span></pre></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>
<br><br>
<br></blockquote></div><br></div></div>