Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Feb 2004 17:42:21 +0300
From:      "Vasenin Alexander aka BlackSir" <blacksir@number.ru>
To:        "Gleb Smirnoff" <glebius@cell.sick.ru>, <freebsd-isp@freebsd.org>
Cc:        freebsd-net@freebsd.org
Subject:   RE: ng_netflow: testers are welcome
Message-ID:  <NKEJKOHEKMBIMCCEHEPKAENDCEAA.blacksir@number.ru>
In-Reply-To: <20040218124958.GB40340@cell.sick.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On my test system kldload /modules/ng_netflow.ko returns: kldload: can't
load ./ng_netflow.ko: Exec format error
After this there is a message in dmesg: link_elf: symbol ng_make_node_common
undefined

# uname -a
FreeBSD inet.park7.number.ru 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Fri Feb  6
18:44:04 MSK 2004
root@inet.park7.number.ru:/usr/obj/usr/src/sys/GENERIC_number_ru_20040206
i386

Overrides from GENERIC kernel:
options         IPFIREWALL              #firewall
options         IPFIREWALL_VERBOSE      #enable logging to syslogd(8)
options         IPFIREWALL_FORWARD      #enable transparent proxy support
options         IPFIREWALL_VERBOSE_LIMIT=100    #limit verbosity
options         IPFIREWALL_DEFAULT_TO_ACCEPT    #allow everything by default
options         IPFW2   # by BlackSir - enables IPFW2
options         IPDIVERT                #divert sockets
options         RANDOM_IP_ID
options         DUMMYNET
options         BRIDGE


compile&install log:
[root@inet.park7.number.ru] cd /usr/ports/net/ng_netflow/
[root@inet.park7.number.ru] make install clean
===>  Vulnerability check disabled
===>  Extracting for ng_netflow-0.2.1
>> Checksum OK for ng_netflow-0.2.1.tar.gz.
===>  Patching for ng_netflow-0.2.1
===>  Configuring for ng_netflow-0.2.1
===>  Building for ng_netflow-0.2.1
===> ng_netflow
Warning: Object directory not changed from original
/usr/ports/net/ng_netflow/work/ng_netflow-0.2.1/ng_netflow
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
cc -O -pipe   -g -I/usr/ports/net/ng_netflow/work/ng_netflow-0.2.1/ng_netflo
w  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -
Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extension
s -ansi -DKLD_MODULE -nostdinc -I- -I/usr/ports/net/ng_netflow/work/ng_netfl
ow-0.2.1/ng_netflow -I. -I@ -I@/../include -I/usr/include  -mpreferred-stack
-boundary=2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -W
missing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions
 -ansi -c ng_netflow.c
cc -O -pipe   -g -I/usr/ports/net/ng_netflow/work/ng_netflow-0.2.1/ng_netflo
w  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -
Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extension
s -ansi -DKLD_MODULE -nostdinc -I- -I/usr/ports/net/ng_netflow/work/ng_netfl
ow-0.2.1/ng_netflow -I. -I@ -I@/../include -I/usr/include  -mpreferred-stack
-boundary=2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -W
missing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions
 -ansi -c netflow.c
ld  -r -o ng_netflow.kld ng_netflow.o netflow.o
gensetdefs ng_netflow.kld
cc -O -pipe   -g -I/usr/ports/net/ng_netflow/work/ng_netflow-0.2.1/ng_netflo
w  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -
Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extension
s -ansi -DKLD_MODULE -nostdinc -I- -I/usr/ports/net/ng_netflow/work/ng_netfl
ow-0.2.1/ng_netflow -I. -I@ -I@/../include -I/usr/include  -mpreferred-stack
-boundary=2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -W
missing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions
 -ansi -c setdef0.c
cc -O -pipe   -g -I/usr/ports/net/ng_netflow/work/ng_netflow-0.2.1/ng_netflo
w  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -
Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extension
s -ansi -DKLD_MODULE -nostdinc -I- -I/usr/ports/net/ng_netflow/work/ng_netfl
ow-0.2.1/ng_netflow -I. -I@ -I@/../include -I/usr/include  -mpreferred-stack
-boundary=2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -W
missing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions
 -ansi -c setdef1.c
ld -Bshareable  -o ng_netflow.ko setdef0.o ng_netflow.kld setdef1.o
===> flowctl
Warning: Object directory not changed from original
/usr/ports/net/ng_netflow/work/ng_netflow-0.2.1/flowctl
cc -O -pipe   -g -Wall -Wformat   -c flowctl.c
cc -O -pipe   -g -Wall -Wformat    -o flowctl flowctl.o -lnetgraph
gzip -cn ng_netflow.4 > ng_netflow.4.gz
gzip -cn flowctl.8 > flowctl.8.gz
===>  Installing for ng_netflow-0.2.1
===>   Generating temporary packing list
===>  Checking if net/ng_netflow already installed
===> ng_netflow
install -o root -g wheel -m 555   ng_netflow.ko /modules
===> flowctl
install -s -o root -g wheel -m 555   flowctl /usr/local/sbin
install -o root -g wheel -m 444 ng_netflow.4.gz  /usr/local/man/man4
install -o root -g wheel -m 444 flowctl.8.gz  /usr/local/man/man8

****************************************************************************
***
* This port contains a prebuilt kernel module. Due to the ever changing
*
* nature of FreeBSD it may be necessary to rebuild the module after a kernel
*
* source update.  To do this reinstall the port.
*
****************************************************************************
***
===>   Registering installation for ng_netflow-0.2.1
===>  Cleaning for ng_netflow-0.2.1



Any ideas?
	Vasenin Alexander aka BlackSir



> -----Original Message-----
> From: owner-freebsd-isp@freebsd.org
> [mailto:owner-freebsd-isp@freebsd.org]On Behalf Of Gleb Smirnoff
> Sent: Wednesday, February 18, 2004 3:50 PM
> To: freebsd-isp@freebsd.org
> Cc: freebsd-net@freebsd.org
> Subject: Re: ng_netflow: testers are welcome



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NKEJKOHEKMBIMCCEHEPKAENDCEAA.blacksir>