openSuSe-11.3 + mysql

Greetings!

Moving stuff from 9.3 to 11.3 I’m running into the problem that I cannot find libmysqlclient.a to link against c programs.
mysql-devel provides shared (.so) modules only.

Is there a repo providing this or do I have to install mysql-5 from source?

Thanks for hints
Wolf

The openSUSE packaging standard requests that no static libraries are included in packages. Therefore the .spec file deletes them:

# remove most static libs (FIXME: don't build them at all...)  
rm -f %buildroot%_libdir/libmysqlclient*a  
rm -f %buildroot%_libdir/mysql/*.a %buildroot%_libdir/mysql/*.la  
rm -f %buildroot%_libdir/mysql/plugin/*a

I do not recommend to build from the plain source. You would loose a lot of openSUSE patches and end up with iso-8859-1 default encoding while openSUSE is using UTF-8. It is far better to download the src.rpm package, edit the .spec file to enable static libraries, and re-package locally. If you need help with this please come back here.

OK, remarkable :\ (and frustrating).

But how is it intended to link c/c++ with mysql-5 static libraries?
I did not find any hint in the mysql-5 docu how to compile the api with shared libraries.

Wolf:

Why do you want static libraries? By default, the linker will use shared libraries, which is a good thing.