Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 2010 10:44:56 +0600
From:      "Rushan R. Shaymardanov" <rush@clink.ru>
To:        freebsd-pf@freebsd.org
Subject:   Compiling and loading ng_pf
Message-ID:  <4C4529C8.9040201@clink.ru>

next in thread | raw e-mail | index | archive | help
Hello. I'm trying to use this patch to compile ng_pf:
http://lists.freebsd.org/pipermail/freebsd-bugs/2007-December/027288.html

During compiling process, I have this error:

cc1: warnings being treated as errors
/usr/src/sys/modules/netgraph/pf/../../../netgraph/ng_pf.c: In function
'ng_pf_rcvdata':
/usr/src/sys/modules/netgraph/pf/../../../netgraph/ng_pf.c:616: warning:
implicit declaration of function 'pf_purge_expired_state'
/usr/src/sys/modules/netgraph/pf/../../../netgraph/ng_pf.c:616: warning:
nested extern declaration of 'pf_purge_expired_state'

When I ignoring this by adding WERROR= to
sys/modules/netgraph/pf/Makefile , kernel is successfully built.

But when I try to load module, I have:

kldload: can't load ng_pf: No such file or directory

And a message to syslog:

link_elf: symbol pf_purge_expired_state undefined

File ng_pf.ko exists:

# file /boot/kernel/ng_pf.ko
/boot/kernel/ng_pf.ko: ELF 32-bit LSB shared object, Intel 80386,
version 1 (FreeBSD), dynamically linked, not stripped

P.S. Sorry for my English

Shaymardanov Rushan



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