[Oisf-users] Error in compiling the pf_ring support

Phillip Bailey phillip at bailey.st
Sun Mar 20 11:59:32 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi Victor,

I'm following exactly step by step the INSTALL.PF_RING howto,
at the point when I run dkms status I get back this error.
But also says that the pf_ring is installed, I'm puzzled.



root at Smooth-Sec src/pf_ring-4# dkms status
dkms.conf: Error! No 'DEST_MODULE_LOCATION' directive specified.
dkms.conf: Error! No 'PACKAGE_NAME' directive specified.
dkms.conf: Error! No 'PACKAGE_VERSION' directive specified.
e1000e-pf_ring, 1.0.15, 2.6.32-30-generic, i686: installed
pf_ring, 4, 2.6.32-30-generic, i686: installed


Best,
Phillip


PS. here you can find my step by step attempt.

uname -a
Linux Smooth-Sec 2.6.32-30-generic #59-Ubuntu SMP Tue Mar 1 21:30:21 UTC
2011 i686 GNU/Linux


cd /usr/src/

svn --force export https://svn.ntop.org/svn/ntop/trunk/PF_RING/
PF_RING_CURRENT_SVN


ls  /usr/src/
PF_RING_CURRENT_SVN  linux-headers-2.6.32-30
linux-headers-2.6.32-30-generic


#Create the DKMS build directory and copy files over for the main
PF_RING module
mkdir /usr/src/pf_ring-4
cp -Rf /usr/src/PF_RING_CURRENT_SVN/kernel/* /usr/src/pf_ring-4/
cd /usr/src/pf_ring-4/



#Create a file called dkms.conf and place the following into the file.
nano dkms.conf

PACKAGE_NAME="pf_ring"
PACKAGE_VERSION="4"
BUILT_MODULE_NAME[0]="pf_ring"
DEST_MODULE_LOCATION[0]="/kernel/net/pf_ring/"
AUTOINSTALL="yes"


#Build and install the module we don't build a deb as currently this
appears to be broken in Ubuntu-10.04
dkms add -m pf_ring -v 4
dkms build -m pf_ring -v 4
dkms install -m pf_ring -v 4

OUTPUTS

root at Smooth-Sec src/pf_ring-4# dkms add -m pf_ring -v 4

Creating symlink /var/lib/dkms/pf_ring/4/source ->
                 /usr/src/pf_ring-4

DKMS: add Completed.
root at Smooth-Sec src/pf_ring-4# dkms build -m pf_ring -v 4

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=2.6.32-30-generic -C
/lib/modules/2.6.32-30-generic/build M=/var/lib/dkms/pf_ring/4/build......
cleaning build area....

DKMS: build Completed.
root at Smooth-Sec src/pf_ring-4# dkms install -m pf_ring -v 4

pf_ring.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.32-30-generic/updates/dkms/

depmod....

DKMS: install Completed.


root at Smooth-Sec src/pf_ring-4# dkms status
dkms.conf: Error! No 'DEST_MODULE_LOCATION' directive specified.
dkms.conf: Error! No 'PACKAGE_NAME' directive specified.
dkms.conf: Error! No 'PACKAGE_VERSION' directive specified.
e1000e-pf_ring, 1.0.15, 2.6.32-30-generic, i686: installed
pf_ring, 4, 2.6.32-30-generic, i686: installed






















On 03/20/2011 10:05 AM, Victor Julien wrote:
> Phillip,
> 
> Did you try following the INSTALL.PF_RING document in the doc/ folder of
> the source? It contains all steps to get to a working pfring. You can
> skip the parts related to the e1000e driver if you don't have that.
> 
> https://redmine.openinfosecfoundation.org/projects/suricata/repository/revisions/master/entry/doc/INSTALL.PF_RING
> 
> In this do the configure options needed for PF_RING are also listed.
> 
> Cheers,
> Victor
> 
> On 03/20/2011 08:55 AM, Phillip Bailey wrote:
>>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJNhewcAAoJENNBJKHbaDgTYcwH+gMIA/v/BU9TEJGhpnMI+yrA
6kCc1RE4ordn2dsHSa/c0aah/VdGCoWKI3Q4IQ+ZGnS6T4q2dSVYhYv8A62owR7t
q/P99qBMz/MvVST3mHGj+GryzpuXt7wsljJWZLNIeYVKvLFjKh4zXpMwqlr0Mnd4
JGAS1YcYuJ84rNC6/gqYjVPOGeXVZdaDWnggYAxiwDk0nLWl7RBOCxM4xVHxvoht
PYEDmrikbZvLIdxOfSD8r4eUjCBMkD2DtwDfM6/jRfoKoJHakDXGetBI8OeUab5T
npc+lUJ7rHh5t3YazBxoHx+cCPD2YRSOztc9yrZCFhDulzuUiax+pN4aWh1wC2o=
=xY2j
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xDB683813.asc
Type: application/pgp-keys
Size: 1719 bytes
Desc: not available
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-users/attachments/20110320/6017ab84/attachment.key>


More information about the Oisf-users mailing list