From owner-freebsd-questions@FreeBSD.ORG Wed Feb 27 17:11:11 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 707BB106566C for ; Wed, 27 Feb 2008 17:11:11 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 5703B8FC16 for ; Wed, 27 Feb 2008 17:11:11 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 041BA1CDE2; Wed, 27 Feb 2008 08:11:08 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org, nicolas@nicoelro.net Date: Wed, 27 Feb 2008 18:11:06 +0100 User-Agent: KMail/1.9.7 References: <47C593BB.1090303@nicoelro.net> In-Reply-To: <47C593BB.1090303@nicoelro.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802271811.07481.fbsd.questions@rachie.is-a-geek.net> Cc: Subject: Re: problem with linuxthreads when installing mysql5 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2008 17:11:11 -0000 On Wednesday 27 February 2008 17:45:47 Nicolas Letellier wrote: > When I want to install mysql5-server (with portinstall and these > options: WITH_CHARSET=latin1 WITH_COLLATION=latin1_swedish_ci > WITH_OPENSSL=yes BUILD_OPTIMIZED=yes WITH_LINUXTHREADS=yes), I've got > this error: > > ===> Installing for linuxthreads-2.2.3_23 > ===> Generating temporary packing list > ===> Checking if devel/linuxthreads already installed > ===> linuxthreads-2.2.3_23 is already installed > You may wish to ``make deinstall'' and install this port again > by ``make reinstall'' to upgrade it properly. > If you really wish to overwrite the old port of devel/linuxthreads > without deleting it first, set the variable "FORCE_PKG_REGISTER" > in your environment or the "make install" command line. > *** Error code 1 > > Stop in /usr/ports/devel/linuxthreads. > *** Error code 1 > > Stop in /usr/ports/databases/mysql50-client. > ** Command failed [exit code 1]: /usr/bin/script -qa > /tmp/portinstall.26307.1 env make WITH_CHARSET=latin1 > WITH_COLLATION=latin1_swedish_ci WITH_OPENSSL=yes BUILD_OPTIMIZED=yes > WITH_LINUXTHREADS=yes > ** Fix the problem and try again. > [Updating the pkgdb in /var/db/pkg ... - 49 packages > found (-0 +1) . done] > ** Listing the failed packages (-:ignored / *:skipped / !:failed) > ! databases/mysql50-client (unknown build error) > > > > So... I delete linuxthreads (with pkg_deinstall) and I retry... The > error is the same. Installing mysql50-server with linuxthread option > installes linuxthread port two times... The first time, it works, the > second, I got this message. > > Why 'portinstall mysql5-server' installs two times linuxthreads? How > solve this problem? Because mysql50-server port thinks -lthread can only have shlib version 3 or 5, while if built with gcc 4 (FreeBSD 7.x), you get 6 or 7. So, you can wait for the port to be fixed or not use linuxthreads. You could fix the port yourself, by altering the following line: LIB_DEPENDS+= lthread.[35]:${PORTSDIR}/devel/linuxthreads to: LIB_DEPENDS+= lthread.[3-7]:${PORTSDIR}/devel/linuxthreads in /usr/ports/databases/mysql50-server/Makefile BUT....there might be a reason the port maintainer excludes these version numbers. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.