All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [oe-commits] [meta-openembedded] 44/47: tsocks: Add -lssp_nonshared to LIBS explicitly on musl
       [not found] ` <20180925161843.DFECE234E18@git.openembedded.org>
@ 2018-09-27 17:41   ` Martin Jansa
  2018-09-27 17:44     ` [meta-networking][PATCH] tsocks: use -lssp_nonshared also for glibc Martin Jansa
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Jansa @ 2018-09-27 17:41 UTC (permalink / raw)
  To: openembedded-devel, Khem Raj; +Cc: openembedded-commits

Is this really musl specific? I'm seeing the same failure with glibc
qemux86 build with security_flags included:

| tsocks.c:954: error: undefined reference to '__stack_chk_fail_local'
| tsocks.c:842: error: undefined reference to '__stack_chk_fail_local'
| tsocks.c:339: error: undefined reference to '__stack_chk_fail_local'
| tsocks.c:522: error: undefined reference to '__stack_chk_fail_local'
| collect2: error: ld returned 1 exit status
| Makefile:53: recipe for target 'libtsocks.so.1.8' failed
| make: *** [libtsocks.so.1.8] Error 1

On Tue, Sep 25, 2018 at 6:19 PM <git@git.openembedded.org> wrote:

> This is an automated email from the git hooks/post-receive script.
>
> khem pushed a commit to branch master-next
> in repository meta-openembedded.
>
> commit 4a0e53cb229f97e9cc3dd925b8db334e07b85768
> Author: Khem Raj <raj.khem@gmail.com>
> AuthorDate: Mon Sep 24 10:57:13 2018 -0700
>
>     tsocks: Add -lssp_nonshared to LIBS explicitly on musl
>
>     tsocks uses -nostdlib while linking shared library, which is not ideal
>     but instead of chasing that and assuming there is a reason for that, we
>     add -lssp_noshared to linker command at the end so it can build when
>     security flags are enabled
>
>     Fixes
>     tsocks.c:954: undefined reference to `__stack_chk_fail_local'
>
>     Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
> b/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
> index b2757f6..7291357 100644
> --- a/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
> +++ b/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
> @@ -18,11 +18,13 @@ SRC_URI[sha256sum] =
> "849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863
>
>  inherit autotools-brokensep
>
> +LIBS_append_libc-musl = " -lssp_nonshared"
> +
>  S = "${WORKDIR}/tsocks-1.8"
>
>  FILES_${PN} = "${libdir}/* ${bindir}/tsocks"
>  FILES_${PN}-dev = ""
>  INSANE_SKIP_${PN} = "dev-so"
>
> -EXTRA_OEMAKE = "SHCC='${CC} -fPIC ${LDFLAGS}'"
> +EXTRA_OEMAKE = "SHCC='${CC} -fPIC ${LDFLAGS}' LIBS='${LIBS}'"
>
>
> --
> To stop receiving notification emails like this one, please contact
> the administrator of this repository.
> --
> _______________________________________________
> Openembedded-commits mailing list
> Openembedded-commits@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-commits
>


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

* [meta-networking][PATCH] tsocks: use -lssp_nonshared also for glibc
  2018-09-27 17:41   ` [oe-commits] [meta-openembedded] 44/47: tsocks: Add -lssp_nonshared to LIBS explicitly on musl Martin Jansa
@ 2018-09-27 17:44     ` Martin Jansa
  2018-09-27 18:18       ` Khem Raj
  2018-09-29  7:39       ` Martin Jansa
  0 siblings, 2 replies; 4+ messages in thread
From: Martin Jansa @ 2018-09-27 17:44 UTC (permalink / raw)
  To: openembedded-devel

* the issue is reproducible also in glibc builds
* fixes:
  | tsocks.c:954: error: undefined reference to '__stack_chk_fail_local'
  | tsocks.c:842: error: undefined reference to '__stack_chk_fail_local'
  | tsocks.c:339: error: undefined reference to '__stack_chk_fail_local'
  | tsocks.c:522: error: undefined reference to '__stack_chk_fail_local'
  | collect2: error: ld returned 1 exit status
  | Makefile:53: recipe for target 'libtsocks.so.1.8' failed
  | make: *** [libtsocks.so.1.8] Error 1

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb b/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
index 72913579af..790a6cc795 100644
--- a/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
+++ b/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
@@ -18,7 +18,7 @@ SRC_URI[sha256sum] = "849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863
 
 inherit autotools-brokensep
 
-LIBS_append_libc-musl = " -lssp_nonshared"
+LIBS = "-lssp_nonshared"
 
 S = "${WORKDIR}/tsocks-1.8"
 
