From owner-freebsd-threads@FreeBSD.ORG Sun Jun 8 12:21:00 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43E0737B401 for ; Sun, 8 Jun 2003 12:21:00 -0700 (PDT) Received: from basement.kutulu.org (pcp03610121pcs.longhl01.md.comcast.net [68.49.239.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4C0C43FBD for ; Sun, 8 Jun 2003 12:20:58 -0700 (PDT) (envelope-from kutulu@kutulu.org) Received: by basement.kutulu.org (Postfix, from userid 1001) id 036EAA989; Sun, 8 Jun 2003 15:20:58 -0400 (EDT) Date: Sun, 8 Jun 2003 15:20:58 -0400 From: Michael Edenfield To: Petri Helenius Message-ID: <20030608192058.GA37124@basement.kutulu.org> Mail-Followup-To: Michael Edenfield , Petri Helenius , freebsd-threads@freebsd.org References: <03ff01c32de9$5ce5cda0$812a40c1@PETEX31> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: <03ff01c32de9$5ce5cda0$812a40c1@PETEX31> User-Agent: Mutt/1.4.1i X-Mailer: Mutt http://www.mutt.org/ X-Accept-Language: en X-PGP-Key: http://www.kutulu.org/pgp/kutulu.asc X-PGP-Fingerprint: 1CE0 3C31 7013 D529 406D 37DC 09CC CD84 A46C 878F cc: freebsd-threads@freebsd.org Subject: Re: mysql X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2003 19:21:00 -0000 --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Petri Helenius [030608 14:11]: > Is there a preferred way / patchset to the Makefiles to build mysql with = libkse? Since libkse should be a drop-in replacement for libc_r, the easiest=20 thing to do is to rebuild your rtld with libmap support. Then you can=20 build the mysql ports to link to libc_r as normal, and reroute the=20 linker to libkse at load time. To do this: * Add 'WITH_LIBMAP=3Dyes' to /etc/make.conf * Rebuild world (1) * Create /etc/libmap.conf that looks like (2): [mysqld] libc_r.so.5 libkse.so.1 =20 libc_r.so libkse.so [/usr/local/bin/mysqld] libc_r.so.5 libkse.so.1 =20 libc_r.so libkse.so * Repeat for any other apps you want to use libkse (3). * Retart mysql. Things to note: (1) You only really need to rebuild rtld-elf, so a simple: cd /usr/src/libexec/rtld-elf ; make install should work. I never assume my source is in sync w/ my installed=20 world, though, so I just rebuild the whole thing to be safe. (2) man libmap.conf shows the (rather simple) syntax for the file. =20 The only catch is that you need to specify the full pathname to the=20 binary being run through the runtime loader (thus the reason for [bin]=20 and [/path/to/bin] sections). I find it easier to follow the premise=20 of the example in the man page: globally replace libc_r -> libkse (or=20 libthr) and only exclude those programs that absolutely need it. (3) Obviously, when libkse gets renamed to libpthead you'll need to=20 fix the config file :) --Mike --KsGdsel6WgEHnImy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+44yZCczNhKRsh48RAoAQAJ43vQpLGoT6b4fRwKyVlgieE5faCwCfSQ8X x0xHmS2tDZBYHN24pf8fGoY= =SoYC -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy--