From owner-freebsd-questions@FreeBSD.ORG Mon Feb 7 14:23:22 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 697A116A4CE for ; Mon, 7 Feb 2005 14:23:22 +0000 (GMT) Received: from relay.pair.com (relay00.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id AC14E43D2D for ; Mon, 7 Feb 2005 14:23:21 +0000 (GMT) (envelope-from alejandro@varnet.biz) Received: (qmail 89931 invoked from network); 7 Feb 2005 14:23:18 -0000 Received: from unknown (HELO ale.varnet.bsd) (unknown) by unknown with SMTP; 7 Feb 2005 14:23:18 -0000 X-pair-Authenticated: 200.115.214.206 Date: Mon, 7 Feb 2005 11:23:46 -0300 From: Alejandro Pulver To: Kris Kennaway Message-ID: <20050207112346.6a6a35de@ale.varnet.bsd> In-Reply-To: <20050207021951.GA29985@xor.obsecurity.org> References: <20050206222318.17b5b2d9@ale.varnet.bsd> <20050206230922.5d49a303@ale.varnet.bsd> <20050207021951.GA29985@xor.obsecurity.org> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: [SOLVED] Re: jade error: Undefined symbol "_ZNK6Origin14asEntityOriginEv" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 14:23:22 -0000 On Sun, 6 Feb 2005 18:19:51 -0800 Kris Kennaway wrote: > On Sun, Feb 06, 2005 at 11:09:22PM -0300, Alejandro Pulver wrote: > > On Sun, 6 Feb 2005 22:23:18 -0300 > > Alejandro Pulver wrote: > > > > > Hello, > > > > > > I installed 'docproj-jadetex' to learn how to make Docbook documents (in SGML). When I run 'nsgmls' (texproc/sp) (when doing 'make' on a FreeBSD documentation source, or manually) it outputs the following error: > > > > > > /libexec/ld-elf.so.1: /usr/local/lib/libstyle.so.1: Undefined symbol "_ZNK6Origin14asEntityOriginEv > > > > > > How do I fix it? > > > > Sorry, I made a mistake: the program that generated the error message was 'jade' (port is 'print/jadetex'), not 'nsgmls'. > > You forgot to mention details about your FreeBSD installation. Did > you formerly run FreeBSD 4.x and then update to 5.x? If so, you need > to rebuild your ports, because C++ code compiled with gcc 2.95 (which > is the version in 4.x) is incompatible with code compiled with gcc 3.4 > (in 5.3). portupgrade is the easiest way to do this, e.g. with the -P > switch. > > Kris > Sorry, I was tired and I made mistakes and forgot a couple of things. I have FreeBSD 5.3 (from a fresh installation), and I never updated my system/ports. I installed 'jade' from a package: jade-1.2.1_8. I solved the problem. The reason was that I installed 'sp' (textproc/sp) from a package (sp-1.3.4) (as the 'fdp-primer' says) and it overrited (without saying it conflicts with 'jade') the following programs/libraries: bin/nsgmls bin/sgmlnorm bin/spam bin/spent bin/sx [ header files in include/sp ] lib/libsp.a lib/libsp.so.1 So the missing symbol was in '/usr/local/lib/libsp.so.1' (which was overritten by 'sp'): nm /usr/local/lib/libsp.so.1 | grep _ZNK6Origin14asEntityOriginEv 0009cf04 T _ZNK6Origin14asEntityOriginEv While doing that in the library from 'sp' outputs nothing. This is strange: 'fdp-primer' says one need to install it, but it replaces binaries without warning and finally 'jade' does not work. Thanks and Best Regards, Ale