Re: [Openvas-discuss] Problem with OpenVAS source code installation
Nikita, Oh! I couldn’t really make that up out of the errors. Good to hear you fixed it! Thijs Stuurman Security Operations Center | KPN Internedservices thijs.stuur...@internedservices.nl<mailto:thijs.stuur...@internedservices.nl> | thijs.stuur...@kpn.com<mailto:thijs.stuur...@kpn.com> T: +31(0)299476185 | M: +31(0)624366778 PGP Key-ID: 0x16ADC048 (https://pgp.surfnet.nl/) Fingerprint: 2EDB 9B42 D6E8 7D4B 6E02 8BE5 6D46 8007 16AD C048 W: https://www.internedservices.nl<https://www.internedservices.nl/> | L: http://nl.linkedin.com/in/thijsstuurman Van: Nikita Gupta [mailto:nikitar...@gmail.com] Verzonden: vrijdag 19 mei 2017 19:34 Aan: Thijs Stuurman <thijs.stuur...@internedservices.nl> CC: openvas-discuss@wald.intevation.org Onderwerp: Re: [Openvas-discuss] Problem with OpenVAS source code installation Thanks Thijs, I had installed gnutls but actually gnutls-dev package was required. After installing gnutls-dev, the issue got resolved. Regards, Nikita On Fri, May 19, 2017 at 6:30 PM, Thijs Stuurman <thijs.stuur...@internedservices.nl<mailto:thijs.stuur...@internedservices.nl>> wrote: Try this one: ../openvas-libraries-9.0.1/build/CMakeCache.txt Line 40: //Flags used by the compiler during all build types. CMAKE_C_FLAGS:STRING= Van: Nikita Gupta [mailto:nikitar...@gmail.com<mailto:nikitar...@gmail.com>] Verzonden: vrijdag 19 mei 2017 12:04 Aan: Thijs Stuurman <thijs.stuur...@internedservices.nl<mailto:thijs.stuur...@internedservices.nl>> CC: openvas-discuss@wald.intevation.org<mailto:openvas-discuss@wald.intevation.org> Onderwerp: Re: [Openvas-discuss] Problem with OpenVAS source code installation Hi Thijs, Thanks for answering the question. There is only one file build/CMakeCache.txt where I could define it. Though the variable "CXXFLAGS" is not defined anywhere. I defined the variable and tried building again with make command, but again the same error. No result. I think the configuration must be set out of the build directory. But not sure. Can you look into this. Thanks, Nikita On Fri, May 19, 2017 at 3:00 PM, Thijs Stuurman <thijs.stuur...@internedservices.nl<mailto:thijs.stuur...@internedservices.nl>> wrote: I have not seen this error on Ubuntu 16.04, try adding the –fPIC to the build process. Find a cmake kind of file in your build directory, something like: CMAKE_CXX_FLAGS:STRING and add the option. Thijs Stuurman Security Operations Center | KPN Internedservices thijs.stuur...@internedservices.nl<mailto:thijs.stuur...@internedservices.nl> | thijs.stuur...@kpn.com<mailto:thijs.stuur...@kpn.com> T: +31(0)299476185 | M: +31(0)624366778 PGP Key-ID: 0x16ADC048 (https://pgp.surfnet.nl/) Fingerprint: 2EDB 9B42 D6E8 7D4B 6E02 8BE5 6D46 8007 16AD C048 W: https://www.internedservices.nl<https://www.internedservices.nl/> | L: http://nl.linkedin.com/in/thijsstuurman Van: Openvas-discuss [mailto:openvas-discuss-boun...@wald.intevation.org<mailto:openvas-discuss-boun...@wald.intevation.org>] Namens Nikita Gupta Verzonden: vrijdag 19 mei 2017 11:22 Aan: openvas-discuss@wald.intevation.org<mailto:openvas-discuss@wald.intevation.org> Onderwerp: [Openvas-discuss] Problem with OpenVAS source code installation Hi All, I was trying to install the OpenVAS by downloading the souce code from http://www.openvas.org/install-source.html But While installing the libraries source package, it stops at make configuration step by giving error: /usr/bin/ld: /usr/local/lib/libgnutls.a(record.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libgnutls.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status misc/CMakeFiles/openvas_misc_shared.dir/build.make:537: recipe for target 'misc/libopenvas_misc.so.9.0.1' failed make[2]: *** [misc/libopenvas_misc.so.9.0.1] Error 1 CMakeFiles/Makefile2:245: recipe for target 'misc/CMakeFiles/openvas_misc_shared.dir/all' failed make[1]: *** [misc/CMakeFiles/openvas_misc_shared.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 Can anyone help me to fix this issue. I searched online also. But not of much help. -- Regards, Nikita Gupta ___ Openvas-discuss mailing list Openvas-discuss@wald.intevation.org<mailto:Openvas-discuss@wald.intevation.org> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss -- Regards, Nikita Gupta -- Regards, Nikita Gupta ___ Openvas-discuss mailing list Openvas-discuss@wald.intevation.org https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
Re: [Openvas-discuss] Problem with OpenVAS source code installation
Thanks Thijs, I had installed gnutls but actually gnutls-dev package was required. After installing gnutls-dev, the issue got resolved. Regards, Nikita On Fri, May 19, 2017 at 6:30 PM, Thijs Stuurman < thijs.stuur...@internedservices.nl> wrote: > Try this one: > > > > ../openvas-libraries-9.0.1/build/CMakeCache.txt > > > > Line 40: > > > > //Flags used by the compiler during all build types. > > CMAKE_C_FLAGS:STRING= > > > > *Van:* Nikita Gupta [mailto:nikitar...@gmail.com] > *Verzonden:* vrijdag 19 mei 2017 12:04 > *Aan:* Thijs Stuurman <thijs.stuur...@internedservices.nl> > *CC:* openvas-discuss@wald.intevation.org > *Onderwerp:* Re: [Openvas-discuss] Problem with OpenVAS source code > installation > > > > Hi Thijs, > > > > Thanks for answering the question. > > There is only one file build/CMakeCache.txt where I could define it. > Though the variable "CXXFLAGS" is not defined anywhere. > > I defined the variable and tried building again with make command, but > again the same error. No result. > > I think the configuration must be set out of the build directory. But not > sure. > > Can you look into this. > > > > Thanks, > > Nikita > > > > On Fri, May 19, 2017 at 3:00 PM, Thijs Stuurman <Thijs.Stuurman@ > internedservices.nl> wrote: > > I have not seen this error on Ubuntu 16.04, try adding the –fPIC to the > build process. > > Find a cmake kind of file in your build directory, something like: > > > > CMAKE_CXX_FLAGS:STRING and add the option. > > > > > > Thijs Stuurman > > Security Operations Center | KPN Internedservices > > thijs.stuur...@internedservices.nl | thijs.stuur...@kpn.com > > T: +31(0)299476185 | M: +31(0)624366778 > > PGP Key-ID: 0x16ADC048 (https://pgp.surfnet.nl/) > > Fingerprint: 2EDB 9B42 D6E8 7D4B 6E02 8BE5 6D46 8007 16AD C048 > > > > W: https://www.internedservices.nl | L: http://nl.linkedin.com/in/ > thijsstuurman > > > > > > > > > > *Van:* Openvas-discuss [mailto:openvas-discuss-boun...@wald.intevation.org] > *Namens *Nikita Gupta > *Verzonden:* vrijdag 19 mei 2017 11:22 > *Aan:* openvas-discuss@wald.intevation.org > *Onderwerp:* [Openvas-discuss] Problem with OpenVAS source code > installation > > > > Hi All, > > > > I was trying to install the OpenVAS by downloading the souce code from > http://www.openvas.org/install-source.html > > > > But While installing the libraries source package, it stops at make > configuration step by giving error: > > > > /usr/bin/ld: /usr/local/lib/libgnutls.a(record.o): relocation R_X86_64_32 > against `.rodata' can not be used when making a shared object; recompile > with -fPIC > > /usr/local/lib/libgnutls.a: error adding symbols: Bad value > > collect2: error: ld returned 1 exit status > > misc/CMakeFiles/openvas_misc_shared.dir/build.make:537: recipe for target > 'misc/libopenvas_misc.so.9.0.1' failed > > make[2]: *** [misc/libopenvas_misc.so.9.0.1] Error 1 > > CMakeFiles/Makefile2:245: recipe for target > 'misc/CMakeFiles/openvas_misc_shared.dir/all' > failed > > make[1]: *** [misc/CMakeFiles/openvas_misc_shared.dir/all] Error 2 > > Makefile:160: recipe for target 'all' failed > > make: *** [all] Error 2 > > > > Can anyone help me to fix this issue. I searched online also. But not of > much help. > > > > -- > > Regards, > > Nikita Gupta > > > ___ > Openvas-discuss mailing list > Openvas-discuss@wald.intevation.org > https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss > > > > > > -- > > Regards, > > Nikita Gupta > -- Regards, Nikita Gupta ___ Openvas-discuss mailing list Openvas-discuss@wald.intevation.org https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
Re: [Openvas-discuss] Problem with OpenVAS source code installation
Try this one: ../openvas-libraries-9.0.1/build/CMakeCache.txt Line 40: //Flags used by the compiler during all build types. CMAKE_C_FLAGS:STRING= Van: Nikita Gupta [mailto:nikitar...@gmail.com] Verzonden: vrijdag 19 mei 2017 12:04 Aan: Thijs Stuurman <thijs.stuur...@internedservices.nl> CC: openvas-discuss@wald.intevation.org Onderwerp: Re: [Openvas-discuss] Problem with OpenVAS source code installation Hi Thijs, Thanks for answering the question. There is only one file build/CMakeCache.txt where I could define it. Though the variable "CXXFLAGS" is not defined anywhere. I defined the variable and tried building again with make command, but again the same error. No result. I think the configuration must be set out of the build directory. But not sure. Can you look into this. Thanks, Nikita On Fri, May 19, 2017 at 3:00 PM, Thijs Stuurman <thijs.stuur...@internedservices.nl<mailto:thijs.stuur...@internedservices.nl>> wrote: I have not seen this error on Ubuntu 16.04, try adding the –fPIC to the build process. Find a cmake kind of file in your build directory, something like: CMAKE_CXX_FLAGS:STRING and add the option. Thijs Stuurman Security Operations Center | KPN Internedservices thijs.stuur...@internedservices.nl<mailto:thijs.stuur...@internedservices.nl> | thijs.stuur...@kpn.com<mailto:thijs.stuur...@kpn.com> T: +31(0)299476185 | M: +31(0)624366778 PGP Key-ID: 0x16ADC048 (https://pgp.surfnet.nl/) Fingerprint: 2EDB 9B42 D6E8 7D4B 6E02 8BE5 6D46 8007 16AD C048 W: https://www.internedservices.nl<https://www.internedservices.nl/> | L: http://nl.linkedin.com/in/thijsstuurman Van: Openvas-discuss [mailto:openvas-discuss-boun...@wald.intevation.org<mailto:openvas-discuss-boun...@wald.intevation.org>] Namens Nikita Gupta Verzonden: vrijdag 19 mei 2017 11:22 Aan: openvas-discuss@wald.intevation.org<mailto:openvas-discuss@wald.intevation.org> Onderwerp: [Openvas-discuss] Problem with OpenVAS source code installation Hi All, I was trying to install the OpenVAS by downloading the souce code from http://www.openvas.org/install-source.html But While installing the libraries source package, it stops at make configuration step by giving error: /usr/bin/ld: /usr/local/lib/libgnutls.a(record.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libgnutls.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status misc/CMakeFiles/openvas_misc_shared.dir/build.make:537: recipe for target 'misc/libopenvas_misc.so.9.0.1' failed make[2]: *** [misc/libopenvas_misc.so.9.0.1] Error 1 CMakeFiles/Makefile2:245: recipe for target 'misc/CMakeFiles/openvas_misc_shared.dir/all' failed make[1]: *** [misc/CMakeFiles/openvas_misc_shared.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 Can anyone help me to fix this issue. I searched online also. But not of much help. -- Regards, Nikita Gupta ___ Openvas-discuss mailing list Openvas-discuss@wald.intevation.org<mailto:Openvas-discuss@wald.intevation.org> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss -- Regards, Nikita Gupta ___ Openvas-discuss mailing list Openvas-discuss@wald.intevation.org https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
Re: [Openvas-discuss] Problem with OpenVAS source code installation
Hi Thijs, Thanks for answering the question. There is only one file build/CMakeCache.txt where I could define it. Though the variable "CXXFLAGS" is not defined anywhere. I defined the variable and tried building again with make command, but again the same error. No result. I think the configuration must be set out of the build directory. But not sure. Can you look into this. Thanks, Nikita On Fri, May 19, 2017 at 3:00 PM, Thijs Stuurman < thijs.stuur...@internedservices.nl> wrote: > I have not seen this error on Ubuntu 16.04, try adding the –fPIC to the > build process. > > Find a cmake kind of file in your build directory, something like: > > > > CMAKE_CXX_FLAGS:STRING and add the option. > > > > > > Thijs Stuurman > > Security Operations Center | KPN Internedservices > > thijs.stuur...@internedservices.nl | thijs.stuur...@kpn.com > > T: +31(0)299476185 | M: +31(0)624366778 > > PGP Key-ID: 0x16ADC048 (https://pgp.surfnet.nl/) > > Fingerprint: 2EDB 9B42 D6E8 7D4B 6E02 8BE5 6D46 8007 16AD C048 > > > > W: https://www.internedservices.nl | L: http://nl.linkedin.com/in/ > thijsstuurman > > > > > > > > > > *Van:* Openvas-discuss [mailto:openvas-discuss-boun...@wald.intevation.org] > *Namens *Nikita Gupta > *Verzonden:* vrijdag 19 mei 2017 11:22 > *Aan:* openvas-discuss@wald.intevation.org > *Onderwerp:* [Openvas-discuss] Problem with OpenVAS source code > installation > > > > Hi All, > > > > I was trying to install the OpenVAS by downloading the souce code from > http://www.openvas.org/install-source.html > > > > But While installing the libraries source package, it stops at make > configuration step by giving error: > > > > /usr/bin/ld: /usr/local/lib/libgnutls.a(record.o): relocation R_X86_64_32 > against `.rodata' can not be used when making a shared object; recompile > with -fPIC > > /usr/local/lib/libgnutls.a: error adding symbols: Bad value > > collect2: error: ld returned 1 exit status > > misc/CMakeFiles/openvas_misc_shared.dir/build.make:537: recipe for target > 'misc/libopenvas_misc.so.9.0.1' failed > > make[2]: *** [misc/libopenvas_misc.so.9.0.1] Error 1 > > CMakeFiles/Makefile2:245: recipe for target > 'misc/CMakeFiles/openvas_misc_shared.dir/all' > failed > > make[1]: *** [misc/CMakeFiles/openvas_misc_shared.dir/all] Error 2 > > Makefile:160: recipe for target 'all' failed > > make: *** [all] Error 2 > > > > Can anyone help me to fix this issue. I searched online also. But not of > much help. > > > > -- > > Regards, > > Nikita Gupta > > ___ > Openvas-discuss mailing list > Openvas-discuss@wald.intevation.org > https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss > -- Regards, Nikita Gupta ___ Openvas-discuss mailing list Openvas-discuss@wald.intevation.org https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
Re: [Openvas-discuss] Problem with OpenVAS source code installation
I have not seen this error on Ubuntu 16.04, try adding the –fPIC to the build process. Find a cmake kind of file in your build directory, something like: CMAKE_CXX_FLAGS:STRING and add the option. Thijs Stuurman Security Operations Center | KPN Internedservices thijs.stuur...@internedservices.nl<mailto:thijs.stuur...@internedservices.nl> | thijs.stuur...@kpn.com<mailto:thijs.stuur...@kpn.com> T: +31(0)299476185 | M: +31(0)624366778 PGP Key-ID: 0x16ADC048 (https://pgp.surfnet.nl/) Fingerprint: 2EDB 9B42 D6E8 7D4B 6E02 8BE5 6D46 8007 16AD C048 W: https://www.internedservices.nl<https://www.internedservices.nl/> | L: http://nl.linkedin.com/in/thijsstuurman Van: Openvas-discuss [mailto:openvas-discuss-boun...@wald.intevation.org] Namens Nikita Gupta Verzonden: vrijdag 19 mei 2017 11:22 Aan: openvas-discuss@wald.intevation.org Onderwerp: [Openvas-discuss] Problem with OpenVAS source code installation Hi All, I was trying to install the OpenVAS by downloading the souce code from http://www.openvas.org/install-source.html But While installing the libraries source package, it stops at make configuration step by giving error: /usr/bin/ld: /usr/local/lib/libgnutls.a(record.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libgnutls.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status misc/CMakeFiles/openvas_misc_shared.dir/build.make:537: recipe for target 'misc/libopenvas_misc.so.9.0.1' failed make[2]: *** [misc/libopenvas_misc.so.9.0.1] Error 1 CMakeFiles/Makefile2:245: recipe for target 'misc/CMakeFiles/openvas_misc_shared.dir/all' failed make[1]: *** [misc/CMakeFiles/openvas_misc_shared.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 Can anyone help me to fix this issue. I searched online also. But not of much help. -- Regards, Nikita Gupta ___ Openvas-discuss mailing list Openvas-discuss@wald.intevation.org https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
[Openvas-discuss] Problem with OpenVAS source code installation
Hi All, I was trying to install the OpenVAS by downloading the souce code from http://www.openvas.org/install-source.html But While installing the libraries source package, it stops at make configuration step by giving error: /usr/bin/ld: /usr/local/lib/libgnutls.a(record.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libgnutls.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status misc/CMakeFiles/openvas_misc_shared.dir/build.make:537: recipe for target 'misc/libopenvas_misc.so.9.0.1' failed make[2]: *** [misc/libopenvas_misc.so.9.0.1] Error 1 CMakeFiles/Makefile2:245: recipe for target 'misc/CMakeFiles/openvas_misc_shared.dir/all' failed make[1]: *** [misc/CMakeFiles/openvas_misc_shared.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 Can anyone help me to fix this issue. I searched online also. But not of much help. -- Regards, Nikita Gupta ___ Openvas-discuss mailing list Openvas-discuss@wald.intevation.org https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss