All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-networking][PATCH v2 1/2] lksctp-tools: add recipe (version 1.0.16)
@ 2014-04-30 15:04 Mihaela Sendrea
  2014-04-30 15:04 ` [meta-networking][PATCH v2 2/2] netperf: enable SCTP support Mihaela Sendrea
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Mihaela Sendrea @ 2014-04-30 15:04 UTC (permalink / raw)
  To: openembedded-devel

This recipe comes from arago-oe-dev:
https://github.com/mrchapp/arago-oe-dev/tree/master/recipes/lksctp-tools

Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
---
 .../lksctp-tools/files/lib_order.patch             |   75 ++++++++++++++++++++
 .../recipes-support/lksctp-tools/lksctp-tools.inc  |   59 +++++++++++++++
 .../lksctp-tools/lksctp-tools_1.0.16.bb            |   10 +++
 3 files changed, 144 insertions(+)
 create mode 100644 meta-networking/recipes-support/lksctp-tools/files/lib_order.patch
 create mode 100644 meta-networking/recipes-support/lksctp-tools/lksctp-tools.inc
 create mode 100644 meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb

diff --git a/meta-networking/recipes-support/lksctp-tools/files/lib_order.patch b/meta-networking/recipes-support/lksctp-tools/files/lib_order.patch
new file mode 100644
index 0000000..eb07d75
--- /dev/null
+++ b/meta-networking/recipes-support/lksctp-tools/files/lib_order.patch
@@ -0,0 +1,75 @@
+From 93fd7448317419594472045663ff13034c31efa9 Mon Sep 17 00:00:00 2001
+From: Vlad Yasevich <vladislav.yasevich@hp.com>
+Date: Wed, 14 Jan 2009 14:30:20 -0500
+Subject: [PATCH] [lib] Fix building of static libraries
+
+When running "./configure --disable-shared --enable-
+static" the build fails with the following error:
+
+gcc -g -Wall -Wstrict-prototypes -Wimplicit-function-
+declaration -g -O2 -o nagle_snd
+nagle_snd.o ../../src/lib/.libs/libsctp.a ../../src/t
+estlib/.libs/libsctputil.a
+../../src/testlib/.libs/libsctputil.a(sctputil.o): In
+function `test_peer_addr':
+/home/roubert/src/lksctp/lksctp-tools-
+1.0.6/src/testlib/sctputil.c:376: undefined reference
+to `sctp_getpaddrs'
+/home/roubert/src/lksctp/lksctp-tools-
+1.0.6/src/testlib/sctputil.c:382: undefined reference
+to `sctp_freepaddrs'
+/home/roubert/src/lksctp/lksctp-tools-
+1.0.6/src/testlib/sctputil.c:416: undefined reference
+to `sctp_freepaddrs'
+/home/roubert/src/lksctp/lksctp-tools-
+1.0.6/src/testlib/sctputil.c:400: undefined reference
+to `sctp_freepaddrs'
+collect2: ld returned 1 exit status
+make[3]: *** [nagle_snd] Error 1
+
+Changing the order of libsctp.a and libsctputil.a
+fixes this. The attached patch updates
+src/apps/Makefile.am and src/func_tests/Makefile.am
+to do that.
+
+Patch submitted by Fredrik Roubert <roubert@sf.net>.
+
+Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
+---
+ src/apps/Makefile.am       |    4 ++--
+ src/func_tests/Makefile.am |    4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/apps/Makefile.am b/src/apps/Makefile.am
+index 515ef96..960cd5e 100644
+--- a/src/apps/Makefile.am
++++ b/src/apps/Makefile.am
+@@ -8,8 +8,8 @@ include $(top_srcdir)/Makefile.dirs
+ INCLUDES = -I. -I$(top_srcdir)/src/include -I$(top_srcdir)/src/testlib 
+ AM_CFLAGS = -g -Wall -Wstrict-prototypes -Wimplicit-function-declaration
+ AM_LDFLAGS = 
+-LDADD = $(top_builddir)/src/lib/libsctp.la \
+-	$(top_builddir)/src/testlib/libsctputil.la
++LDADD = $(top_builddir)/src/testlib/libsctputil.la \
++	$(top_builddir)/src/lib/libsctp.la
+ 
+ # programs to be installed with the distriubution
+ bin_PROGRAMS = sctp_darn sctp_test
+diff --git a/src/func_tests/Makefile.am b/src/func_tests/Makefile.am
+index b985685..44f0e94 100644
+--- a/src/func_tests/Makefile.am
++++ b/src/func_tests/Makefile.am
+@@ -8,8 +8,8 @@ include $(top_srcdir)/Makefile.dirs
+ INCLUDES = -I. -I$(top_srcdir)/src/include -I$(top_srcdir)/src/testlib 
+ AM_CFLAGS = -g -Wall -Wstrict-prototypes -Wimplicit-function-declaration
+ AM_LDFLAGS = -lpthread
+-LDADD = $(top_builddir)/src/lib/libsctp.la \
+-	$(top_builddir)/src/testlib/libsctputil.la
++LDADD = $(top_builddir)/src/testlib/libsctputil.la \
++	$(top_builddir)/src/lib/libsctp.la
+ 
+ V6FLAGS = -DCONFIG_IPV6=1 -DTEST_V6=1 ${DEFS} ${INCLUDES} ${CFLAGS}
+ 
+-- 
+1.7.1
+
diff --git a/meta-networking/recipes-support/lksctp-tools/lksctp-tools.inc b/meta-networking/recipes-support/lksctp-tools/lksctp-tools.inc
new file mode 100644
index 0000000..fd3c285
--- /dev/null
+++ b/meta-networking/recipes-support/lksctp-tools/lksctp-tools.inc
@@ -0,0 +1,59 @@
+DESCRIPTION = "The Linux Kernel Stream Control Transmission Protocol (lksctp) project"
+SECTION = "libs"
+PRIORITY = "optional"
+LICENSE = "LGPLv2"
+
+LIC_FILES_CHKSUM = " \
+  file://COPYING.lib;md5=0a1b79af951c42a9c8573533fbba9a92 \
+  file://COPYING;md5=0c56db0143f4f80c369ee3af7425af6e \
+  "
+
+S = "${WORKDIR}/${BPN}-${PV}"
+
+INC_PR = "r1"
+
+BBCLASSEXTEND = "native"
+
+inherit autotools pkgconfig binconfig
+
+do_install_append_virtclass-native() {
+	:
+}
+
+RREPLACES_lksctp-tools = "lksctp"
+
+LEAD_SONAME = "libsctp.so"
+
+PACKAGES =+ "${PN}-withsctp ${PN}-utils"
+
+FILES_${PN} = " \
+  ${libdir}/libsctp.so.${SOLIBVERSION} \
+  "
+
+FILES_${PN}-withsctp = " \
+  ${libdir}/lksctp-tools/libwithsctp.so.${SOLIBVERSION}"
+
+FILES_${PN}-dev += " \
+  ${libdir}/libsctp.so.${SOLIBMAJORVERSION} \
+  ${libdir}/libsctp.so \
+  ${libdir}/lksctp-tools/libwithsctp.so.${SOLIBMAJORVERSION} \
+  ${libdir}/lksctp-tools/libwithsctp.so \
+  ${datadir}/lksctp-tools/checksctp.c \
+  ${datadir}/lksctp-tools/sctp_socket.c \
+  ${datadir}/lksctp-tools/sctp_status.c \
+  ${datadir}/lksctp-tools/sctp_bind.c \
+  ${datadir}/lksctp-tools/sctp_darn.c \
+  ${datadir}/lksctp-tools/sctp_load_libs.c \
+  ${datadir}/lksctp-tools/sctp_sockopt.c \
+  ${datadir}/lksctp-tools/sctp_socket.h \
+  ${datadir}/lksctp-tools/sctp_test.c \
+  ${datadir}/lksctp-tools/sctp_darn.h \
+  "
+
+FILES_${PN}-utils = " \
+  ${bindir}/sctp_test \
+  ${bindir}/sctp_darn \
+  ${bindir}/checksctp \
+  ${bindir}/withsctp  \
+  ${bindir}/sctp_status \
+  "
diff --git a/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb b/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb
new file mode 100644
index 0000000..964f08c
--- /dev/null
+++ b/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb
@@ -0,0 +1,10 @@
+SOLIBVERSION="1.0.16"
+SOLIBMAJORVERSION="1"
+require lksctp-tools.inc
+PR = "${INC_PR}.0"
+
+FILESEXTRAPATHS = "${THISDIR}/files"
+SRC_URI = "${SOURCEFORGE_MIRROR}/lksctp/lksctp-tools-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "708bb0b5a6806ad6e8d13c55b067518e"
+SRC_URI[sha256sum] = "0903dd526b7f30a89d5031aa2c82757612becc38ed7bc6e4f972f8deae351f26"
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [meta-networking][PATCH v2 2/2] netperf: enable SCTP support
  2014-04-30 15:04 [meta-networking][PATCH v2 1/2] lksctp-tools: add recipe (version 1.0.16) Mihaela Sendrea
@ 2014-04-30 15:04 ` Mihaela Sendrea
  2014-04-30 15:28   ` Otavio Salvador
  2014-04-30 15:38   ` Paul Eggleton
  2014-05-02  3:17 ` [meta-networking][PATCH v2 1/2] lksctp-tools: add recipe (version 1.0.16) Martin Jansa
  2014-07-21 22:22 ` Martin Jansa
  2 siblings, 2 replies; 6+ messages in thread
From: Mihaela Sendrea @ 2014-04-30 15:04 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
---
 meta-networking/recipes-support/netperf/netperf_2.6.0.bb |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta-networking/recipes-support/netperf/netperf_2.6.0.bb b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb
index 45760ad..73a819c 100644
--- a/meta-networking/recipes-support/netperf/netperf_2.6.0.bb
+++ b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb
@@ -27,6 +27,11 @@ CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE"
 CFLAGS_append = "${@base_contains('DISTRO_FEATURES', 'largefile', \
     ' -D_FILE_OFFSET_BITS=64', '', d)}"
 
+PACKAGECONFIG += "sctp"
+PACKAGECONFIG[sctp] = "--enable-sctp"
+DEPENDS += "lksctp-tools"
+RDEPENDS_${PN} += "kernel-module-sctp"
+
 # autotools.bbclass attends to include m4 files with path depth <= 2 by
 # "find ${S} -maxdepth 2 -name \*.m4", so move m4 files from m4/m4.
 do_configure_prepend() {
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [meta-networking][PATCH v2 2/2] netperf: enable SCTP support
  2014-04-30 15:04 ` [meta-networking][PATCH v2 2/2] netperf: enable SCTP support Mihaela Sendrea
@ 2014-04-30 15:28   ` Otavio Salvador
  2014-04-30 15:38   ` Paul Eggleton
  1 sibling, 0 replies; 6+ messages in thread
From: Otavio Salvador @ 2014-04-30 15:28 UTC (permalink / raw)
  To: OpenEmbedded Devel List

On Wed, Apr 30, 2014 at 12:04 PM, Mihaela Sendrea
<mihaela.sendrea@enea.com> wrote:
> Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
> ---
>  meta-networking/recipes-support/netperf/netperf_2.6.0.bb |    5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/meta-networking/recipes-support/netperf/netperf_2.6.0.bb b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb
> index 45760ad..73a819c 100644
> --- a/meta-networking/recipes-support/netperf/netperf_2.6.0.bb
> +++ b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb
> @@ -27,6 +27,11 @@ CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE"
>  CFLAGS_append = "${@base_contains('DISTRO_FEATURES', 'largefile', \
>      ' -D_FILE_OFFSET_BITS=64', '', d)}"
>
> +PACKAGECONFIG += "sctp"
> +PACKAGECONFIG[sctp] = "--enable-sctp"

--disable too?

> +DEPENDS += "lksctp-tools"
> +RDEPENDS_${PN} += "kernel-module-sctp"

Add this in the PACKACONFIG setting.

>  # autotools.bbclass attends to include m4 files with path depth <= 2 by
>  # "find ${S} -maxdepth 2 -name \*.m4", so move m4 files from m4/m4.
>  do_configure_prepend() {
> --
> 1.7.10.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-networking][PATCH v2 2/2] netperf: enable SCTP support
  2014-04-30 15:04 ` [meta-networking][PATCH v2 2/2] netperf: enable SCTP support Mihaela Sendrea
  2014-04-30 15:28   ` Otavio Salvador
@ 2014-04-30 15:38   ` Paul Eggleton
  1 sibling, 0 replies; 6+ messages in thread
From: Paul Eggleton @ 2014-04-30 15:38 UTC (permalink / raw)
  To: Mihaela Sendrea; +Cc: openembedded-devel

Hi Mihaela,

On Wednesday 30 April 2014 17:04:32 Mihaela Sendrea wrote:
> Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
> ---
>  meta-networking/recipes-support/netperf/netperf_2.6.0.bb |    5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/meta-networking/recipes-support/netperf/netperf_2.6.0.bb
> b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb index
> 45760ad..73a819c 100644
> --- a/meta-networking/recipes-support/netperf/netperf_2.6.0.bb
> +++ b/meta-networking/recipes-support/netperf/netperf_2.6.0.bb
> @@ -27,6 +27,11 @@ CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE"
>  CFLAGS_append = "${@base_contains('DISTRO_FEATURES', 'largefile', \
>      ' -D_FILE_OFFSET_BITS=64', '', d)}"
> 
> +PACKAGECONFIG += "sctp"

Can you explain why we should now enable this by default?

Also, even assuming we do, the default value of PACKAGECONFIG should be set 
using ?=, so that it can be easily overridden.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-networking][PATCH v2 1/2] lksctp-tools: add recipe (version 1.0.16)
  2014-04-30 15:04 [meta-networking][PATCH v2 1/2] lksctp-tools: add recipe (version 1.0.16) Mihaela Sendrea
  2014-04-30 15:04 ` [meta-networking][PATCH v2 2/2] netperf: enable SCTP support Mihaela Sendrea
@ 2014-05-02  3:17 ` Martin Jansa
  2014-07-21 22:22 ` Martin Jansa
  2 siblings, 0 replies; 6+ messages in thread
From: Martin Jansa @ 2014-05-02  3:17 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 11948 bytes --]

On Wed, Apr 30, 2014 at 05:04:31PM +0200, Mihaela Sendrea wrote:
> This recipe comes from arago-oe-dev:
> https://github.com/mrchapp/arago-oe-dev/tree/master/recipes/lksctp-tools

Fails to build in world builds

