From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758317AbdEWD2I (ORCPT ); Mon, 22 May 2017 23:28:08 -0400 Received: from mail-yw0-f169.google.com ([209.85.161.169]:33902 "EHLO mail-yw0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751120AbdEWD2E (ORCPT ); Mon, 22 May 2017 23:28:04 -0400 To: Richard Weinberger Cc: Linux Kernel Mailing List , jdike@addtoit.com, user-mode-linux-devel@lists.sourceforge.net From: Florian Fainelli Subject: Multiple longjmp definitions with STATIC_LINKING=y Message-ID: <4999b293-42a6-bf88-ef0b-af5e0fc3729c@gmail.com> Date: Mon, 22 May 2017 20:28:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Should we have some linker script magic not to export this symbol and prevent a clash with libpthread.a pulling its own version? Thanks! -- Florian