Date: Wed, 11 Feb 2004 01:25:16 -0400 From: Joey Mingrone <joey@mingrone.org> To: freebsd-questions@freebsd.org Cc: Kent Stewart <kstewart@owt.com> Subject: Re: library/linking problems Message-ID: <200402110125.26112.joey@mingrone.org> In-Reply-To: <200402092130.26533.kstewart@owt.com> References: <200402091138.24407.joey@mingrone.org> <200402092329.26762.joey@mingrone.org> <200402092130.26533.kstewart@owt.com>
next in thread | previous in thread | raw e-mail | index | archive | help
=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kent, I did a comparison with a similar box at work and there were two libs=20 in /usr/local/lib on my box that weren't on the box at work. They=20 were /usr/local/lib/libstdc++.a and /usr/local/lib/libstdc++.la*. I did a= =20 pkg_which on them but no port matches. I'm not sure how they got there, bu= t=20 after moving them out of the way ports starting linking again. Thanks for= =20 you help. ...very much appreciated. Cheers, Joey On February 10, 2004 01:30, Kent Stewart wrote: > 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 =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAKbzB0NQPEWppBZsRAuINAJ4of09CNtq6VJrX7Fxq2h2T0xsOzwCgoWfw vrSWRB7SJSUrxA+lzEo/iTU=3D =3D6Xc3 =2D----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402110125.26112.joey>