From owner-freebsd-ports@FreeBSD.ORG Wed Nov 25 23:04:50 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01E8C106566C for ; Wed, 25 Nov 2009 23:04:50 +0000 (UTC) (envelope-from dgjohns@gmail.com) Received: from mail-yx0-f184.google.com (mail-yx0-f184.google.com [209.85.210.184]) by mx1.freebsd.org (Postfix) with ESMTP id A50668FC18 for ; Wed, 25 Nov 2009 23:04:48 +0000 (UTC) Received: by yxe14 with SMTP id 14so201684yxe.7 for ; Wed, 25 Nov 2009 15:04:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:mime-version:content-type:content-transfer-encoding :x-mailer:thread-index:content-language; bh=JUmGSl8ZUoAA0WrZFSqPTvQLthRQEenzq5qbxs56Wsk=; b=J3ja9BRrc+uqERKlxJ76V9Q5olNM8Nq9dxRdWzkCwbHHd2bMnF2J8XWaBq9n2dIk9A 2kMic+XVbH7sIeEv3aldyZ64xyA/N1c7Niu8j4c3J78BLErhFBsBt98ilQQzhvfZXocK ROKOGGBzF5LV/U0j/y+dzw7KnA0zbi2zTkQeM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:thread-index:content-language; b=rJ6rfIB6lSZiku6Ec4tEG0/Er/EOcRj8PVOD4WSku0KIuson+7P1dH+kgs9IrdT6X4 Rw1XStZUldCUY2o0ltLXY+1cuhqJJQ5O0JULCPsbn/tBYkpVyPwNp6F2UO7ls/yrIztF 2UrdWoyHKIiCOxka94H4XiNeitP2PMUYIZwWA= Received: by 10.151.92.8 with SMTP id u8mr14664918ybl.101.1259189011607; Wed, 25 Nov 2009 14:43:31 -0800 (PST) Received: from djohnsPC (cpe-66-27-232-37.bak.res.rr.com [66.27.232.37]) by mx.google.com with ESMTPS id 6sm44139ywd.7.2009.11.25.14.43.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 25 Nov 2009 14:43:31 -0800 (PST) From: "Dave" To: Date: Wed, 25 Nov 2009 14:43:15 -0800 Message-ID: <004601ca6e20$b538fc60$1faaf520$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 thread-index: AcpuIKzdScORZYV/QuuXS92LazMMag== Content-Language: en-us Subject: libutf-8 compilation error X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Nov 2009 23:04:50 -0000 I am encountering the following error while trying to compile converters/libutf-8 inside of a jail. The host machine is a freshly compiled FreeBSD 7.2-p4 amd64 system, as with the jail, and both have an up to date ports tree. I've been able to replicate the error on the host machine, and second machine running 7-STABLE. I have also checked the Makefile for the port, and it does contain "CFLAGS+= -fPIC" already. # make install ===> Vulnerability check disabled, database not found ===> Extracting for libutf-8-1.0,1 => MD5 Checksum OK for libutf-8-1.0.tar.gz. => SHA256 Checksum OK for libutf-8-1.0.tar.gz. ===> Patching for libutf-8-1.0,1 ===> Applying FreeBSD patches for libutf-8-1.0,1 ===> Configuring for libutf-8-1.0,1 ===> Building for libutf-8-1.0,1 cc -O2 -fno-strict-aliasing -pipe -march=nocona -c fget.utf-8.c cc -O2 -fno-strict-aliasing -pipe -march=nocona -c sget.utf-8.c cc -O2 -fno-strict-aliasing -pipe -march=nocona -c fput.utf-8.c cc -O2 -fno-strict-aliasing -pipe -march=nocona -c sput.utf-8.c cc -O2 -fno-strict-aliasing -pipe -march=nocona -c nomacros.c ld -o libutf-8.so.1 fget.utf-8.o sget.utf-8.o fput.utf-8.o sput.utf-8.o nomacros.o -shared -soname libutf-8.so.1 ld: fget.utf-8.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC fget.utf-8.o: could not read symbols: Bad value *** Error code 1 Stop in /usr/ports/converters/libutf-8/work/libutf-8-1.0. *** Error code 1 Stop in /usr/ports/converters/libutf-8. Thanks in advance for any help.