Skip to contentSkip to conversation

pf-ring: update to r4384 to fix `pf_ring.c:329:3: error: implicit declaration of function 'vmalloc_32'`

PATCH In review Paul Menzel 3 participants 4 messages Nov 3, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pf-ring: update to r4384 to fix `pf_ring.c:329:3: error: implicit declaration of function 'vmalloc_32'`

Date: Sun, 31 Oct 2010 22:06:56 +0100

Task compile failed with the following error.

	[…]
	| /oe/build-minimal-eglibc/minimal-dev/work/beagleboard-oe-linux-gnueabi/pf-ring-4.4.0+svnr4326-r90/kernel/pf_ring.c: In function 'rvmalloc':
	| /oe/build-minimal-eglibc/minimal-dev/work/beagleboard-oe-linux-gnueabi/pf-ring-4.4.0+svnr4326-r90/kernel/pf_ring.c:329:3: error: implicit declaration of function 'vmalloc_32'
	| /oe/build-minimal-eglibc/minimal-dev/work/beagleboard-oe-linux-gnueabi/pf-ring-4.4.0+svnr4326-r90/kernel/pf_ring.c:329:7: warning: assignment makes pointer from integer without a cast
	| /oe/build-minimal-eglibc/minimal-dev/work/beagleboard-oe-linux-gnueabi/pf-ring-4.4.0+svnr4326-r90/kernel/pf_ring.c: In function 'rvfree':
	| /oe/build-minimal-eglibc/minimal-dev/work/beagleboard-oe-linux-gnueabi/pf-ring-4.4.0+svnr4326-r90/kernel/pf_ring.c:377:3: error: implicit declaration of function 'vfree'
	[…]

	Build Configuration:
	BB_VERSION        = "1.10.0"
	METADATA_BRANCH   = "org.openembedded.dev"
	METADATA_REVISION = "8fc09c071a6fba0766c3b002209c758572298d26"
	TARGET_ARCH       = "arm"
	TARGET_OS         = "linux-gnueabi"
	MACHINE           = "beagleboard"
	DISTRO            = "minimal"
	DISTRO_VERSION    = "dev-snapshot-20101103"
	TARGET_FPU        = "hard"

Updating to revision 4384 fixes the problem. It was build tested with minimal, minimal-uclibc, angstrom-2008.1 and angstrom-2010.x for MACHINE = "beagleboard".

---
 recipes/pf_ring/pf-ring_svn.bb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
recipes/pf_ring/pf-ring_svn.bb +1 -1
index 55b5971..0b67016 100644
@@ -6,7 +6,7 @@ PV = "4.4.0+svnr${SRCPV}"
 
 S = "${WORKDIR}/kernel"
 
-SRCREV = "4326"
+SRCREV = "4384"
 SRC_URI = "svn://svn.ntop.org/svn/ntop/trunk/PF_RING;module=kernel;proto=https"
 
 inherit module
Signature · 1 line
1.7.2.3
#1 lore raw

PATCH 1/1 libpfring: update SVN revision to 4384

I guess it should be in sync with pf-ring kernel module as using module revision 4384 with lib revision 4326 results in "mmap() failed" message on tcpdump (using patched libpcap to support pf_ring) exit.

---
 .../libpfring/libpfring-makefile-fixes.patch       |   16 ++++++++--------
 recipes/pf_ring/libpfring_svn.bb                   |    2 +-
 2 files changed, 9 insertions(+), 9 deletions(-)
recipes/pf_ring/libpfring/libpfring-makefile-fixes.patch +8 -8
index 721f904..0344a7d 100644
@@ -1,7 +1,7 @@
 Index: Makefile
 ===================================================================
---- Makefile.orig	2010-08-02 17:31:55.000000000 +0400
-+++ Makefile	2010-08-03 12:56:31.000000000 +0400
+--- Makefile.orig	2010-11-03 13:37:30.000000000 +0300
++++ Makefile	2010-11-03 13:39:18.000000000 +0300
 @@ -8,7 +8,7 @@
  #
  # Installation directory
@@ -11,16 +11,16 @@ Index: Makefile
  
  #
  # Search directories
-@@ -29,6 +29,8 @@
+@@ -32,6 +32,8 @@
  #
- # C compiler and flags
+ # CROSS_COMPILE=arm-mv5sft-linux-gnueabi-
  #
 +AR        = ar
 +RANLIB    = ranlib
- CC        = gcc
- CFLAGS    = -g -O2 -Wall -fPIC ${INCLUDE} ${DNA_DEFINE}
- LDFLAGS   = -shared
-@@ -44,26 +46,29 @@
+ CC        = ${CROSS_COMPILE}gcc
+ CFLAGS    = -g  -Wall -fPIC ${INCLUDE} ${DNA_DEFINE}
+ LDFLAGS   = -g -shared
+@@ -47,26 +49,29 @@
  # Main targets
  #
  STATICLIB  = libpfring.a
recipes/pf_ring/libpfring_svn.bb +1 -1
index 06aa311..a903e3a 100644
@@ -7,7 +7,7 @@ PV = "4.4.0+svnr${SRCREV}"
 
 S = "${WORKDIR}/lib"
 
