samba shares access issue in Solaris from a MT program
Richard Sharpe
rsharpe at richardsharpe.com
Wed Oct 27 17:26:22 GMT 2004
On Wed, 27 Oct 2004, Narayana Pattipati wrote:
> I was building samba with this change to configure.in in Solaris 10 and
> found a small issue there in configure.in. In Solaris 10, the CPPFLAGS,
> LDFLAGS are not exported at all while building. I figured out the
> solution to the issue.
>
> The section of configure.in where we are adding D_REENTRANT and -lthread
> is something like this:
> case "$host_os" in
> ..........
> *solaris*)
> AC_DEFINE(SYSV, 1, [Whether to enable System V compatibility])
> case `uname -r` in
> 5.0*|5.1*|5.2*|5.3*|5.5*)
> AC_MSG_RESULT([no large file support])
> 5.*)
> AC_MSG_RESULT([enabling large file support])
> .......
> ........
> CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -D_REENTRANT"
>
> But, since uname -r 5.10 matches regex 5.1* in the previous statement,
> condition returns there itself and the CPPFLAGS are not getting exported
> in Solaris 10 builds. This problem would not be there in Solaris 8, 9.
OK, this looks good. I will apply it in a few minutes to tens of minutes
(ie, when svn update completes ...).
Regards
-----
Richard Sharpe, rsharpe[at]richardsharpe.com, rsharpe[at]samba.org,
sharpe[at]ethereal.com, http://www.richardsharpe.com
More information about the samba-technical
mailing list