From owner-freebsd-ports Mon Feb 14 16:20:32 2000 Delivered-To: freebsd-ports@freebsd.org Received: from monsoon.mail.pipex.net (monsoon.mail.pipex.net [158.43.128.69]) by builder.freebsd.org (Postfix) with SMTP id 156B24CCC for ; Mon, 14 Feb 2000 16:06:14 -0800 (PST) Received: (qmail 21635 invoked from network); 15 Feb 2000 00:06:21 -0000 Received: from userbn72.uk.uudial.com (HELO marder-1.) (62.188.145.123) by smtp.dial.pipex.com with SMTP; 15 Feb 2000 00:06:21 -0000 Received: (from mark@localhost) by marder-1. (8.9.3/8.9.3) id AAA89465; Tue, 15 Feb 2000 00:05:54 GMT (envelope-from mark) Date: Tue, 15 Feb 2000 00:05:51 +0000 From: Mark Ovens To: OKAZAKI Tetsurou Cc: cpiazza@jaxon.net, bsletten@nova.org, ports@FreeBSD.ORG Subject: Re: xmms-1.0.1 "runs slow" Message-ID: <20000215000551.A89205@marder-1> References: <20000213231258.B826@marder-1> <20000214003909.B328@marder-1> <20000213180447.C9728@norn.ca.eu.org> <20000214182907.B333@marder-1> <86900n8k86.wl@dolphin.be.to> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <86900n8k86.wl@dolphin.be.to> Organization: Total lack of Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Feb 15, 2000 at 07:58:33AM +0900, OKAZAKI Tetsurou wrote: > In the message <20000214182907.B333@marder-1> > Mark Ovens wrote: > > > On Sun, Feb 13, 2000 at 06:04:47PM -0800, Chris Piazza wrote: > > > > > > If you build X from ports it will create a thread-safe Xlib... every > > > machine I've tested this on had it (and also had no problems) so that > > > may very well be the problem. > > > > > > Well, I built XFree86 3.3.5 from the ports with no special flags etc. > > Is there anyway I can check that my Xlibs are thread-safe? The fact > > that xmms 0.9.5 worked fine suggests that they are, doesn't it? > > The XInitThreads(3X11) function is used to check the MT-safeness of > the Xlib. For a example, prepare a simple test program: > > #include > #include > > int main() > { > Display *d = XOpenDisplay(NULL); > int status; > status = XInitThreads(); > printf("%d\n", status); > XCloseDisplay(d); > exit(status); > } > > as xinitthreads.c and compile it as follows. > > % cc -D_THREAD_SAFE -D_REENTRANT -I/usr/X11R6/include xinitthreads.c \ > -L/usr/X11R6/lib -lX11 -pthread > > If running ./a.out prints a non-zero number, your Xlibs are MT-safe. > Thanks. I have upgraded XFree86 to 3.3.6, tried your program and it returns 1, so everything is fine but xmms sill displays the same problems :( > -- > Tetsurou -- Microsoft: Where do you want to go today? Linux: Where do you want to go tomorrow? BSD: Are you guys coming, or what? -Poster at LinuxWorld 2000 ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message