From owner-freebsd-ia64 Mon Mar 10 18:16:45 2003 Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09A5237B401 for ; Mon, 10 Mar 2003 18:16:44 -0800 (PST) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22C9543FD7 for ; Mon, 10 Mar 2003 18:16:43 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from athlon.pn.xcllnt.net (athlon.pn.xcllnt.net [192.168.4.3]) by ns1.xcllnt.net (8.12.8/8.12.8) with ESMTP id h2B2GgSd042093 for ; Mon, 10 Mar 2003 18:16:42 -0800 (PST) (envelope-from marcel@piii.pn.xcllnt.net) Received: from athlon.pn.xcllnt.net (localhost [127.0.0.1]) by athlon.pn.xcllnt.net (8.12.8/8.12.8) with ESMTP id h2B2GgH0007558 for ; Mon, 10 Mar 2003 18:16:42 -0800 (PST) (envelope-from marcel@athlon.pn.xcllnt.net) Received: (from marcel@localhost) by athlon.pn.xcllnt.net (8.12.8/8.12.8/Submit) id h2B2GgT5007557 for ia64@FreeBSD.org; Mon, 10 Mar 2003 18:16:42 -0800 (PST) (envelope-from marcel) Date: Mon, 10 Mar 2003 18:16:42 -0800 From: Marcel Moolenaar To: ia64@FreeBSD.org Subject: libobjc.a Message-ID: <20030311021642.GA1613@athlon.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.3i Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Gang, I tried to build libobjc with -fpic on i386 and that failed. On ia64 it worked and solved the immediate problem mentioned in PR 49081. However it caused a different bogon on ia64: Linking tool autogsdoc ... ../Source/shared_obj/ia64/freebsd/gnu-gnu-gnu/libgnustep-base.so: undefined reference to `.L677' This problem did not go away when I enabled building of libobjc.so instead of building libobjc.a with -fpic. Also, the port is highly non-LP64 and is casting between pointers and integers to the extend that I doubt it will ever work. The least impact change would be something like: Index: Makefile =================================================================== RCS file: /home/ncvs/src/gnu/lib/libobjc/Makefile,v retrieving revision 1.15 diff -u -r1.15 Makefile --- Makefile 30 Oct 2002 18:01:06 -0000 1.15 +++ Makefile 11 Mar 2003 02:14:47 -0000 @@ -18,6 +18,10 @@ sarray.h thr.h typedstream.h NXConstStr.h Object.h Protocol.h INCSDIR=${INCLUDEDIR}/objc +.if ${MACHINE_ARCH} == "ia64" +CFLAGS += -fpic +.endif + CFLAGS+= -fgnu-runtime -DHAVE_GTHR_DEFAULT -DIN_TARGET_LIBS CFLAGS+= -I. -I${.CURDIR}/../../usr.bin/cc/cc_tools CFLAGS+= -I${OBJCDIR}/objc -I${OBJCDIR} But it's not going to make the port build on ia64... -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message