| ../../i586-oe-linux-libtool  --tag=CC   --mode=compile
i586-oe-linux-gcc  -m32 -march=i586
--sysroot=/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/qemux86
-DHAVE_CONFIG_H -I. -I../..  -I../../src/include   -O2 -pipe -g
-feliminate-unused-debug-types -c -o recvmsg.lo recvmsg.c
| i586-oe-linux-libtool: compile:  i586-oe-linux-gcc -m32 -march=i586
--sysroot=/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/qemux86
-DHAVE_CONFIG_H -I. -I../.. -I../../src/include -O2 -pipe -g
-feliminate-unused-debug-types -c sendmsg.c -o sendmsg.o >/dev/null 2>&1
| i586-oe-linux-libtool: compile:  i586-oe-linux-gcc -m32 -march=i586
--sysroot=/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/qemux86
-DHAVE_CONFIG_H -I. -I../.. -I../../src/include -O2 -pipe -g
-feliminate-unused-debug-types -c recvmsg.c  -fPIC -DPIC -o
.libs/recvmsg.o
| i586-oe-linux-libtool: compile:  i586-oe-linux-gcc -m32 -march=i586
--sysroot=/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/qemux86
-DHAVE_CONFIG_H -I. -I../.. -I../../src/include -O2 -pipe -g
-feliminate-unused-debug-types -c addrs.c -o addrs.o >/dev/null 2>&1
| i586-oe-linux-libtool: compile:  i586-oe-linux-gcc -m32 -march=i586
--sysroot=/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/qemux86
-DHAVE_CONFIG_H -I. -I../.. -I../../src/include -O2 -pipe -g
-feliminate-unused-debug-types -c recvmsg.c -o recvmsg.o >/dev/null 2>&1
| ../../i586-oe-linux-libtool  --tag=CC   --mode=link i586-oe-linux-gcc
-m32 -march=i586
--sysroot=/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/qemux86
-O2 -pipe -g -feliminate-unused-debug-types  -Wl,-O1
-Wl,--hash-style=gnu -Wl,--as-needed -o libsctputil.la  sctputil.lo
| ../../i586-oe-linux-libtool  --tag=CC   --mode=link i586-oe-linux-gcc
-m32 -march=i586
--sysroot=/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/qemux86
-O2 -pipe -g -feliminate-unused-debug-types -version-info 1:16:0
-Wl,--version-script=./Versions.map -Wl,-O1 -Wl,--hash-style=gnu
-Wl,--as-needed -o libsctp.la -rpath /usr/lib bindx.lo connectx.lo
peeloff.lo opt_info.lo addrs.lo sendmsg.lo recvmsg.lo
| i586-oe-linux-libtool: link: i586-oe-linux-ar cru .libs/libsctputil.a
.libs/sctputil.o
| i586-oe-linux-libtool: link: i586-oe-linux-ranlib .libs/libsctputil.a
| i586-oe-linux-libtool: link: ( cd ".libs" && rm -f "libsctputil.la" &&
ln -s "../libsctputil.la" "libsctputil.la" )
| make[4]: Leaving directory
`/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/i586-oe-linux/lksctp-tools/1.0.16-r1.0/lksctp-tools-1.0.16/src/testlib'
| i586-oe-linux-libtool: link: i586-oe-linux-gcc  -m32 -march=i586
--sysroot=/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/qemux86
-shared  -fPIC -DPIC  .libs/bindx.o .libs/connectx.o .libs/peeloff.o
.libs/opt_info.o .libs/addrs.o .libs/sendmsg.o .libs/recvmsg.o    -m32
-march=i586
--sysroot=/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/qemux86
-O2 -Wl,--version-script=./Versions.map -Wl,-O1 -Wl,--hash-style=gnu
-Wl,--as-needed   -Wl,-soname -Wl,libsctp.so.1 -o
.libs/libsctp.so.1.0.16
|
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/libexec/i586-oe-linux/gcc/i586-oe-linux/4.8.2/ld:
error: symbol sctp_connectx has undefined version
| collect2: error: ld returned 1 exit status
| make[4]: *** [libsctp.la] Error 1
| make[4]: Leaving directory
`/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/i586-oe-linux/lksctp-tools/1.0.16-r1.0/lksctp-tools-1.0.16/src/lib'
| make[3]: *** [../../src/lib/libsctp.la] Error 2
| make[3]: Leaving directory
`/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/i586-oe-linux/lksctp-tools/1.0.16-r1.0/lksctp-tools-1.0.16/src/apps'
| make[2]: *** [all-recursive] Error 1
| make[2]: Leaving directory
`/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/i586-oe-linux/lksctp-tools/1.0.16-r1.0/lksctp-tools-1.0.16/src'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory
`/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/i586-oe-linux/lksctp-tools/1.0.16-r1.0/lksctp-tools-1.0.16'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/i586-oe-linux/lksctp-tools/1.0.16-r1.0/temp/log.do_compile.22857)
NOTE: recipe lksctp-tools-1.0.16-r1.0: task do_compile: Failed
ERROR: Task 5644
(/home/jenkins/oe/shr-core-branches/shr-core/meta-openembedded/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb,
do_compile) failed with exit code '1'

> 
> Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
> ---
>  .../lksctp-tools/files/lib_order.patch             |   75 ++++++++++++++++++++
>  .../recipes-support/lksctp-tools/lksctp-tools.inc  |   59 +++++++++++++++
>  .../lksctp-tools/lksctp-tools_1.0.16.bb            |   10 +++
>  3 files changed, 144 insertions(+)
>  create mode 100644 meta-networking/recipes-support/lksctp-tools/files/lib_order.patch
>  create mode 100644 meta-networking/recipes-support/lksctp-tools/lksctp-tools.inc
>  create mode 100644 meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb
> 
> diff --git a/meta-networking/recipes-support/lksctp-tools/files/lib_order.patch b/meta-networking/recipes-support/lksctp-tools/files/lib_order.patch
> new file mode 100644
> index 0000000..eb07d75
> --- /dev/null
> +++ b/meta-networking/recipes-support/lksctp-tools/files/lib_order.patch
> @@ -0,0 +1,75 @@
> +From 93fd7448317419594472045663ff13034c31efa9 Mon Sep 17 00:00:00 2001
> +From: Vlad Yasevich <vladislav.yasevich@hp.com>
> +Date: Wed, 14 Jan 2009 14:30:20 -0500
> +Subject: [PATCH] [lib] Fix building of static libraries
> +
> +When running "./configure --disable-shared --enable-
> +static" the build fails with the following error:
> +
> +gcc -g -Wall -Wstrict-prototypes -Wimplicit-function-
> +declaration -g -O2 -o nagle_snd
> +nagle_snd.o ../../src/lib/.libs/libsctp.a ../../src/t
> +estlib/.libs/libsctputil.a
> +../../src/testlib/.libs/libsctputil.a(sctputil.o): In
> +function `test_peer_addr':
> +/home/roubert/src/lksctp/lksctp-tools-
> +1.0.6/src/testlib/sctputil.c:376: undefined reference
> +to `sctp_getpaddrs'
> +/home/roubert/src/lksctp/lksctp-tools-
> +1.0.6/src/testlib/sctputil.c:382: undefined reference
> +to `sctp_freepaddrs'
> +/home/roubert/src/lksctp/lksctp-tools-
> +1.0.6/src/testlib/sctputil.c:416: undefined reference
> +to `sctp_freepaddrs'
> +/home/roubert/src/lksctp/lksctp-tools-
> +1.0.6/src/testlib/sctputil.c:400: undefined reference
> +to `sctp_freepaddrs'
> +collect2: ld returned 1 exit status
> +make[3]: *** [nagle_snd] Error 1
> +
> +Changing the order of libsctp.a and libsctputil.a
> +fixes this. The attached patch updates
> +src/apps/Makefile.am and src/func_tests/Makefile.am
> +to do that.
> +
> +Patch submitted by Fredrik Roubert <roubert@sf.net>.
> +
> +Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
> +---
> + src/apps/Makefile.am       |    4 ++--
> + src/func_tests/Makefile.am |    4 ++--
> + 2 files changed, 4 insertions(+), 4 deletions(-)
> +
> +diff --git a/src/apps/Makefile.am b/src/apps/Makefile.am
> +index 515ef96..960cd5e 100644
> +--- a/src/apps/Makefile.am
> ++++ b/src/apps/Makefile.am
> +@@ -8,8 +8,8 @@ include $(top_srcdir)/Makefile.dirs
> + INCLUDES = -I. -I$(top_srcdir)/src/include -I$(top_srcdir)/src/testlib 
> + AM_CFLAGS = -g -Wall -Wstrict-prototypes -Wimplicit-function-declaration
> + AM_LDFLAGS = 
> +-LDADD = $(top_builddir)/src/lib/libsctp.la \
> +-	$(top_builddir)/src/testlib/libsctputil.la
> ++LDADD = $(top_builddir)/src/testlib/libsctputil.la \
> ++	$(top_builddir)/src/lib/libsctp.la
> + 
> + # programs to be installed with the distriubution
> + bin_PROGRAMS = sctp_darn sctp_test
> +diff --git a/src/func_tests/Makefile.am b/src/func_tests/Makefile.am
> +index b985685..44f0e94 100644
> +--- a/src/func_tests/Makefile.am
> ++++ b/src/func_tests/Makefile.am
> +@@ -8,8 +8,8 @@ include $(top_srcdir)/Makefile.dirs
> + INCLUDES = -I. -I$(top_srcdir)/src/include -I$(top_srcdir)/src/testlib 
> + AM_CFLAGS = -g -Wall -Wstrict-prototypes -Wimplicit-function-declaration
> + AM_LDFLAGS = -lpthread
> +-LDADD = $(top_builddir)/src/lib/libsctp.la \
> +-	$(top_builddir)/src/testlib/libsctputil.la
> ++LDADD = $(top_builddir)/src/testlib/libsctputil.la \
> ++	$(top_builddir)/src/lib/libsctp.la
> + 
> + V6FLAGS = -DCONFIG_IPV6=1 -DTEST_V6=1 ${DEFS} ${INCLUDES} ${CFLAGS}
> + 
> +-- 
> +1.7.1
> +
> diff --git a/meta-networking/recipes-support/lksctp-tools/lksctp-tools.inc b/meta-networking/recipes-support/lksctp-tools/lksctp-tools.inc
> new file mode 100644
> index 0000000..fd3c285
> --- /dev/null
> +++ b/meta-networking/recipes-support/lksctp-tools/lksctp-tools.inc
> @@ -0,0 +1,59 @@
> +DESCRIPTION = "The Linux Kernel Stream Control Transmission Protocol (lksctp) project"
> +SECTION = "libs"
> +PRIORITY = "optional"
> +LICENSE = "LGPLv2"
> +
> +LIC_FILES_CHKSUM = " \
> +  file://COPYING.lib;md5=0a1b79af951c42a9c8573533fbba9a92 \
> +  file://COPYING;md5=0c56db0143f4f80c369ee3af7425af6e \
> +  "
> +
> +S = "${WORKDIR}/${BPN}-${PV}"
> +
> +INC_PR = "r1"
> +
> +BBCLASSEXTEND = "native"
> +
> +inherit autotools pkgconfig binconfig
> +
> +do_install_append_virtclass-native() {
> +	:
> +}
> +
> +RREPLACES_lksctp-tools = "lksctp"
> +
> +LEAD_SONAME = "libsctp.so"
> +
> +PACKAGES =+ "${PN}-withsctp ${PN}-utils"
> +
> +FILES_${PN} = " \
> +  ${libdir}/libsctp.so.${SOLIBVERSION} \
> +  "
> +
> +FILES_${PN}-withsctp = " \
> +  ${libdir}/lksctp-tools/libwithsctp.so.${SOLIBVERSION}"
> +
> +FILES_${PN}-dev += " \
> +  ${libdir}/libsctp.so.${SOLIBMAJORVERSION} \
> +  ${libdir}/libsctp.so \
> +  ${libdir}/lksctp-tools/libwithsctp.so.${SOLIBMAJORVERSION} \
> +  ${libdir}/lksctp-tools/libwithsctp.so \
> +  ${datadir}/lksctp-tools/checksctp.c \
> +  ${datadir}/lksctp-tools/sctp_socket.c \
> +  ${datadir}/lksctp-tools/sctp_status.c \
> +  ${datadir}/lksctp-tools/sctp_bind.c \
> +  ${datadir}/lksctp-tools/sctp_darn.c \
> +  ${datadir}/lksctp-tools/sctp_load_libs.c \
> +  ${datadir}/lksctp-tools/sctp_sockopt.c \
> +  ${datadir}/lksctp-tools/sctp_socket.h \
> +  ${datadir}/lksctp-tools/sctp_test.c \
> +  ${datadir}/lksctp-tools/sctp_darn.h \
> +  "
> +
> +FILES_${PN}-utils = " \
> +  ${bindir}/sctp_test \
> +  ${bindir}/sctp_darn \
> +  ${bindir}/checksctp \
> +  ${bindir}/withsctp  \
> +  ${bindir}/sctp_status \
> +  "
> diff --git a/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb b/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb
> new file mode 100644
> index 0000000..964f08c
> --- /dev/null
> +++ b/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb
> @@ -0,0 +1,10 @@
> +SOLIBVERSION="1.0.16"
> +SOLIBMAJORVERSION="1"
> +require lksctp-tools.inc
> +PR = "${INC_PR}.0"
> +
> +FILESEXTRAPATHS = "${THISDIR}/files"
> +SRC_URI = "${SOURCEFORGE_MIRROR}/lksctp/lksctp-tools-${PV}.tar.gz"
> +
> +SRC_URI[md5sum] = "708bb0b5a6806ad6e8d13c55b067518e"
> +SRC_URI[sha256sum] = "0903dd526b7f30a89d5031aa2c82757612becc38ed7bc6e4f972f8deae351f26"
> -- 
> 1.7.10.4
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-networking][PATCH v2 1/2] lksctp-tools: add recipe (version 1.0.16)
  2014-04-30 15:04 [meta-networking][PATCH v2 1/2] lksctp-tools: add recipe (version 1.0.16) Mihaela Sendrea
  2014-04-30 15:04 ` [meta-networking][PATCH v2 2/2] netperf: enable SCTP support Mihaela Sendrea
  2014-05-02  3:17 ` [meta-networking][PATCH v2 1/2] lksctp-tools: add recipe (version 1.0.16) Martin Jansa
