From owner-freebsd-current Sun Apr 4 18:59:59 1999 Delivered-To: freebsd-current@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 6AAC314F13 for ; Sun, 4 Apr 1999 18:59:57 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.1) with ESMTP id SAA12692; Sun, 4 Apr 1999 18:58:00 -0700 (PDT) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.2/8.9.1) id SAA34046; Sun, 4 Apr 1999 18:57:59 -0700 (PDT) (envelope-from jdp@polstra.com) Date: Sun, 4 Apr 1999 18:57:59 -0700 (PDT) Message-Id: <199904050157.SAA34046@vashon.polstra.com> To: andreas@klemm.gtn.com Subject: Re: X problems using egcs as compiler In-Reply-To: <19990403193632.A55975@titan.klemm.gtn.com> Organization: Polstra & Co., Seattle, WA Cc: current@freebsd.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <19990403193632.A55975@titan.klemm.gtn.com>, Andreas Klemm wrote: > Got the latest egcs port > > # $Id: Makefile,v 1.53 1999/03/30 02:58:02 obrien Exp $ > > Build X11R6 with the following CFLAGS: > > -pipe -mpentiumpro -O2 > > I'm still running X11 and after ,make install' I'm unable > to launch x applications (xterm, ...) > > andreas@titan{1001} $ xterm > /usr/libexec/ld-elf.so.1: /usr/X11R6/lib/libXaw.so.6: Undefined symbol "__deregister_frame_info" There are two things going on here. First, I believe you must have built libXaw.so.6 using egcs, but you must have linked xterm using the normal system compiler. (Or else you or the Makefile used "ld" directly, which is always a bad idea.) If the executable is linked using egcs, then this error won't happen. Second, egcs actually contains a hack which attempts to make it work anyway, even if you linked the program using the old compiler. But there is a dynamic linker bug (which I just discovered) that prevents the hack from working. I am testing the fix for that now. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-interest is the aphrodisiac of belief." -- James V. DeLong To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message