Hi again, one other note... when compiling openvas-scanner-5.0.0, it seems that in src/CMakeFiles/openvassd.dir/link.txt the -lhiredis is missing completely, which will cause the same error messages. Adding it, will fix this.
Winni > From: "Winfried Neessen" <[email protected]> > To: "openvas-discuss" <[email protected]> > Sent: Tuesday, March 24, 2015 3:51:41 PM > Subject: Re: [Openvas-discuss] Error building OpenVAS 8 libraries > Hi, > I was able to fix this on my own. In case someone else experices this issue, > here is the > solution: > I had to edit the following files: > base/CMakeFiles/test-hosts.dir/link.txt > nasl/CMakeFiles/openvas-nasl.dir/link.txt > nasl/CMakeFiles/openvas-nasl-lint.dir/link.txt > Each file had the same issue. In the link definition, it says s. th. like > this: > /usr/bin/gcc -Wformat -Wformat-security -O2 [...] -L -lhiredis -lgcrypt [...] > For some reason, gcc doesn't seem to like this order of flags and so the > -lhiredis seems to > be simply ignored. If you change the order of the -L and -lhiredis: > /usr/bin/gcc -Wformat -Wformat-security -O2 [...] -lhiredis -L -lgcrypt [...] > it compiles w/o issues. > Winni >> From: "Winfried Neessen" <[email protected]> >> To: "openvas-discuss" <[email protected]> >> Sent: Tuesday, March 17, 2015 11:07:01 AM >> Subject: [Openvas-discuss] Error building OpenVAS 8 libraries >> Hi, >> as it has been suggested to test OpenVAS 8 to get rid of the unresolvable >> problem with the >> scan configs, I am just doing so... While building openvas-libraries-8.0.0, I >> receive the following >> error: >> Linking C shared library libopenvas_misc.so >> [ 40%] Built target openvas_misc_shared >> [ 41%] Building C object base/CMakeFiles/test-hosts.dir/test-hosts.c.o >> Linking C executable test-hosts >> ../misc/libopenvas_misc.so.8.0.0: undefined reference to `freeReplyObject' >> ../misc/libopenvas_misc.so.8.0.0: undefined reference to `redisConnectUnix' >> ../misc/libopenvas_misc.so.8.0.0: undefined reference to `redisFree' >> ../misc/libopenvas_misc.so.8.0.0: undefined reference to `redisCommand' >> ../misc/libopenvas_misc.so.8.0.0: undefined reference to `redisvCommand' >> collect2: error: ld returned 1 exit status >> base/CMakeFiles/test-hosts.dir/build.make:88: recipe for target >> 'base/test-hosts' failed >> make[2]: *** [base/test-hosts] Error 1 >> CMakeFiles/Makefile2:178: recipe for target >> 'base/CMakeFiles/test-hosts.dir/all' >> failed >> make[1]: *** [base/CMakeFiles/test-hosts.dir/all] Error 2 >> Makefile:147: recipe for target 'all' failed >> make: *** [all] Error 2 >> Used cmake flags: >> $ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/pkg/openvas .. >> hiredis 0.12.1-1 is installed. >> Any ideas? >> Thanks >> Winni >> _______________________________________________ >> Openvas-discuss mailing list >> [email protected] >> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss > _______________________________________________ > Openvas-discuss mailing list > [email protected] > https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
_______________________________________________ Openvas-discuss mailing list [email protected] https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
