[freetds] thread problem on Solaris

Frediano Ziglio freddyz77 at tin.it
Fri Aug 18 12:34:53 EDT 2006


Il giorno gio, 17/08/2006 alle 10.41 +0200, ZIGLIO, Frediano, VF-IT ha
scritto:
> It seems that we have some problems with Solaris using thread. See dblib
> thread test at
> http://freetds.sourceforge.net/outsf/sparc-solaris2/dblib_thread.1.html.
> >From http://freetds.sourceforge.net/outsf/sparc-solaris2/conf.1.html you
> can note that pthread_create is found in default Solaris libraries. I
> searched for some thread m4 macro and I found at
> http://autoconf-archive.cryp.to/acx_pthread.html ACX_PTHREAD.

This macro and some configure stuff fixed the problem !

> Specifically 
> 
> On Solaris (at least, for some versions), libc contains stubbed
> (non-functional) versions of the pthreads routines, so link-based tests
> will erroneously succeed.
> 
> Damn...
> 
> I think I'll try to use this macro. Solaris users should forse some
> options using CFLAGS/LDFLAGS macros.
> 

freddy77





More information about the FreeTDS mailing list