On Thursday May 5 2011 23:31:50 Stephan Kleine wrote: > On Wednesday May 4 2011 23:01:43 Javier Fernández-Sanguino Peña wrote: > > Hi, > > > > I'm unable to build the Greenbone Security Assistant gsad daemon using > > Debian's gcc version 4.5.2 > > > > The build breaks with this error message: > > > > ------------------------------------------------------------------------- > > -- - > > > > Linking C executable gsad > > /usr/bin/ld.bfd.real: CMakeFiles/gsad.dir/gsad.c.o: undefined reference > > to symbol 'gcry_check_version@@GCRYPT_1.2' > > /usr/bin/ld.bfd.real: note: 'gcry_check_version@@GCRYPT_1.2' is defined > > in DSO //lib/libgcrypt.so.11 so try adding it to the linker command line > > //lib/libgcrypt.so.11: could not read symbols: Invalid operation > > collect2: ld returned 1 exit status > > make[3]: *** [src/gsad] Error 1 > > > > ------------------------------------------------------------------------- > > -- - > > > > Reviewing the error message it looks like it's similar to bug #614231 > > (fuse-emulator-utils: FTBFS - undefined references to libgcrypt symbols), > > the linker is not adding the libgcrypt library when compiling > > > > Running cmake verbose the gcc run is this: > > > > /usr/lib/ccache/gcc -Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 > > -fstack-protector -Wl,-z,relro -Wl,-z,now -Wall -Werror -g > > -lopenvas_misc -lopenvas_hg -lopenvas_base -lopenvas_nasl -lopenvas_omp > > -lgpgme -lgpg-error -lglib-2.0 -lgnutls -lmicrohttpd -lexslt -lxslt > > -lxml2 CMakeFiles/gsad.dir/gsad.c.o CMakeFiles/gsad.dir/validator.c.o > > -o gsad -rdynamic libgsad_omp.a libgsad_oap.a libgsad_base.a -lxslt > > -lxml2 -lgnutls -lopenvas_omp -lmicrohttpd -lglib-2.0 -lgthread-2.0 -lrt > > -lglib-2.0 -lgthread-2.0 -lrt -lexslt -lxslt -lxml2 > > > > Reviewing this I'm missing '-lgcrypt' which looks like it is needed. > > Actually, if I add it manually to the autogenerated file by cmake > > (src/CMakeFiles/gsad.dir/link.txt) then 'make' runs fine and builds fine. > > > > The strange thing is that in the CMakeCache.txt file generated for my > > system (attached) gcrypt is referenced as a library used by the different > > development libraries but is not added to the linker. > > > > I'm not a cmake expert myself so I'm not sure of how to change the > > CMakeLists.txt file to add this library to the linker call. Anyone? > > Matthew is correct. I fixed that in trunk in February, what version are you > compiling?
er, sorry, I mixed it up with gsd .... _______________________________________________ Openvas-devel mailing list Openvas-devel@wald.intevation.org http://lists.wald.intevation.org/mailman/listinfo/openvas-devel