Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 2002 12:26:55 -0700 (PDT)
From:      Mike Hoskins <mike@adept.org>
To:        <stable@freebsd.org>
Subject:   pthread Q
Message-ID:  <20020515121709.S50763-100000@snafu.adept.org>

next in thread | raw e-mail | index | archive | help

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 majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020515121709.S50763-100000>