<div dir="ltr">Hi,<div><br></div><div>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 ?</div><div>It has been introduced in Solaris 10 update 8 which is nearly 5 years old now. What do you think ?<br>
</div><div><br></div><div>Yann</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-16 13:39 GMT+01:00 Dagobert Michelsen <span dir="ltr"><<a href="mailto:dam@opencsw.org" target="_blank">dam@opencsw.org</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Jake,<div><br><div><div>Am 13.02.2014 um 18:27 schrieb Jake Goerzen <<a href="mailto:jgoerzen@opencsw.org" target="_blank">jgoerzen@opencsw.org</a>>:</div>
<div><div class="h5"><blockquote type="cite"><div bgcolor="#FFFFFF" text="#000000"> Since the last update to mysql packages I can no longer build
dovecot anymore, configure fails with:<br>
<br>
<blockquote>checking for mysql_config... mysql_config<br>
checking for mysql_init in -lmysqlclient... no<br>
configure: error: Can't build with MySQL support: libmysqlclient
not found<br>
/home/jgoerzen/opencsw/.buildsys/v2/gar//<a href="http://gar.lib.mk:835" target="_blank">gar.lib.mk:835</a>: 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</blockquote>
<br>
Looking In config.log the error encountered is:<br>
ld: fatal: file /lib/libc.so: version 'SUNW_1.22.5' is unavailable<br><br>
<blockquote>configure:23474: checking for mysql_init in
-lmysqlclient<br>
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<br>
"conftest.c", line 155: warning: statement not reached<br>
ld: fatal: file /lib/libc.so: version 'SUNW_1.22.5' is
unavailable:<br>
required by file /opt/csw/lib/libmysqlclient.so<br>
ld: fatal: file processing errors. No output written to conftest<br>
</blockquote>
<br>
I tried switching the compiler to GCC4 but configure still can't
find or link -lmysqlclient What could be the problem?<br></div></blockquote><br></div></div></div><div>The problem is that mysql actually needs the newer libc-version for getpagesize2() as reported in</div><div> <a href="https://www.opencsw.org/mantis/view.php?id=5137" target="_blank">https://www.opencsw.org/mantis/view.php?id=5137</a></div>
<div>This is not related to GCC or Sun Studio. I suggest you disable the linker map forcing 1.22.5 in your Makefile with</div><div> # Disable linker map forcing SUNW_1.22.2 as the linked MySQL needs SUNW_1.22.5</div><div>
LINKER_MAPS =</div><div>After that everything sould work cleanly.</div><div><br></div><div><br></div><div>Best regards</div><div><br></div><div> — Dago</div><span class="HOEnZb"><font color="#888888"><br><div>
<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">
<span style="font-family:monospace">-- </span><br style="font-family:monospace"><span style="font-family:monospace">"You don't become great by trying to be great, you become great by wanting to do something,</span><br style="font-family:monospace">
<span style="font-family:monospace">and then doing it so hard that you become great in the process." - xkcd #896</span></div>
</div>
<br></font></span></div></div></blockquote></div><br></div>