OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Why does mysql have trouble in launching "mysql" and some other ap ps?

From: Tetsuji (maverick6664aquarius.livedoor.com)
Date: Sat Apr 02 2005 - 13:57:16 CST


--Marc Espie<espienerim.net> wrote:
>On Sun, Apr 03, 2005 at 02:58:27AM +0900, Tetsuji Rai wrote:
>> Installation works perfect, and mysqld_safe also works fine. however some clients such as mysql, mysqladmin doesn't work saying "../libmysql/.libs/libmysqlclient.so.12.0 not found"
>>
>> Maybe ports patches do the trick, but I want to know what's the problem.
>>
>> Will you give me any hints?
>
>This is a libtool issue.
>
>Libtool is a big pain in the ass. It doesn't do what it claims to do,
>and most patches we've sent `don't fit into the GNU scheme of things
>anyways'.
>
>It's a very good example of project management done the GNU way: slippage
>between releases, no-one to answer important stuff, over-designed, bloated
>and not achieving what it meant to do in the first place.
>
>

Thanks all. For now I don't know much about libtool, but my personal workaround is to build those problematic executables with -static option by hand. I've read about this on mysql page or something, found somebody wrote that he built mysql with shared disabled, but this workaround has a problem to me. I want to build php-4 or php-5 with mysql and apache2 (somehow openbsd comes with apache-1.3.xx) and if mysql is built with shared library disabled, php isn't built with libphp4.so/libphp5.so
required for apache. So I need to build mysql with shared library enabled, and link some executables with -static option. Now I am wondering which *BSD I should use...FreeBSD/NetBSD/OpenBSD....I wonder why it works with FreeBSD while it doesn't with OpenBSD. Does FreeBSD do any tricks with libtool? I am thinking of using ports, but usually ports.tar.gz is out of date...

Now I have another question; When I build php-4.3.10(oh, now the latest one is 4.3.11) or php-5.0.3, it creates libphp4.so or libphp5.so as an apache module, and at first it *seems* to work with apache. However after rebooting OpenBSD, apache won't launch....I mean "apachectl start" won't complain, but httpd's aren't running. What's the problem? If I remove "Loadmodule modules/libphp4.so" in conf/httpd.conf, apache runs normally.....and it doesn't happen with FreeBSD.

If these problems have gone, I am thinking of using OpenBSD...

Thanks in advance.
--------
Tetsuji 'Maverick' Rai
Born to be the luckiest guy in the world! May the Force be with me!
Aviation Joke: http://www.geocities.com/tetsuji_rai
Profile: http://maverick.ns1.name/
http://n.1asphost.com/ro0tless/
maverick6664abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk.com

-----------------------------------------------
2GB$B$^$G%a!<%k$d2hA|$J$ICy$aJ|Bj!*$5$i$KFCE5$$$C$Q$$"v(B
livedoor $B%.%,%a!<%i!<%W%i%9(B $B!Z?7EP>l![(B
http://gigamailerplus.livedoor.com/