Hello Luca and list
Luca, please check the files in CVS, there seems to be an error when
building on Fedora 7 in there.
Yesterday I upgraded to fedora 7 (FC6-> F7, used yum upgrade), and I
decided to rebuild ntop today.
I deleted the entire local ntop directory and did a fresh cvs checkout
an hour ago
i build it as:
./autogen.sh --prefix=/var/ntop --enable-dependency-tracking --with-pic
--without-ssl --disable-ssl --disable-sslv3 --enable-largerrdpop
--enable-jumbo-frames --with-rrd-home=/usr
(i know some of those options are redundant these days, but i keep them
just to be safe)
when configuring i get this libpcap error, but i have the libs and the
devel package installed already!
*******************************************************************
*
* Checking for unique options for i686-pc-linux-gnu, gcc...
*
* This appears to be LINUX fedora 7
*
* Testing for extra configuration options for LINUX fedora 7
*
* Executing configureextra/LINUXfedora
Setting Fedora specific flag values
Package gdome2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gdome2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gdome2' found
*
*******************************************************************
Test the compiler and setup CFLAGS...
checking if compiler accepts -W (warning flags)... yes
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking for inline... inline
checking whether char is unsigned... no
checking for long double with more range or precision than double... yes
checking whether byte ordering is bigendian... no
Critical library/include tests...
checking for pcap_lookupdev in -lpcap... yes
not found!
*** FATAL ERROR ***
It looks that you don't have the libpcap distribution installed.
Download, compile and, optionally, install it.
When finished please re-run this program.
You can download the latest source tarball at http://www.tcpdump.org/
configure: error: The LBL Packet Capture Library, libpcap, was not found!
# rpm -q -a | grep pcap
libpcap-devel-0.9.5-1.fc7
libpcap-0.9.5-1.fc7
# rpm -q -l libpcap-devel
/usr/include/pcap-bpf.h
/usr/include/pcap-namedb.h
/usr/include/pcap.h
/usr/lib/libpcap.so
/usr/share/man/man3/pcap.3.gz
# grep pcap_lookupdev /usr/include/pcap.h
char *pcap_lookupdev(char *);
config.log has this bit of info:
conftest.c: In function 'main':
conftest.c:30: error: 'not' undeclared (first use in this function)
conftest.c:30: error: (Each undeclared identifier is reported only once
conftest.c:30: error: for each function it appears in.)
conftest.c:30: error: expected ';' before 'big'
configure:22688: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "ntop"
| #define PACKAGE_TARNAME "ntop"
| #define PACKAGE_VERSION "3.3rc_final"
| #define PACKAGE_STRING "ntop 3.3rc_final"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "ntop"
| #define VERSION "3.3rc_final"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_LONG_DOUBLE_WIDER 1
| #define HAVE_LONG_DOUBLE 1
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <sys/param.h>
|
| int
| main ()
| {
| #if BYTE_ORDER != BIG_ENDIAN
| not big endian
| #endif
|
| ;
| return 0;
| }
configure:22828: result: no
configure:22916: checking for pcap_lookupdev in -lpcap
configure:22951: gcc -o conftest -g -O2 -I/usr/local/include -Wshadow
-Wpointer-arith -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -fPIC -DPIC -DLINUX -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/local/include -L/usr/local/lib
conftest.c -lpcap -lglib-2.0 >&5
configure:22957: $? = 0
configure:22975: result: yes
configure:22987: result: not found!
configure:22989: result: *** FATAL ERROR ***
configure:22991: result: It looks that you don't have the libpcap
distribution installed.
configure:22993: result: Download, compile and, optionally, install it.
configure:22995: result: When finished please re-run this program.
configure:22997: result: You can download the latest source tarball at
http://www.tcpdump.org/
configure:22999: error: The LBL Packet Capture Library, libpcap, was
not found!
# rpm -q autoconf
autoconf-2.61-8.fc7
which seems to be triggered by this gem in the configure script obtained
when running autogen:
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for ntop 3.3rc_final.
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
[....snip....]
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <sys/param.h>
int
main ()
{
#if BYTE_ORDER != BIG_ENDIAN
not big endian
#endif
;
return 0;
}
_ACEOF
Please check what's going on.
Ady.
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev