From owner-freebsd-questions@FreeBSD.ORG Mon Feb 9 21:30:33 2004 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 400E716A4CE for ; Mon, 9 Feb 2004 21:30:33 -0800 (PST) Received: from smtp.owt.com (smtp.owt.com [204.118.6.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id F278143D1F for ; Mon, 9 Feb 2004 21:30:32 -0800 (PST) (envelope-from kstewart@owt.com) Received: from localhost.invalid (owt-207-41-94-233.owt.com [207.41.94.233]) by smtp.owt.com (8.12.8/8.12.8) with ESMTP id i1A5UN9U003873; Mon, 9 Feb 2004 21:30:24 -0800 From: Kent Stewart To: freebsd-questions@freebsd.org Date: Mon, 9 Feb 2004 21:30:26 -0800 User-Agent: KMail/1.6 References: <200402091138.24407.joey@mingrone.org> <200402091253.30675.kstewart@owt.com> <200402092329.26762.joey@mingrone.org> In-Reply-To: <200402092329.26762.joey@mingrone.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200402092130.26533.kstewart@owt.com> cc: Joey Mingrone Subject: Re: library/linking problems 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: Tue, 10 Feb 2004 05:30:33 -0000 On Monday 09 February 2004 07:29 pm, Joey Mingrone wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Thanks for the tips Kent. I'm running 4.9 (4.9-RELEASE-p2). > > I also did a cvsup of the ports tree and a portsdb -uU, and after > make/buid world and a new kernel I also deleted everything is > /usr/include/g++ and did: cd /usr/src && rm -r /usr/include/g++ && > make includes > > portupgrade -Rf id3lib updates the dependencies properly but still > produces the same errors. > > I'm guessing the problem is in /usr/lib???I I logged my build and then cp'ed your output onto my machine. We compare until yours gets to section on "Making all in examples" and then after, "mkdir .libs", yours falls apart and mine makes the lib and then proceeds to "creating id3info". The only -L is /usr/local/lib. The undefined references are typical c++ stuff. For example, demo_info.o: In function `PrintUsage(char const *)': demo_info.o(.text+0x1d): undefined reference to `cout' demo_info.o(.text+0x22): undefined reference to `ostream::operator<<(char const *)' demo_info.o(.text+0x2b): undefined reference to `ostream::operator<<(char const *)' demo_info.o(.text+0x34): undefined reference to `ostream::operator<<(char const *)' demo_info.o(.text+0x40): undefined reference to `endl(ostream &)' Do you have any refuses where you could be using old code or options in /etc/make.conf? Also, are you cvsuping src-all completely. I am running 4.9-stable but we shouldn't be that different. Kent > > Thanks, > > Joey > > On February 9, 2004 16:53, Kent Stewart wrote: > > On Monday 09 February 2004 07:38 am, Joey Mingrone wrote: > > > -----BEGIN PGP SIGNED MESSAGE----- > > > Hash: SHA1 > > > > > > Hi, > > > > > > I have some sort of problem with my c++ stream libraries. A > > > bunch of ports that rely on things like cerr are giving linking > > > errors. (lots of "undefined reference to `cerr', undefined > > > reference to `ostream::operator<<(char const *)'"). > > > > > > I've posted output from the some the builds that fail at > > > http://mingrone.org/errors/. > > > > > > I also cvsuped my sources and rebuilt userland and my kernel, but > > > no luck. > > > > Just to make sure, did you reboot? You appear to be running 5.x > > but gives us a "uname -a" to let us see. > > > > > Any suggestions? > > > > I don't know which header is missing. Since you seem to have a > > general problem, I think I would a pattern for what is broken by > > doing the following: cvsup ports-all, make index, and portsdb -u. > > > > Then portupgrade -Rf id3lib. The will rebuild everything that > > id3lib uses and you will see more quickly if it fixes your problem > > than to rebuild the pieces of arts-1.1.4 > > > > I have kde-3.2 running on both 4.9-stable and 5.2-current. I am > > using kmail from 3.2 to send this. Building it on -current I had to > > use a kluge but it works. When someone figures out the real fix, I > > will rebuild everything to get away from the kluge. > > > > Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html