-SRCREV = "4326"
+SRCREV = "4384"
 SRC_URI = " \
 	svn://svn.ntop.org/svn/ntop/trunk/PF_RING/userland;module=lib;proto=https \
 	file://libpfring-makefile-fixes.patch;striplevel=0 \
Signature · 1 line
1.5.6.5
Acked-by on v1 1/1
#2 lore raw

Re: [PATCH] libpfring: update SVN revision to 4384

Quoted 5 lines · Roman I Khimov

I guess it should be in sync with pf-ring kernel module as using module revision 4384 with lib revision 4326 results in "mmap() failed" message on tcpdump (using patched libpcap to support pf_ring) exit.

Quoted 64 lines

---
 .../libpfring/libpfring-makefile-fixes.patch       |   16 ++++++++-------- recipes/pf_ring/libpfring_svn.bb                   |    2 +-

 2 files changed, 9 insertions(+), 9 deletions(-)
recipes/pf_ring/libpfring/libpfring-makefile-fixes.patch +0 -0
index 721f904..0344a7d 100644
@@ -1,7 +1,7 @@

 Index: Makefile
 ===================================================================
---- Makefile.orig      2010-08-02 17:31:55.000000000 +0400 -+++ Makefile   2010-08-03 12:56:31.000000000 +0400 +--- Makefile.orig      2010-11-03 13:37:30.000000000 +0300 ++++ Makefile   2010-11-03 13:39:18.000000000 +0300 @@ -8,7 +8,7 @@
 #
 # Installation directory

recipes/pf_ring/libpfring/libpfring-makefile-fixes.patch +2 -2
@@ -11,16 +11,16 @@ Index: Makefile
 
  #
  # Search directories
-@@ -29,6 +29,8 @@
+@@ -32,6 +32,8 @@
  #
- # C compiler and flags
+ # CROSS_COMPILE=arm-mv5sft-linux-gnueabi-
  #

 +AR        = ar
 +RANLIB    = ranlib
- CC        = gcc
- CFLAGS    = -g -O2 -Wall -fPIC ${INCLUDE} ${DNA_DEFINE}
- LDFLAGS   = -shared
-@@ -44,26 +46,29 @@
+ CC        = ${CROSS_COMPILE}gcc
+ CFLAGS    = -g  -Wall -fPIC ${INCLUDE} ${DNA_DEFINE}
+ LDFLAGS   = -g -shared
+@@ -47,26 +49,29 @@
 # Main targets
 #
 STATICLIB  = libpfring.a

recipes/pf_ring/libpfring_svn.bb +0 -0
index 06aa311..a903e3a 100644
@@ -7,7 +7,7 @@ PV = "4.4.0+svnr${SRCREV}"
 

 S = "${WORKDIR}/lib"

recipes/pf_ring/libpfring_svn.bb +1 -1
-SRCREV = "4326"
+SRCREV = "4384"

 SRC_URI = " \
       svn://svn.ntop.org/svn/ntop/trunk/PF_RING/userland;module=lib;proto=https \
       file://libpfring-makefile-fixes.patch;striplevel=0 \
--
1.5.6.5

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Acked-by on v1 1/1
#3 lore raw
In reply to Paul Menzel

В сообщении от Среда 03 ноября 2010 12:14:39 автор Paul Menzel написал:

Quoted 27 lines
	| /oe/build-minimal-eglibc/minimal-dev/work/beagleboard-oe-linux-gnueabi/p
	| f-ring-4.4.0+svnr4326-r90/kernel/pf_ring.c: In function 'rvmalloc':
	| /oe/build-minimal-eglibc/minimal-dev/work/beagleboard-oe-linux-gnueabi/
	| pf-ring-4.4.0+svnr4326-r90/kernel/pf_ring.c:329:3: error: implicit
	| declaration of function 'vmalloc_32'
	| /oe/build-minimal-eglibc/minimal-dev/work/beagleboard-oe-linux-gnueabi/
	| pf-ring-4.4.0+svnr4326-r90/kernel/pf_ring.c:329:7: warning: assignment
	| makes pointer from integer without a cast
	| /oe/build-minimal-eglibc/minimal-dev/work/beagleboard-oe-linux-gnueabi/
	| pf-ring-4.4.0+svnr4326-r90/kernel/pf_ring.c: In function 'rvfree':
	| /oe/build-minimal-eglibc/minimal-dev/work/beagleboard-oe-linux-gnueabi/
	| pf-ring-4.4.0+svnr4326-r90/kernel/pf_ring.c:377:3: error: implicit
	| declaration of function 'vfree'

[…]

Build Configuration:
BB_VERSION = "1.10.0"
METADATA_BRANCH = "org.openembedded.dev"
METADATA_REVISION = "8fc09c071a6fba0766c3b002209c758572298d26"
TARGET_ARCH = "arm"
TARGET_OS = "linux-gnueabi"
MACHINE = "beagleboard"
DISTRO = "minimal"
DISTRO_VERSION = "dev-snapshot-20101103"
TARGET_FPU = "hard"

Quoted 3 lines

Updating to revision 4384 fixes the problem. It was build tested with minimal, minimal-uclibc, angstrom-2008.1 and angstrom-2010.x for MACHINE = "beagleboard".

Run-tested on x86_64 with custom distro, please also try my follow-up patch.