From owner-freebsd-stable Wed May 15 18:18:32 2002 Delivered-To: freebsd-stable@freebsd.org Received: from www.dvfootage.com (dvfootage.com [216.228.5.85]) by hub.freebsd.org (Postfix) with ESMTP id 2018B37B403 for ; Wed, 15 May 2002 18:18:25 -0700 (PDT) Received: from hamsterfactor.atpn.com (pm2-96.corp.redshift.com [216.228.4.96]) by www.dvfootage.com (Postfix) with ESMTP id 6A6EE5D3A; Wed, 15 May 2002 18:18:09 -0700 (PDT) Subject: Re: pthread Q From: Yann Ramin To: Mike Hoskins Cc: stable@freebsd.org In-Reply-To: <20020515121709.S50763-100000@snafu.adept.org> References: <20020515121709.S50763-100000@snafu.adept.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-unSWjr7EwW+XO5pbPl7H" X-Mailer: Ximian Evolution 1.0.3 Date: 15 May 2002 18:18:43 -0700 Message-Id: <1021511930.442.1.camel@hamsterfactor.atpn.com> Mime-Version: 1.0 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 --=-unSWjr7EwW+XO5pbPl7H Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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: >=20 > 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. >=20 > I removed my current linuxthreads install, and made sure none of the old > symlinks, etc. were left lying around. Cvsuped latest ports and installe= d > /usr/ports/devel/linuxthreads. That worked, >=20 > # pkg_info|grep thread > linuxthreads-2.2.3_5 POSIX pthreads implementation using rfork ... >=20 > In files/README.FreeBSD I see, >=20 > ---- > In order to facilitate porting applications which expect a libpthread, yo= u > can create the following symlinks if you want: >=20 > 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 > ---- >=20 > Did that. Now I try to build xmms port (noting it uses -D_THREAD_SAFE > and -lpthread) and get: >=20 > 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 >=20 > Should I need to use a -I/path/to/linuxthreads somewhere? Thought that's > what the symlinks were for? >=20 > Need clue++. >=20 > Later, > -Mike >=20 > -- > "They that can give up essential liberty to obtain a little temporary > safety deserve neither liberty nor safety." --Benjamin Franklin >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message --=20 -------------------------------------------------------------------- Yann Ramin atrus@atrustrivalie.org 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=20 universe that makes sense. But the real universe is always one step=20 beyond logic. - Muad'Dib (Dune, Frank Herbert)=20 -------------------------------------------------------------------- --=-unSWjr7EwW+XO5pbPl7H Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQA84wjzlA0QN7eQoOwRApINAJ4110TLknJ9I4d8z3SGrENQvsL8dACeP0xV e3LvmZnuRomDLW1IjzBF/F8= =GoA3 -----END PGP SIGNATURE----- --=-unSWjr7EwW+XO5pbPl7H-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message