Subject: Re: libstdc++ problems on Linux
To: Ben Collver <collver1@comcast.net>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 04/29/2004 22:11:04
On Tue, 20 Apr 2004, Ben Collver wrote:

> On Wed, Apr 21, 2004 at 01:22:43AM -0400, Louis  Guillaume wrote:
> > >>sed <libstdc++.la.orig >libstdc++.la -e 's,^\(libdir.*\)/.,\1,'
> >
> >
> > This workaround seems to have fixed many problems. Both qt3-libs and
> > qt3-tools compiled without a hitch, whereas before there were problems.
> >
> > But the arts package still has linking problems. It seems to be unable
> > to find certain Arts:: classes....

I have same or similar problem with building arts under Linux with gcc3
too.

I didn't have to do that
  s,^\(libdir.*\)/.,\1
to build qt3-libs or qt3-tools though. They built fine for me today.

audio/arts doesn't not build for me.

shlibtool: link: warning: `/usr/lib//libasound.la' seems to be moved

(It seems like libasound.la[1] should have been buildlinked, but I don't
think that is related.)

shlibtool: link: warning:
`/scratch/pkgsrc/audio/arts/work.puget/.buildlink/gcc3
/lib/libstdc++.la' seems to be moved
.libs/kmedia2.o(.text+0x17): In function
`Arts::poTime::poTime[not-in-charge]()':
/usr/gcc3/include/c++/3.3.3/bits/stl_uninitialized.h:83: undefined
reference to `Arts::Type::_staticTypeCount'
.libs/kmedia2.o(.text+0x7b): In function
`Arts::poTime::poTime[in-charge]()':
/usr/gcc3/include/c++/3.3.3/bits/basic_string.h:249: undefined reference
to `Arts::Type::_staticTypeCount'

...

.libs/kmedia2.o(.gnu.linkonce.d._ZTIN4Arts20VideoPlayObject_baseE+0x10):../mcop/
common.h:72: undefined reference to `typeinfo for Arts::Object_base'
.libs/kmedia2.o(.gnu.linkonce.d._ZTIN4Arts20VideoPlayObject_stubE+0x18):/usr/gcc
3/include/c++/3.3.3/bits/stl_uninitialized.h:83: undefined reference to
`typeinfo for Arts::Object_stub'
.libs/kmedia2.o(.gnu.linkonce.d._ZTIN4Arts20VideoPlayObject_skelE+0x18):/usr/gcc
3/include/c++/3.3.3/bits/stl_uninitialized.h:83: undefined reference to
`typeinfo for Arts::Object_skel'
collect2: ld returned 1 exit status
make[2]: *** [libkmedia2_idl.la] Error 1


> I am not sure what you are running into with arts, but I'll stick it as a
> low-priority item in my to-look-at list.

I have send-pr'd this as PR pkg/25402.

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/

[1] I just realized that lib/libasound.la is from my wip/alsa-lib package.
I will post another message about this.