-- 
2.17.1



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

* Re: [meta-networking][PATCH] tsocks: use -lssp_nonshared also for glibc
  2018-09-27 17:44     ` [meta-networking][PATCH] tsocks: use -lssp_nonshared also for glibc Martin Jansa
@ 2018-09-27 18:18       ` Khem Raj
  2018-09-29  7:39       ` Martin Jansa
  1 sibling, 0 replies; 4+ messages in thread
From: Khem Raj @ 2018-09-27 18:18 UTC (permalink / raw)
  To: Martin Jansa; +Cc: openembeded-devel

On Thu, Sep 27, 2018 at 10:44 AM Martin Jansa <martin.jansa@gmail.com> wrote:
>
> * the issue is reproducible also in glibc builds
> * fixes:
>   | tsocks.c:954: error: undefined reference to '__stack_chk_fail_local'
>   | tsocks.c:842: error: undefined reference to '__stack_chk_fail_local'
>   | tsocks.c:339: error: undefined reference to '__stack_chk_fail_local'
>   | tsocks.c:522: error: undefined reference to '__stack_chk_fail_local'
>   | collect2: error: ld returned 1 exit status
>   | Makefile:53: recipe for target 'libtsocks.so.1.8' failed
>   | make: *** [libtsocks.so.1.8] Error 1
>
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
>  meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb b/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
> index 72913579af..790a6cc795 100644
> --- a/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
> +++ b/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
> @@ -18,7 +18,7 @@ SRC_URI[sha256sum] = "849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863
>
>  inherit autotools-brokensep
>
> -LIBS_append_libc-musl = " -lssp_nonshared"
> +LIBS = "-lssp_nonshared"
>

hmm, now I think more it is a SECURITY_LDFLAGS element. Since
this is not needed otherwise.

>  S = "${WORKDIR}/tsocks-1.8"
>
> --
> 2.17.1
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


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

* Re: [meta-networking][PATCH] tsocks: use -lssp_nonshared also for glibc
  2018-09-27 17:44     ` [meta-networking][PATCH] tsocks: use -lssp_nonshared also for glibc Martin Jansa
  2018-09-27 18:18       ` Khem Raj
@ 2018-09-29  7:39       ` Martin Jansa
  1 sibling, 0 replies; 4+ messages in thread
From: Martin Jansa @ 2018-09-29  7:39 UTC (permalink / raw)
  To: openembedded-devel

This isn't the right fix, causes:

ld: error: cannot find -lssp_nonshared
collect2: error: ld returned 1 exit status
Makefile:47: recipe for target 'inspectsocks' failed
make: *** [inspectsocks] Error 1

Sorry for sending too soon.

On Thu, Sep 27, 2018 at 7:44 PM Martin Jansa <martin.jansa@gmail.com> wrote:

> * the issue is reproducible also in glibc builds
> * fixes:
>   | tsocks.c:954: error: undefined reference to '__stack_chk_fail_local'
>   | tsocks.c:842: error: undefined reference to '__stack_chk_fail_local'
>   | tsocks.c:339: error: undefined reference to '__stack_chk_fail_local'
>   | tsocks.c:522: error: undefined reference to '__stack_chk_fail_local'
>   | collect2: error: ld returned 1 exit status
>   | Makefile:53: recipe for target 'libtsocks.so.1.8' failed
>   | make: *** [libtsocks.so.1.8] Error 1
>
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
>  meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
> b/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
> index 72913579af..790a6cc795 100644
> --- a/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
> +++ b/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb
> @@ -18,7 +18,7 @@ SRC_URI[sha256sum] =
> "849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863
>
>  inherit autotools-brokensep
>
> -LIBS_append_libc-musl = " -lssp_nonshared"
> +LIBS = "-lssp_nonshared"
>
>  S = "${WORKDIR}/tsocks-1.8"
>
> --
> 2.17.1
>
>


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

end of thread, other threads:[~2018-09-29  7:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <153789232226.9619.13004385028475298655@git.openembedded.org>
     [not found] ` <20180925161843.DFECE234E18@git.openembedded.org>
2018-09-27 17:41   ` [oe-commits] [meta-openembedded] 44/47: tsocks: Add -lssp_nonshared to LIBS explicitly on musl Martin Jansa
2018-09-27 17:44     ` [meta-networking][PATCH] tsocks: use -lssp_nonshared also for glibc Martin Jansa
2018-09-27 18:18       ` Khem Raj
2018-09-29  7:39       ` 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.