ld: fatal: file /lib/libc.so: version 'SUNW_1.22.5' is unavailable

Yann Rouillard yann at pleiades.fr.eu.org
Tue Apr 22 00:13:01 CEST 2014


Hi,

I am also running into this problem with sasl and I wonder why we couldn't
just raise the minimal libc version interface to 1.22.5 ?
It has been introduced in Solaris 10 update 8 which is nearly 5 years old
now. What do you think ?

Yann



2014-02-16 13:39 GMT+01:00 Dagobert Michelsen <dam at opencsw.org>:

> Hi Jake,
>
> Am 13.02.2014 um 18:27 schrieb Jake Goerzen <jgoerzen at opencsw.org>:
>
>   Since the last update to mysql packages I can no longer build dovecot
> anymore, configure fails with:
>
> checking for mysql_config... mysql_config
> checking for mysql_init in -lmysqlclient... no
> configure: error: Can't build with MySQL support: libmysqlclient not found
> /home/jgoerzen/opencsw/.buildsys/v2/gar//gar.lib.mk:835: recipe for
> target
> 'configure-work/solaris10-i386/build-isa-pentium_pro/dovecot-2.2.10/configure'
> failedgmake[1]: ***
> [configure-work/solaris10-i386/build-isa-pentium_pro/dovecot-2.2.10/configure]
> Error 1
>
>
> Looking In config.log the error encountered is:
> ld: fatal: file /lib/libc.so: version 'SUNW_1.22.5' is unavailable
>
> configure:23474: checking for mysql_init in -lmysqlclient
> configure:23499: /opt/SUNWspro/bin/cc -o conftest -xO3 -m32
> -xarch=pentium_pro -xchip=pentium_pro -I/opt/csw/include
> -I/opt/csw/include/mysql -I/opt/csw/include/postgresql -I/opt/csw/include
> -m32 -xarch=pentium_pro -xchip=pentium_pro -L/opt/csw/lib conftest.c
> -lmysqlclient  -lrt -lnsl -lsocket  -lsendfile -L/opt/csw/lib
> -lmysqlclient  -lsocket -lz -lnsl -lrt -lssl -lcrypto -lz -lm >&5
> "conftest.c", line 155: warning: statement not reached
> ld: fatal: file /lib/libc.so: version 'SUNW_1.22.5' is unavailable:
>         required by file /opt/csw/lib/libmysqlclient.so
> ld: fatal: file processing errors. No output written to conftest
>
>
> I tried switching the compiler to GCC4 but configure still can't find or
> link -lmysqlclient  What could be the problem?
>
>
> The problem is that mysql actually needs the newer libc-version for
> getpagesize2() as reported in
>   https://www.opencsw.org/mantis/view.php?id=5137
> This is not related to GCC or Sun Studio. I suggest you disable the linker
> map forcing 1.22.5 in your Makefile with
>   # Disable linker map forcing SUNW_1.22.2 as the linked MySQL needs
> SUNW_1.22.5
>   LINKER_MAPS =
> After that everything sould work cleanly.
>
>
> Best regards
>
>   — Dago
>
>  --
> "You don't become great by trying to be great, you become great by wanting
> to do something,
> and then doing it so hard that you become great in the process." - xkcd
> #896
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencsw.org/pipermail/maintainers/attachments/20140422/53f242a9/attachment.html>


More information about the maintainers mailing list