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 <
[email protected]> 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
>
> [email protected] | [email protected]
>
> 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:[email protected]]
> *Namens *Nikita Gupta
> *Verzonden:* vrijdag 19 mei 2017 11:22
> *Aan:* [email protected]
> *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
> [email protected]
> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
>



-- 
Regards,
Nikita Gupta
_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to