Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1647728

Re: Multiple longjmp definitions with STATIC_LINKING=y

From Richard Weinberger <richard@nod.at>
Newsgroups linux.kernel
Subject Re: Multiple longjmp definitions with STATIC_LINKING=y
Date 2017-05-23 09:30 +0200
Message-ID <tKcqv-8q9-33@gated-at.bofh.it> (permalink)
References <tK8Ge-60t-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Florian,

Am 23.05.2017 um 05:28 schrieb Florian Fainelli:
> Hi Richard,
> 
> I have been playing with UML again and trying to get it to statically
> link on a CentOS 6.9 host that has:
> 
> glibc-2.12-static
> gcc-4.4
> 
> installed results in the following:
> 
> /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o):
> In function `siglongjmp':
> (.text+0x8490): multiple definition of `longjmp'
> arch/x86/um/built-in.o:/local/users/fainelli/openwrt/trunk/build_dir/target-x86_64_musl/linux-uml/linux-4.4.69/arch/x86/um/setjmp_64.S:44:
> first defined here
> /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libpthread.a(libpthread.o):
> In function `sem_open':
> (.text+0x77cd): warning: the use of `mktemp' is dangerous, better use
> `mkstemp'
> collect2: ld returned 1 exit status
> make[4]: *** [vmlinux] Error 1

Meh, this is a new one.
How is musl involved in this game?

Does it help when you add another redefine-hack to arch/um/Makefile?
See -Dvmap=kernel_vmap.

> Should we have some linker script magic not to export this symbol and
> prevent a clash with libpthread.a pulling its own version?

Yes, we should. But so far nobody had the time to bite the bullet. :-)
This is not the first bug of this kind. Please see.
https://lkml.org/lkml/2015/11/19/726

Thanks,
//richard

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Multiple longjmp definitions with STATIC_LINKING=y Florian Fainelli <f.fainelli@gmail.com> - 2017-05-23 05:30 +0200
  Re: Multiple longjmp definitions with STATIC_LINKING=y Richard Weinberger <richard@nod.at> - 2017-05-23 09:30 +0200
    Re: Multiple longjmp definitions with STATIC_LINKING=y Florian Fainelli <f.fainelli@gmail.com> - 2017-05-23 20:50 +0200
      Re: Multiple longjmp definitions with STATIC_LINKING=y Florian Fainelli <f.fainelli@gmail.com> - 2017-05-24 03:20 +0200

csiph-web