You shouldn't need to make a link to libpthread. FreeBSD contains a pthread implementation in libc_r, which XMMS should easily use. I would delete the libpthread links and rebuild xmms.
Yann On Wed, 2002-05-15 at 13:26, Mike Hoskins wrote: > > I was playing around with portupgrade again and seem to have messed up my > pthreads implementation. (Nice tool, stupid user... the usual scenario.) > No biggie, I've messed up plenty of things before and fixed them. I can't > seem to fix this, and figure I'm just not clued when it comes to pthreads, > where they should live, how they should be pointed to, etc. > > I removed my current linuxthreads install, and made sure none of the old > symlinks, etc. were left lying around. Cvsuped latest ports and installed > /usr/ports/devel/linuxthreads. That worked, > > # pkg_info|grep thread > linuxthreads-2.2.3_5 POSIX pthreads implementation using rfork ... > > In files/README.FreeBSD I see, > > ---- > In order to facilitate porting applications which expect a libpthread, you > can create the following symlinks if you want: > > ln -s /usr/local/lib/liblthread.a /usr/lib/libpthread.a > ln -s /usr/local/lib/liblthread_p.a /usr/lib/libpthread_p.a > ln -s /usr/local/lib/liblthread.so.2 /usr/lib/libpthread.so.2 > ln -s /usr/local/lib/liblthread.so.2 /usr/lib/libpthread.so > /sbin/ldconfig -m /usr/lib > ---- > > Did that. Now I try to build xmms port (noting it uses -D_THREAD_SAFE > and -lpthread) and get: > > make all -DWITHOUT_MIKMOD -DWITHOUT_VORBIS -DWITHOUT_3DNOW > ... > cc -O -pipe -D_THREAD_SAFE -I/usr/X11R6/include -Wall -Wpointer-arith > -finline-functions -ffast-math -fomit-frame-pointer -o .libs/xmms bmp.o > skin.o util.o output.o fft.o input.o effect.o general.o visualization.o > fullscreen.o pluginenum.o playlist.o controlsocket.o dock.o widget.o > sbutton.o pbutton.o tbutton.o textbox.o menurow.o hslider.o monostereo.o > vis.o svis.o number.o playstatus.o playlist_list.o playlist_slider.o > playlist_popup.o eq_graph.o eq_slider.o main.o skinwin.o prefswin.o > playlistwin.o equalizer.o hints.o about.o sm.o getopt.o getopt1.o > urldecode.o mkdtemp.o -Wl,-E -pthread -Wl,--export-dynamic > -L/usr/X11R6/lib -L/usr/local/lib -lSM -lICE -lXxf86vm > ../libxmms/.libs/libxmms.so -lgtk12 -lgdk12 -lgmodule12 -lgthread12 > -lglib12 -lpthread -lintl -lXext -lX11 -lm -Wl,--rpath -Wl,/usr/X11R6/lib > /usr/lib/libpthread.so: undefined reference to `_sched_yield' > gmake[4]: *** [xmms] Error 1 > gmake[4]: Leaving directory `/usr/ports/audio/xmms/work/xmms-1.2.7/xmms' > gmake[3]: *** [all-recursive] Error 1 > gmake[3]: Leaving directory `/usr/ports/audio/xmms/work/xmms-1.2.7/xmms' > gmake[2]: *** [all-recursive-am] Error 2 > gmake[2]: Leaving directory `/usr/ports/audio/xmms/work/xmms-1.2.7/xmms' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory `/usr/ports/audio/xmms/work/xmms-1.2.7' > gmake: *** [all-recursive-am] Error 2 > *** Error code 2 > > Should I need to use a -I/path/to/linuxthreads somewhere? Thought that's > what the symlinks were for? > > Need clue++. > > Later, > -Mike > > -- > "They that can give up essential liberty to obtain a little temporary > safety deserve neither liberty nor safety." --Benjamin Franklin > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-stable" in the body of the message -- -------------------------------------------------------------------- Yann Ramin [EMAIL PROTECTED] Atrus Trivalie Productions www.atrustrivalie.org GPG Key Fingerprint: 3E2F FFBC B244 BFF6 C089 7AE3 940D 1037 B790 A0EC Use www.keyserver.net to find me! "The dew," he observed, "has clearly fallen with a particulary sickening thud this morning." - Marvin (Life, the Universe, Everything. Douglas Adams) Deep in the human unconscious is a pervasive need for a logical universe that makes sense. But the real universe is always one step beyond logic. - Muad'Dib (Dune, Frank Herbert) --------------------------------------------------------------------
signature.asc
Description: This is a digitally signed message part