[oe-commits] Khem Raj : net-snmp: Fix build error ./.libs/libnetsnmpmibs.so: undefined reference to `pthread_create'

git version control git at git.openembedded.org
Wed Aug 3 19:34:38 UTC 2011


Module: openembedded.git
Branch: 2011.03-maintenance
Commit: 02a52e424ceb86ca0a83bd69b955087f26c7a813
URL:    http://git.openembedded.org/?p=openembedded.git&a=commit;h=02a52e424ceb86ca0a83bd69b955087f26c7a813

Author: Khem Raj <raj.khem at gmail.com>
Date:   Fri Mar  4 20:30:33 2011 -0800

net-snmp: Fix build error ./.libs/libnetsnmpmibs.so: undefined reference to `pthread_create'

Do not override do_configure and pass endianness information in
EXTRA_OECONF, also move common settings from EXTRA_OECONF in recipes to
inc file.

Let build go in parallel for svn recipe. It works !

Signed-off-by: Khem Raj <raj.khem at gmail.com>

---

 recipes/net-snmp/net-snmp.inc        |    8 ++------
 recipes/net-snmp/net-snmp_5.1.2.bb   |    3 +--
 recipes/net-snmp/net-snmp_5.4.1.bb   |    5 ++---
 recipes/net-snmp/net-snmp_5.4.2.1.bb |    5 ++---
 recipes/net-snmp/net-snmp_svn.bb     |   16 ++--------------
 5 files changed, 9 insertions(+), 28 deletions(-)

diff --git a/recipes/net-snmp/net-snmp.inc b/recipes/net-snmp/net-snmp.inc
index 92df575..1b604f5 100644
--- a/recipes/net-snmp/net-snmp.inc
+++ b/recipes/net-snmp/net-snmp.inc
@@ -12,12 +12,8 @@ inherit autotools update-rc.d siteinfo
 
 TARGET_CC_ARCH += "${LDFLAGS}"
 
-do_configure() {
-        # Additional flag based on target endiness (see siteinfo.bbclass)
-        ENDIANESS="${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}"
-        oenote Determined endianess as: $ENDIANESS
-        oe_runconf $ENDIANESS
-}
+EXTRA_OECONF = "--enable-shared --disable-manuals --with-defaults \
+${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}"
 
 do_install_append() {
         install -d ${D}${sysconfdir}/snmp
diff --git a/recipes/net-snmp/net-snmp_5.1.2.bb b/recipes/net-snmp/net-snmp_5.1.2.bb
index 45694c3..2b7ec4f 100644
--- a/recipes/net-snmp/net-snmp_5.1.2.bb
+++ b/recipes/net-snmp/net-snmp_5.1.2.bb
@@ -1,5 +1,5 @@
 require net-snmp.inc
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \
 	file://uclibc-fix.patch \
@@ -10,7 +10,6 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \
 inherit autotools
 
 PARALLEL_MAKE = ""
-EXTRA_OECONF = "--enable-shared --disable-manuals --with-defaults"
 EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"
 
 CONFFILES_${PN}_nylon = "${sysconfdir}/snmp/snmpd.conf ${sysconfdir}/snmp/snmptrapd.conf"
diff --git a/recipes/net-snmp/net-snmp_5.4.1.bb b/recipes/net-snmp/net-snmp_5.4.1.bb
index bd97827..ac72849 100644
--- a/recipes/net-snmp/net-snmp_5.4.1.bb
+++ b/recipes/net-snmp/net-snmp_5.4.1.bb
@@ -1,5 +1,5 @@
 require net-snmp.inc
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \
         file://configure-tail.patch \
@@ -7,8 +7,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \
         file://snmpd.conf \
         file://snmptrapd.conf"
 
-EXTRA_OECONF = "--enable-shared --disable-manuals --with-defaults \
-                --disable-embedded-perl --with-perl-modules=no"
+EXTRA_OECONF += "--disable-embedded-perl --with-perl-modules=no"
 EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"
 
 do_configure_prepend() {
diff --git a/recipes/net-snmp/net-snmp_5.4.2.1.bb b/recipes/net-snmp/net-snmp_5.4.2.1.bb
index 1f80cbc..b043d07 100644
--- a/recipes/net-snmp/net-snmp_5.4.2.1.bb
+++ b/recipes/net-snmp/net-snmp_5.4.2.1.bb
@@ -1,5 +1,5 @@
 require net-snmp.inc
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \
         file://configure-tail.patch \
@@ -8,8 +8,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \
         file://snmpd.conf \
         file://snmptrapd.conf"
 
-EXTRA_OECONF = "--enable-shared --disable-manuals --with-defaults \
-                --disable-embedded-perl --with-perl-modules=no"
+EXTRA_OECONF += "--disable-embedded-perl --with-perl-modules=no"
 EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"
 
 do_configure_prepend() {
diff --git a/recipes/net-snmp/net-snmp_svn.bb b/recipes/net-snmp/net-snmp_svn.bb
index 689a416..2a75722 100644
--- a/recipes/net-snmp/net-snmp_svn.bb
+++ b/recipes/net-snmp/net-snmp_svn.bb
@@ -1,6 +1,6 @@
 require net-snmp.inc
 DEPENDS += "libtool libtool-native libtool-cross"
-SRCREV = "17367"
+SRCREV = "20069"
 PR = "${INC_PR}.0"
 
 S = "${WORKDIR}/net-snmp"
@@ -10,19 +10,7 @@ SRC_URI = "svn://net-snmp.svn.sourceforge.net/svnroot/net-snmp/trunk;module=net-
         file://snmpd.conf \
         file://snmptrapd.conf"
 
-EXTRA_OECONF = "--enable-shared --disable-manuals --with-defaults \
-                --disable-embedded-perl --with-perl-modules=no GREP=/bin/grep SED=/bin/sed"
+EXTRA_OECONF += "--disable-embedded-perl --with-perl-modules=no GREP=/bin/grep SED=/bin/sed"
 EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"
 
-PARALLEL_MAKE = ""
 CCACHE = ""
-
-do_configure_prepend() {
-    gnu-configize -f
-    # We better change sources and re-autoconf here, but
-    # required autoconf is too new for us.
-    sed -e '/echo.*\".*\\\\.*\"/s/echo/echo -e/g' \
-        -e 's/tail -1/tail -n 1/g'                \
-        -i configure
-}
-





More information about the Openembedded-commits mailing list