On Tuesday 03 August 2010 19:33:46 Matthew Coene wrote: > Ran into another little problem, even though I managed to sort of work > around it... > > Seems there were two header files being called with the same > declaration/definition. > (Embedded image moved to file: pic19779.gif) > > If I tried to change the contents > of /usr/local/include/openvas/base/pidfile.h > > I ended up with significantly more ongoing problems... So I actually got > it to work by commenting out the line with the same variable or whatever in > > /usr/include/libutil.h > > At this point, OpenVAS Scanner 3.1.0 actually compiled and installed fine.. > I have since returned the original /usr/include/libutil.h to its original > form... > > The question now is... Despite the fact the scanner is compiled and > installed, will it cause any issues going forward for the fact I took a > dirty workaround ???
Not as far as I understand, because you linked against the "right" object. However, I am not sure whether we need that include (not even on BSDs). Attached a patch, that should remove the inclusion of libutil.h. Please apply, regenerate configure (`autoconf`) and recompile to confirm that openvas-scanner does not depend on libutil.h . Sorry that the patch is not "clean" (there is some other whitespace diffs). Thanks for catching, -- felix > Cheers, > > Matt -- Felix Wolfsteller | ++49-541-335084-0 | http://www.greenbone.net/ Greenbone Networks GmbH, Neuer Graben 17, 49074 Osnabrück AG Osnabrück, HR B 202460 | Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver Wagner
Index: include/includes.h =================================================================== --- include/includes.h (Revision 8620) +++ include/includes.h (Arbeitskopie) @@ -23,19 +23,16 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. -* -* */ #ifndef ___INCLUDES_H__ #define ___INCLUDES_H__ + /* - * OpenVAS system includes + * OpenVAS system includes */ - - #include "config.h" #ifdef HAVE_SHL_LOAD /* I love HPUX (jh) */ @@ -183,9 +180,6 @@ #ifdef HAVE_TERMIOS_H #include <termios.h> #endif -#ifdef HAVE_LIBUTIL_H -#include <libutil.h> -#endif #ifdef HAVE_PTY_H #include <pty.h> #endif Index: configure.in =================================================================== --- configure.in (Revision 8620) +++ configure.in (Arbeitskopie) @@ -23,10 +23,8 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. -# -# -# + dnl dnl autoconf script for OpenVAS dnl @@ -181,7 +179,7 @@ AC_CHECK_HEADERS(assert.h netdb.h netinet/in.h arpa/inet.h) AC_CHECK_HEADERS(poll.h sys/poll.h netinet/ip_tcp.h fcntl.h signal.h limits.h) AC_CHECK_HEADERS(sys/stat.h stat.h net/if.h sys/mman.h sys/resource.h dl.h) -AC_CHECK_HEADERS(pty.h termio.h termios.h sgtty.h libutil.h setjmp.h values.h) +AC_CHECK_HEADERS(pty.h termio.h termios.h sgtty.h setjmp.h values.h) dnl ./configure fails to determine the existence of some dnl headers under IRIX
_______________________________________________ Openvas-discuss mailing list [email protected] http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss
