From owner-freebsd-ports@FreeBSD.ORG Sat Jan 10 21:03:58 2009 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E87911065673 for ; Sat, 10 Jan 2009 21:03:57 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-bw0-f20.google.com (mail-bw0-f20.google.com [209.85.218.20]) by mx1.freebsd.org (Postfix) with ESMTP id 443EF8FC08 for ; Sat, 10 Jan 2009 21:03:56 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by bwz13 with SMTP id 13so4201261bwz.19 for ; Sat, 10 Jan 2009 13:03:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=6yk+2dTqaKZLM0ncDn4L8oVwdr7KOBbMPjTqndOjU7o=; b=Kxdehf99vkeLdF2qgahNXpC319C7n1G3HdcXunFQbF6jdF6KKu0KXinTBH+73j92af erwQE4QQEx4S1hc3XXhnu7llp42hvrCN6CbBaByv4GVMoGRfCYK1loUIiYi+ZWzrxeKr v8vTqGcvI8YHqxjGWzNZz8DveJmLPG+aiK1Oc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=VWR5hStXlD4aW/s78VcatcWV4nVbXWS1gYW4ZyqH5CVsSLnHZQzWZOQH7m0ENK+ITm YWSaaZ2saT0ZXSLRaFkal48SrsrTAa3anTN4pHLcKJ95ih+gDzwhDeSZCpn9RO9KhBz9 4HHmIxvPK1TySf6rroF8iKWADerSMhHOrbSu4= Received: by 10.181.216.14 with SMTP id t14mr9331311bkq.8.1231621435610; Sat, 10 Jan 2009 13:03:55 -0800 (PST) Received: by 10.181.26.3 with HTTP; Sat, 10 Jan 2009 13:03:55 -0800 (PST) Message-ID: <7d6fde3d0901101303w6585fc2ao43a7bb74850c8889@mail.gmail.com> Date: Sat, 10 Jan 2009 13:03:55 -0800 From: "Garrett Cooper" To: Matt In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <496735F6.1090500@nixil.net> Cc: ports@freebsd.org, kde-freebsd@kde.org, Phil Oleson Subject: Re: [kde-freebsd] [CFT] KDE 4.2 BETA 2 testers wanted 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: Sat, 10 Jan 2009 21:03:59 -0000 On Sat, Jan 10, 2009 at 10:50 AM, Matt wrote: > On Fri, Jan 9, 2009 at 5:33 AM, Phil Oleson wrote: >> I did run into a linking issue with the build of...errr kdebase, >> kdebase-runtime, or kdebase-workspace.. I cant remember now.. but the >> issue was with hspell. I had to rebuild it with this patch: >> >> --- Makefile.orig 2009-01-04 05:20:09.000000000 +0000 >> +++ Makefile 2009-01-04 05:20:01.000000000 +0000 >> @@ -16,6 +16,7 @@ >> USE_PERL5_BUILD= yes >> USE_GMAKE= yes >> GNU_CONFIGURE= yes >> +CFLAGS+= -fPIC >> >> MAN1= hspell.1 >> MAN3= hspell.3 >> > The problem appears to be manifested in kdelibs4, but only on amd64 > and not i386. I received the same linker error in my amd64 tinderbox, > but not in my i386 tinderbox. The specific error states: > > /opt/c++ -fPIC -pipe -g -Woverloaded-virtual -fvisibility=hidden > -fvisibility-inlines-hidden -g -O2 -fno-reorder-blocks > -fno-schedule-insns -fno-inline -rpath=/usr/lib:/usr/local/lib -lc > -shared -Wl,-soname,kspell_hspell.so -o ../../../lib/kspell_hspell.so > CMakeFiles/kspell_hspell.dir/kspell_hspell_automoc.o > CMakeFiles/kspell_hspell.dir/kspell_hspellclient.o > CMakeFiles/kspell_hspell.dir/kspell_hspelldict.o -L/usr/local/lib/qt4 > -L/work/a/ports/x11/kdelibs4/work/kdelibs-4.1.85/build/lib > -L/usr/local/lib /usr/local/lib/qt4/libQtCore.so -lpthread > ../../../lib/libkdecore.so.7.0.0 /usr/local/lib/libhspell.a -lz > /usr/local/lib/qt4/libQtDBus.so /usr/local/lib/qt4/libQtCore.so > -lpthread -Wl,-rpath,/usr/local/lib/qt4:/work/a/ports/x11/kdelibs4/work/kdelibs-4.1.85/build/lib > /usr/bin/ld: /usr/local/lib/libhspell.a(gimatria.o): relocation > R_X86_64_32S can not be used when making a shared object; recompile > with -fPIC > /usr/local/lib/libhspell.a: could not read symbols: Bad value > > Does this help determine if there is a possible fix on the kdelibs end > or is it something that has to be changed in hspell? > > Matt Id is most likely picking up the wrong library (our version of binutils is broken when properly mixing libraries in a x86_64 environment IMHO, some would say partially crippled), so you're probably running into that. If so I believe it's either fixable (short-term) by recompiling hspell (if you installed it from packages), and it's definitely fixable (albeit a hack) from ports to automatically add /usr/local/lib32 to the LDFLAGS for compiles where you know it's x86_64... Also, what do the following 2 commands say? file /usr/local/lib/libhspell.a ls /usr/local/lib*/libhspell.a Cheers, -Garrett