From owner-freebsd-stable Wed May 15 12:27:11 2002 Delivered-To: freebsd-stable@freebsd.org Received: from snafu.adept.org (snafu.adept.org [63.201.63.44]) by hub.freebsd.org (Postfix) with ESMTP id 0675337B406 for ; Wed, 15 May 2002 12:27:03 -0700 (PDT) Received: by snafu.adept.org (Postfix, from userid 1000) id 7040B9EE33; Wed, 15 May 2002 12:26:55 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by snafu.adept.org (Postfix) with ESMTP id 6CF259B001 for ; Wed, 15 May 2002 12:26:55 -0700 (PDT) Date: Wed, 15 May 2002 12:26:55 -0700 (PDT) From: Mike Hoskins To: Subject: pthread Q Message-ID: <20020515121709.S50763-100000@snafu.adept.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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