From owner-freebsd-questions@FreeBSD.ORG Thu Apr 16 11:12:33 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2835510F for ; Thu, 16 Apr 2015 11:12:33 +0000 (UTC) Received: from mx01.udk-berlin.de (mx01.udk-berlin.de [194.95.94.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D088B9D4 for ; Thu, 16 Apr 2015 11:12:32 +0000 (UTC) Received: from worf.udk-berlin.de (worf.udk-berlin.de [194.95.94.49]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx01.udk-berlin.de (Postfix) with ESMTPS id 61D294242C for ; Thu, 16 Apr 2015 13:05:05 +0200 (CEST) Received: from worf.udk-berlin.de (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id B40B410199E for ; Thu, 16 Apr 2015 13:05:09 +0200 (CEST) Received: from klee.udk-berlin.de (klee.udk-berlin.de [194.95.94.36]) by worf.udk-berlin.de (Postfix) with ESMTPS id AEFF910144A for ; Thu, 16 Apr 2015 13:05:09 +0200 (CEST) Received: from www.oase.udk-berlin.de (klee.udk-berlin.de [194.95.94.36]) by klee.udk-berlin.de (8.14.4/8.14.4) with ESMTP id t3GB59Jp008051 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 16 Apr 2015 13:05:09 +0200 Received: from 194.95.203.124 (SquirrelMail authenticated user d.hromada) by www.oase.udk-berlin.de with HTTP; Thu, 16 Apr 2015 13:05:09 +0200 Message-ID: <480aa427e0bbcde307f6bfe2fb8615b8.squirrel@www.oase.udk-berlin.de> Date: Thu, 16 Apr 2015 13:05:09 +0200 Subject: problem with libmagic component in make buildworld on 10.1-RELEASE-p9 From: d.hromada@udk-berlin.de To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.22-4.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Apr 2015 11:12:33 -0000 Hello world, after upgrade from 9.3 to 10.1-RELEASE-p9 FreeBSD, I have problem with make buildworld which always gets stuck when building libmagic ===> lib/libmagic (obj,build-tools) cc -O2 -pipe -DMAGIC='"/usr/share/misc/magic"' -DHAVE_CONFIG_H -I/usr/src/lib/libmagic -I/usr/src/lib/libmagic/../../contrib/file/src -fPIC -std=gnu99 -I/usr/obj/usr/src/tmp/legacy/usr/include -DCOMPILE_ONLY -L/usr/obj/usr/src/tmp/legacy/usr/lib -o mkmagic /usr/src/lib/libmagic/../../contrib/file/src/apprentice.c /usr/src/lib/libmagic/../../contrib/file/src/cdf_time.c /usr/src/lib/libmagic/../../contrib/file/src/encoding.c /usr/src/lib/libmagic/../../contrib/file/src/funcs.c /usr/src/lib/libmagic/../../contrib/file/src/magic.c /usr/src/lib/libmagic/../../contrib/file/src/print.c -lz -legacy /usr/bin/ld: //lib/libc.so.7: invalid DSO for symbol `_end' definition //lib/libc.so.7: could not read symbols: Bad value When I try to build the libmagic directly with make in /usr/src/lib/libmagic , it gets stuck during the linking: building shared library libmagic.so.4 /usr/bin/ld: /usr/lib/libc.a(strtoull.o): relocation R_X86_64_32 against `__xlocale_C_locale' can not be used when making a shared object; recompile with -fPIC /usr/lib/libc.a: could not read symbols: Bad value I tried to put -fPIC into CFLAGS of libmagic's Makefile, but it didn't help ;( Thanks in advance for any idea that could help me to resolve this issue Cordially Daniel