@ 2014-07-21 22:22 ` Martin Jansa
  2 siblings, 0 replies; 6+ messages in thread
From: Martin Jansa @ 2014-07-21 22:22 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 8320 bytes --]

On Wed, Apr 30, 2014 at 05:04:31PM +0200, Mihaela Sendrea wrote:
> This recipe comes from arago-oe-dev:
> https://github.com/mrchapp/arago-oe-dev/tree/master/recipes/lksctp-tools
> 
> Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
> ---
>  .../lksctp-tools/files/lib_order.patch             |   75 ++++++++++++++++++++
>  .../recipes-support/lksctp-tools/lksctp-tools.inc  |   59 +++++++++++++++
>  .../lksctp-tools/lksctp-tools_1.0.16.bb            |   10 +++
>  3 files changed, 144 insertions(+)
>  create mode 100644 meta-networking/recipes-support/lksctp-tools/files/lib_order.patch
>  create mode 100644 meta-networking/recipes-support/lksctp-tools/lksctp-tools.inc
>  create mode 100644 meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb

Can you please check why it currently fails in world builds with:

| arm-oe-linux-gnueabi-libtool: link: arm-oe-linux-gnueabi-gcc  -march=armv5te -marm -mthumb-interwork --sysroot=/home/jenkins/oe/world/shr-core/tmp-eglibc/sysroots/qemuarm -shared  -fPIC -DPIC  .libs/bindx.o .libs/connectx.o .libs/peeloff.o .libs/opt_info.o .libs/addrs.o .libs/sendmsg.o .libs/recvmsg.o    -march=armv5te -marm -mthumb-interwork --sysroot=/home/jenkins/oe/world/shr-core/tmp-eglibc/sysroots/qemuarm -O2 -Wl,--version-script=/home/jenkins/oe/world/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/lksctp-tools/1.0.16-r0/lksctp-tools-1.0.16/src/lib/Versions.map -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed   -Wl,-soname -Wl,libsctp.so.1 -o .libs/libsctp.so.1.0.16
| /home/jenkins/oe/world/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/libexec/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/4.9.0/ld: error: symbol sctp_connectx has undefined version
| collect2: error: ld returned 1 exit status
| make[4]: *** [libsctp.la] Error 1

Whole log:
http://logs.nslu2-linux.org/buildlogs/oe/world/log.dependencies.20140721_022210.log/3_min/failed/lksctp-tools.log

> 
> diff --git a/meta-networking/recipes-support/lksctp-tools/files/lib_order.patch b/meta-networking/recipes-support/lksctp-tools/files/lib_order.patch
> new file mode 100644
> index 0000000..eb07d75
> --- /dev/null
> +++ b/meta-networking/recipes-support/lksctp-tools/files/lib_order.patch
> @@ -0,0 +1,75 @@
> +From 93fd7448317419594472045663ff13034c31efa9 Mon Sep 17 00:00:00 2001
> +From: Vlad Yasevich <vladislav.yasevich@hp.com>
> +Date: Wed, 14 Jan 2009 14:30:20 -0500
> +Subject: [PATCH] [lib] Fix building of static libraries
> +
> +When running "./configure --disable-shared --enable-
> +static" the build fails with the following error:
> +
> +gcc -g -Wall -Wstrict-prototypes -Wimplicit-function-
> +declaration -g -O2 -o nagle_snd
> +nagle_snd.o ../../src/lib/.libs/libsctp.a ../../src/t
> +estlib/.libs/libsctputil.a
> +../../src/testlib/.libs/libsctputil.a(sctputil.o): In
> +function `test_peer_addr':
> +/home/roubert/src/lksctp/lksctp-tools-
> +1.0.6/src/testlib/sctputil.c:376: undefined reference
> +to `sctp_getpaddrs'
> +/home/roubert/src/lksctp/lksctp-tools-
> +1.0.6/src/testlib/sctputil.c:382: undefined reference
> +to `sctp_freepaddrs'
> +/home/roubert/src/lksctp/lksctp-tools-
> +1.0.6/src/testlib/sctputil.c:416: undefined reference
> +to `sctp_freepaddrs'
> +/home/roubert/src/lksctp/lksctp-tools-
> +1.0.6/src/testlib/sctputil.c:400: undefined reference
> +to `sctp_freepaddrs'
> +collect2: ld returned 1 exit status
> +make[3]: *** [nagle_snd] Error 1
> +
> +Changing the order of libsctp.a and libsctputil.a
> +fixes this. The attached patch updates
> +src/apps/Makefile.am and src/func_tests/Makefile.am
> +to do that.
> +
> +Patch submitted by Fredrik Roubert <roubert@sf.net>.
> +
> +Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
> +---
> + src/apps/Makefile.am       |    4 ++--
> + src/func_tests/Makefile.am |    4 ++--
> + 2 files changed, 4 insertions(+), 4 deletions(-)
> +
> +diff --git a/src/apps/Makefile.am b/src/apps/Makefile.am
> +index 515ef96..960cd5e 100644
> +--- a/src/apps/Makefile.am
> ++++ b/src/apps/Makefile.am
> +@@ -8,8 +8,8 @@ include $(top_srcdir)/Makefile.dirs
> + INCLUDES = -I. -I$(top_srcdir)/src/include -I$(top_srcdir)/src/testlib 
> + AM_CFLAGS = -g -Wall -Wstrict-prototypes -Wimplicit-function-declaration
> + AM_LDFLAGS = 
> +-LDADD = $(top_builddir)/src/lib/libsctp.la \
> +-	$(top_builddir)/src/testlib/libsctputil.la
> ++LDADD = $(top_builddir)/src/testlib/libsctputil.la \
> ++	$(top_builddir)/src/lib/libsctp.la
> + 
> + # programs to be installed with the distriubution
> + bin_PROGRAMS = sctp_darn sctp_test
> +diff --git a/src/func_tests/Makefile.am b/src/func_tests/Makefile.am
> +index b985685..44f0e94 100644
> +--- a/src/func_tests/Makefile.am
> ++++ b/src/func_tests/Makefile.am
> +@@ -8,8 +8,8 @@ include $(top_srcdir)/Makefile.dirs
> + INCLUDES = -I. -I$(top_srcdir)/src/include -I$(top_srcdir)/src/testlib 
> + AM_CFLAGS = -g -Wall -Wstrict-prototypes -Wimplicit-function-declaration
> + AM_LDFLAGS = -lpthread
> +-LDADD = $(top_builddir)/src/lib/libsctp.la \
> +-	$(top_builddir)/src/testlib/libsctputil.la
> ++LDADD = $(top_builddir)/src/testlib/libsctputil.la \
> ++	$(top_builddir)/src/lib/libsctp.la
> + 
> + V6FLAGS = -DCONFIG_IPV6=1 -DTEST_V6=1 ${DEFS} ${INCLUDES} ${CFLAGS}
> + 
> +-- 
> +1.7.1
> +
> diff --git a/meta-networking/recipes-support/lksctp-tools/lksctp-tools.inc b/meta-networking/recipes-support/lksctp-tools/lksctp-tools.inc
> new file mode 100644
> index 0000000..fd3c285
> --- /dev/null
> +++ b/meta-networking/recipes-support/lksctp-tools/lksctp-tools.inc
> @@ -0,0 +1,59 @@
> +DESCRIPTION = "The Linux Kernel Stream Control Transmission Protocol (lksctp) project"
> +SECTION = "libs"
> +PRIORITY = "optional"
> +LICENSE = "LGPLv2"
> +
> +LIC_FILES_CHKSUM = " \
> +  file://COPYING.lib;md5=0a1b79af951c42a9c8573533fbba9a92 \
> +  file://COPYING;md5=0c56db0143f4f80c369ee3af7425af6e \
> +  "
> +
> +S = "${WORKDIR}/${BPN}-${PV}"
> +
> +INC_PR = "r1"
> +
> +BBCLASSEXTEND = "native"
> +
> +inherit autotools pkgconfig binconfig
> +
> +do_install_append_virtclass-native() {
> +	:
> +}
> +
> +RREPLACES_lksctp-tools = "lksctp"
> +
> +LEAD_SONAME = "libsctp.so"
> +
> +PACKAGES =+ "${PN}-withsctp ${PN}-utils"
> +
> +FILES_${PN} = " \
> +  ${libdir}/libsctp.so.${SOLIBVERSION} \
> +  "
> +
> +FILES_${PN}-withsctp = " \
> +  ${libdir}/lksctp-tools/libwithsctp.so.${SOLIBVERSION}"
> +
> +FILES_${PN}-dev += " \
> +  ${libdir}/libsctp.so.${SOLIBMAJORVERSION} \
> +  ${libdir}/libsctp.so \
> +  ${libdir}/lksctp-tools/libwithsctp.so.${SOLIBMAJORVERSION} \
> +  ${libdir}/lksctp-tools/libwithsctp.so \
> +  ${datadir}/lksctp-tools/checksctp.c \
> +  ${datadir}/lksctp-tools/sctp_socket.c \
> +  ${datadir}/lksctp-tools/sctp_status.c \
> +  ${datadir}/lksctp-tools/sctp_bind.c \
> +  ${datadir}/lksctp-tools/sctp_darn.c \
> +  ${datadir}/lksctp-tools/sctp_load_libs.c \
> +  ${datadir}/lksctp-tools/sctp_sockopt.c \
> +  ${datadir}/lksctp-tools/sctp_socket.h \
> +  ${datadir}/lksctp-tools/sctp_test.c \
> +  ${datadir}/lksctp-tools/sctp_darn.h \
> +  "
> +
> +FILES_${PN}-utils = " \
> +  ${bindir}/sctp_test \
> +  ${bindir}/sctp_darn \
> +  ${bindir}/checksctp \
> +  ${bindir}/withsctp  \
> +  ${bindir}/sctp_status \
> +  "
> diff --git a/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb b/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb
> new file mode 100644
> index 0000000..964f08c
> --- /dev/null
> +++ b/meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.16.bb
> @@ -0,0 +1,10 @@
> +SOLIBVERSION="1.0.16"
> +SOLIBMAJORVERSION="1"
> +require lksctp-tools.inc
> +PR = "${INC_PR}.0"
> +
> +FILESEXTRAPATHS = "${THISDIR}/files"
> +SRC_URI = "${SOURCEFORGE_MIRROR}/lksctp/lksctp-tools-${PV}.tar.gz"
> +
> +SRC_URI[md5sum] = "708bb0b5a6806ad6e8d13c55b067518e"
> +SRC_URI[sha256sum] = "0903dd526b7f30a89d5031aa2c82757612becc38ed7bc6e4f972f8deae351f26"
> -- 
> 1.7.10.4
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-07-21 22:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-30 15:04 [meta-networking][PATCH v2 1/2] lksctp-tools: add recipe (version 1.0.16) Mihaela Sendrea
2014-04-30 15:04 ` [meta-networking][PATCH v2 2/2] netperf: enable SCTP support Mihaela Sendrea
2014-04-30 15:28   ` Otavio Salvador
2014-04-30 15:38   ` Paul Eggleton
2014-05-02  3:17 ` [meta-networking][PATCH v2 1/2] lksctp-tools: add recipe (version 1.0.16) Martin Jansa
2014-07-21 22:22 ` Martin Jansa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.