Read the back traffic on openBSD - we've NEVER gotten it to work. With 3.4 being an ELF (vs. aopen) system, I have HOPES it might work. But prepare yourself for a lot of detective work...i know all that, i'm one of the men working at it :)
Find the offending code, check the underlying structure, fix the problem, recompile, etc.
and good news, it compiles, nearly christmas !!! so here the list of change:
***> configure + 1st compile
go a lot further
with HAVE_NETINET_IF_ETHER_H define to 1 in config.h (configure seems to have a problem with it following bad/incomplete include order)
same with net/if.h, could define HAVE_NET_IF_H to 1 to compile if_ether conftest.c
good order in conftest.c for if_ether.h is: #include <sys/types.h> #include <sys/socket.h> #include <sys/queue.h>
#include <net/if.h> #include <net/if_arp.h> #include <netinet/in.h> #include <netinet/if_ether.h>
(thanks to misc@, mainly vink joris for pointing)
***>seconde problem, compiles stop there:
creating librrdPlugin.la
(cd .libs && rm -f librrdPlugin.la && ln -s ../librrdPlugin.la librrdPlugin.la)
gcc -bundle -flat_namespace -undefined suppress -o .libs/libicmpPlugin.so.0.0 icmpPlugin.o
gcc: suppress: No such file or directory
gcc: file path prefix `/usr/lib/gcc-lib/undle/2.95.3/' never used
*** Error code 1
Stop in /share2/tmp/ntop-2.2.95/plugins (line 630 of Makefile). *** Error code 1
has been a problem for long (remember ... see ~12/10/2002 archives)
gcc -bundle -flat_namespace -o .libs/libicmpPlugin.so.0.0 -L/usr/lib/gcc-lib/i386-unknown-openbsd3.4/2.95.3/ icmpPlugin.o
icmpPlugin.o: In function `sortICMPhosts':
/share2/tmp/ntop-2.2.95/plugins/icmpPlugin.c:60: undefined reference to `traceEvent'
/share2/tmp/ntop-2.2.95/plugins/icmpPlugin.c:63: undefined reference to `traceEvent'
[and more undefined ...]
test with gcc 3.2.3 ? same ...
solution (googling), in plugins/Makefile
replace all: $(CC) -bundle -flat_namespace -undefined suppress -o .libs/libsflowPlugin.so.0.0 sflowPlugin.o
-> $(LD) -Bshareable -o $@ sflowPlugin.o
now it compiles.
***> gmake install add f to "LN_S = ln -s" else stop because symlink exists (why it is done again: 1- in make, 2- in make install ???)
***> execution
# gdb /opt/bin/ntop
GNU gdb 4.16.1
Copyright 1996 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-unknown-openbsd3.4"...
(gdb) run -w 192.168.2.5:3000 -i xl0 -t 5 -M -m 192.168.2.0/24
Starting program: /opt/bin/ntop -w 192.168.2.5:3000 -i xl0 -t 5 -M -m 192.168.2.0/24
08/Nov/2003 10:57:22 [main:777] ntop will be started as user nobody
08/Nov/2003 10:57:22 [main:1079] ntop v.2.2.95 MT (SSL) [i386-unknown-openbsd3.4] (11/07/03 10:22:26 PM build)
08/Nov/2003 10:57:22 [main:1081] Copyright 1998-2003 by Luca Deri <[EMAIL PROTECTED]>
08/Nov/2003 10:57:22 [main:1082] Get the freshest ntop from http://www.ntop.org/
08/Nov/2003 10:57:22 [main:1086] Initializing ntop
08/Nov/2003 10:57:22 [initialize:117] Initializing IP services
08/Nov/2003 10:57:22 [initialize:1339] Initializing network devices
08/Nov/2003 10:57:22 [initialize:1065] Adding network device xl0
08/Nov/2003 10:57:22 [initialize:1224] Interface 'xl0' (netmask 255.255.255.0) computed network size is 606 hosts
08/Nov/2003 10:57:22 [initialize:1239] MEMORY: ipTrafficMatrix base (no TrafficEntry) for interface 'xl0' is 1.45MB
08/Nov/2003 10:57:22 [initialize:735] Resetting traffic statistics for device xl0
08/Nov/2003 10:57:22 [globals-core:93] Initializing gdbm databases
08/Nov/2003 10:57:22 [util:3569] Now running as requested user '(null)' (32767:32767)
08/Nov/2003 10:57:22 [initialize:862] Opening database '/opt/var/ntop/prefsCache.db'
08/Nov/2003 10:57:22 [initialize:868] **FATAL_ERROR** ....open of /opt/var/ntop/prefsCache.db failed: File open error
08/Nov/2003 10:57:22 [initialize:880] Is another instance of ntop running?
Program exited with code 0377. (gdb)
i want to know where the file (prefsCache.db, others ?) comes from as directory exist and there is no make install-config.
else a good step :)
Regards
Julien
note: a lot of *** Warning: inter-library dependencies are not known to be supported. *** All declared inter-library dependencies are being dropped. *** The inter-library dependencies that have been dropped here will be *** automatically added whenever a program is linked with this library *** or is declared to -dlopen it.
note2: decide to use make or gmake compile works with "make" not "make install"
_______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
