From owner-freebsd-ports@FreeBSD.ORG Mon Nov 19 09:58:28 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 31B6F116 for ; Mon, 19 Nov 2012 09:58:28 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx1.freebsd.org (Postfix) with ESMTP id E48988FC14 for ; Mon, 19 Nov 2012 09:58:27 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id k10so8231428iea.13 for ; Mon, 19 Nov 2012 01:58:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=a6qmATl2+u+CJjJF6kI90PUyVUV0NA0GYkcVhmJyhNo=; b=eFudqRgvBF/soN27cYxaRdtSdhokswqjL2+K9MiE18wV4hMLbapiWKabnDe2TcVxfu qJuQDyKouRZSX0DB0YAKTYmRsYQNg3SwwLbH0AhVwe2Upp3aMEwhg+E/LnhLMlaaQcis MzCKhAUuOEETAr4LwOXl+5I2pg3yrEdXUo8uA1qJM/7tNoWRg8vwvjb/2CXCZr6dzGD2 W1W1zvg8NEqAwa19hl3W4s402vN1o5JA13TE7Bqqy1AxbKsLI+B5kDoPurd3s7bPCnot wl5PrzZaKpyvY4KzhA4P90OmGayKhY4f/leIc0o+NhRS3/vxCuDwMuVQecTypEQ+JqQW UgLA== Received: by 10.50.185.230 with SMTP id ff6mr6124717igc.7.1353319107443; Mon, 19 Nov 2012 01:58:27 -0800 (PST) Received: from [192.168.1.132] (mau.donbass.com. [92.242.127.250]) by mx.google.com with ESMTPS id px5sm6812179igc.0.2012.11.19.01.58.25 (version=SSLv3 cipher=OTHER); Mon, 19 Nov 2012 01:58:26 -0800 (PST) Message-ID: <50AA02BF.5020306@gmail.com> Date: Mon, 19 Nov 2012 11:58:23 +0200 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121116 Thunderbird/16.0.2 MIME-Version: 1.0 To: Takeshi Taguchi Subject: Re: [patch] databases/db42 clang -fPIC issue References: <50A4D79E.8090906@ff.iij4u.or.jp> In-Reply-To: <50A4D79E.8090906@ff.iij4u.or.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2012 09:58:28 -0000 15.11.2012 13:53, Takeshi Taguchi wrote: > Hi, > In CURRENT, clang can not compile database/db42. > here is a error message: > > BEGIN>---88--- > /usr/bin/ld: .libs/cxx_db.o: relocation R_X86_64_32S against `_ZTV2Db' > can not be used when making a shared object; recompile with -fPIC > ..libs/cxx_db.o: could not read symbols: Bad value > c++: error: linker command failed with exit code 1 (use -v to see > invocation) > *** [libdb_cxx-4.2.la] Error code 1 > > Stop in /usr/ports/databases/db42/work/db-4.2.52/build_unix. > *** [do-build] Error code 1 > > Stop in /usr/ports/databases/db42. > END>---88--- > > linker said 'recompile with -fPIC'. > Actualy, > BEGIN>---88--- > c++ -c -I. -I./../dist/.. -D_THREAD_SAFE -O2 -fno-strict-aliasing > -pipe -fconserve-space ./../dist/../cxx/cxx_txn.cpp -DPIC > END>---88--- > > there is a -DPIC flag, but not -fPIC. > Why not? The only problem with libtool about missing flags I recall was the one when ccache was used. Are you using ccache? If so, can you rebuild everything db42 depends on (especially libtool) with CCACHE_CPP2? -- Sphinx of black quartz, judge my vow.