Hi there. The compiling fails because I don't have gtk installed. this is a server and I have -gtk -gnome -X in USE settings. here is relavant output. checking for gtk-config... no checking for gtk12-config... no checking for gtk10-config... no checking for pkg-config... (cached) /usr/bin/pkg-config ./configure: --modversion: command not found checking GTK version... Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk+-2.0' found configure: warning: Only gtk+-2.0 was found : the client will be built but will be extremely buggy. Install gtk+-1.2 if you want stability. If you do not understand why you would want to install version 1.2.x when you have 2.0.x In file included from xstuff.c:35: xstuff.h:24: parse error before `*' xstuff.h:25: parse error before `*' xstuff.c: In function `init_display': xstuff.c:41: warning: implicit declaration of function `gtk_init' xstuff.c: At top level: xstuff.c:45: parse error before `*' xstuff.c: In function `close_window': xstuff.c:47: warning: implicit declaration of function `gtk_widget_hide' xstuff.c:47: `w' undeclared (first use in this function) xstuff.c:47: (Each undeclared identifier is reported only once xstuff.c:47: for each function it appears in.) xstuff.c:49: `FALSE' undeclared (first use in this function) xstuff.c:50: warning: control reaches end of non-void function xstuff.c: At top level: xstuff.c:51: parse error before `*' xstuff.c: In function `delete_event': xstuff.c:53: `FALSE' undeclared (first use in this function) xstuff.c:54: warning: control reaches end of non-void function xstuff.c: In function `close_display': xstuff.c:57: warning: implicit declaration of function `gtk_main_quit' make[1]: *** [xstuff.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/nessus-core-1.2.6/work/nessus-core/nessus' make: *** [client] Error 2 make: *** Waiting for unfinished jobs.... !!! ERROR: net-analyzer/nessus-core-1.2.6 failed. !!! Function src_compile, Line -153, Exitcode 2 !!! emake failed doing a manual ./configure with --disable-gtk does configure without errors. but building still dies. this seems to be an issue with nesses itself. checking with nessus and will update. Henti
I think I found part of the problem. Seems nessus guys didn't clean up the source tarball correctly. I tried updating the ebuild to do a "make distclean" before configure stage. but it still tries to compile with gtk support. seems the --disable-gtk is not getting throug to emake. I have -gtk in make.conf and also tried USE="-gtk" ebuild /path/ebuild compile (not sure if this works) and USE="-gtk" emerge nessus-core nothing works. the ebuild still tries to build gtk client and fails on compile. Hope this helps Henti
this is not so much a gtk problem as a buggy nessus config script it seems, please reassign.
nessus-1.2.7 has been marked stable in portage and has fixes for non-gtk installations. An option was being passed to configure which had an effect on it's logic for whether NLS was detected but did not turn off any code... Now passing --{with,without}-included-gettext as appropriate.