Subject: FreeAmp & pthread
To: None <netbsd-help@netbsd.org>
From: Rui-Xiang Guo <rxg@ms25.url.com.tw>
List: netbsd-help
Date: 05/08/2002 21:25:32
Hi, all.
I tried to compile freeamp under NetBSD -current with pth.
The build is bumb out during the linking stage.
Here is the summarization:
[...]
c++  -L/home/rxg/mypkgsrc/mypkg/freeamp/work/.buildlink/lib  -L/usr/pkg/sha=
re/x11-links/lib -Wl,-R/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl=
,-export-dynamic  -o freeamp base/src/log.o base/src/player.o base/src/musi=
ccatalog.o base/src/playlist.o base/src/propimpl.o base/src/registrar.o bas=
e/src/registry.o base/src/thread.o io/src/eventbuffer.o base/src/prefixpref=
s.o base/src/preferences.o base/src/debug.o base/src/utility.o base/src/dat=
abase.o  base/src/downloadmanager.o base/src/errors.o io/src/pullbuffer.o i=
o/src/tstream.o base/src/undomanager.o  base/src/timer.o base/src/missingfi=
le.o io/src/pipeline.o base/unix/src/bootstrap.o base/unix/src/unixprefs.o =
base/unix/src/win32impl.o base/unix/src/pthreadthread.o base/unix/src/debug=
.o base/unix/src/mutex.o  base/unix/src/semaphore.o base/unix/src/utility.o=
 base/unix/src/browser.o base/aps/FAMetaUnit.o base/aps/apsinterface.o  bas=
e/aps/apsplaylist.o base/aps/gencrc.o base/aps/hosttonet.o  base/aps/nettoh=
ost.o base/aps/comsocket.o base/aps/apsconvert.o base/aps/YPClient.o base/a=
ps/uuid.o base/aps/comhttpsocket.o lib/gdbm/lib/libfagdbm.a lib/xml/src/Par=
se.o  lib/zlib/lib/libzlib.a lib/http/src/Http.o -L/home/rxg/mypkgsrc/mypkg=
/freeamp/work/.buildlink/lib  -L/usr/pkg/share/x11-links/lib -Wl,-R/usr/X11=
R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-export-dynamic -lpthread -los=
saudio  -lmusicbrainz =20
base/src/player.o: In function `Player::AddTheme(char *)':
base/src/player.o(.text+0x1ec1): warning: tmpnam() possibly used unsafely, =
use mkstemp() or mkdtemp()
base/src/player.o: In function `ostream & operator<<<char, string_char_trai=
ts<char>, __default_alloc_template<false, 0> >(ostream &, basic_string<char=
, string_char_traits<char>, __default_alloc_template<false, 0> > const &)':
base/src/player.o(.text+0x9352): undefined reference to `ostream::__pthread=
_write(char const *, int)'
base/unix/src/bootstrap.o: In function `ostream & operator<<<char, string_c=
har_traits<char>, __default_alloc_template<false, 0> >(ostream &, basic_str=
ing<char, string_char_traits<char>, __default_alloc_template<false, 0> > co=
nst &)':
base/unix/src/bootstrap.o(.text+0xefa): undefined reference to `ostream::__=
pthread_write(char const *, int)'
base/unix/src/mutex.o: In function `ostream & operator<<<char, string_char_=
traits<char>, __default_alloc_template<false, 0> >(ostream &, basic_string<=
char, string_char_traits<char>, __default_alloc_template<false, 0> > const =
&)':
base/unix/src/mutex.o(.text+0x12a2): undefined reference to `ostream::__pth=
read_write(char const *, int)'
gmake: *** [freeamp] Error 1
*** Error code 2

Is this because that pth not yet support c++?
Hope someone could help me. ;)
(Maybe I should just give up and use the linux_emul...)

p.s. please CC me, thanks!

-rxg