Results 1 to 4 of 4

Thread: openSuSe-11.3 + mysql

  1. #1

    Default 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

  2. #2
    Join Date
    Jan 2009
    Location
    Switzerland
    Posts
    1,529

    Default Re: openSuSe-11.3 + mysql

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

    Code:
    # 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.
    Technology is 'stuff that doesn't work yet.' -- Bran Ferren

  3. #3

    Default Re: openSuSe-11.3 + mysql

    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:

  4. #4
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: openSuSe-11.3 + mysql

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •