From owner-freebsd-net@FreeBSD.ORG Mon May 25 17:27:49 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8ECAE106564A for ; Mon, 25 May 2009 17:27:49 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 4EC7C8FC1B for ; Mon, 25 May 2009 17:27:48 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 4519C19E045; Mon, 25 May 2009 19:11:50 +0200 (CEST) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id B6AB719E043; Mon, 25 May 2009 19:11:47 +0200 (CEST) Message-ID: <4A1AD154.9070102@quip.cz> Date: Mon, 25 May 2009 19:11:48 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: Sam Wun References: <736c47cb0905250716y6208e10ax3a6e325c1c96dfd1@mail.gmail.com> In-Reply-To: <736c47cb0905250716y6208e10ax3a6e325c1c96dfd1@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Can't start mysql in jail X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 May 2009 17:27:49 -0000 Sam Wun wrote: > Hi, > > This seems a common question, but it is a bit different. > Production OS: FreeBSD 6.2 > Source OS: FreeBSD 7.2 > > I created a jailed mysql 5.1 in my source OS FreeBSD 7.2, and then tar > it up and scp into a production OS FreeBSD 6.2. > After setup a jail in 6.2 for the jailed mysql, I tried to start up > mysql server, but it failed with very lilttle error message. > The error log just said, > " > 090525 20:18:26 mysqld_safe Starting mysqld daemon with databases from > /usr/local/var/db/mysql > 090525 20:18:26 mysqld_safe mysqld from pid file > /usr/local/var/db/mysql/wp1.xxx.au.pid ended > .. > " > > What is the problem with Freebsd 6.2 running 7.2 jailed files? > Is there anyone to fix this problem? It is problem with versions of linked libraries" on FreeBSD 7.2 ~/> ldd /usr/local/libexec/mysqld /usr/local/libexec/mysqld: librt.so.1 => /usr/lib/librt.so.1 (0x800ad0000) libz.so.4 => /lib/libz.so.4 (0x800bd5000) libwrap.so.5 => /usr/lib/libwrap.so.5 (0x800ce9000) libcrypt.so.4 => /lib/libcrypt.so.4 (0x800df2000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x800f0b000) libm.so.5 => /lib/libm.so.5 (0x801117000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x801231000) libthr.so.3 => /lib/libthr.so.3 (0x80133e000) libc.so.7 => /lib/libc.so.7 (0x801454000) on FreeBSD 6.3 ~/> ldd /usr/local/libexec/mysqld /usr/local/libexec/mysqld: libz.so.3 => /lib/libz.so.3 (0x28478000) libwrap.so.4 => /usr/lib/libwrap.so.4 (0x28489000) libcrypt.so.3 => /lib/libcrypt.so.3 (0x28490000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x284a8000) libm.so.4 => /lib/libm.so.4 (0x28573000) libpthread.so.2 => /usr/lib/libthr.so.2 (0x28589000) libc.so.6 => /lib/libc.so.6 (0x2859b000) As you can see, there is different libc.so version, different threading library, etc. So you can't run MySQL daemon build on different major version OS. Miroslav Lachman