Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Nov 2000 09:50:17 -0600
From:      Ade Lovett <ade@FreeBSD.org>
To:        Alexey Zelkin <phantom@ark.cris.net>
Cc:        Dirk Froemberg <dirk@FreeBSD.org>, ports@FreeBSD.org
Subject:   Re: cvs commit: ports/databases/mysql322-server Makefile ports/databases/mysql323-server Makefile ports/databases/mysql322-server/files mysql-client.sh ports/databases/mysql323-server/files mysql-client.sh
Message-ID:  <20001116095017.Z39835@FreeBSD.org>
In-Reply-To: <20001116123605.B20159@ark.cris.net>; from phantom@ark.cris.net on Thu, Nov 16, 2000 at 12:36:05PM %2B0200
References:  <200011161029.CAA33821@freefall.freebsd.org> <20001116123605.B20159@ark.cris.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 16, 2000 at 12:36:05PM +0200, Alexey Zelkin wrote:
> I have experienced bad thing with cooperation of mod_php4 (with mysql support)
> and mysql-client port. On boot apache.sh attempts to load DSO for mod_php
> (linked against mysql shared libraries), but fails because mysql-client.sh
> which contains ldconfig call on /usr/local/lib/mysql was not called
> before (it will be called after apache.sh). I have fixed this problem
> just by renaming mysql-client.sh to _mysql-client.sh, but it's a hack
> and needs to be fixed in port.

Oh, it's worse than that (as I just discovered).  Build mail/exim
with WITH_MYSQL=YES, then rather either using the /usr/local/etc/rc.d/exim.sh
file, or modifying /etc/mail/mailer.conf and starting "sendmail" from
/etc/rc.conf will fail, since the libraries haven't been ldconfig'd.

Since this is only one shared library, I believe an appropriate fix
would be to drop in a symlink from /usr/local/lib to /usr/local/lib/mysql
for libmysqlclient.so.6 -- it would then be picked up by the normal 
/etc/rc process and handled correctly.

Of course, the other option is to add /usr/local/lib/mysql to
ldconfig_paths in /etc/rc.conf, but that will probably be a little
trickier to cover all the cases.

-aDe

-- 
Ade Lovett, Austin, TX.			ade@FreeBSD.org
FreeBSD: The Power to Serve		http://www.FreeBSD.org/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001116095017.Z39835>