samba shares access issue in Solaris from a MT program
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
> AC_DEFINE(SYSV, 1, [Whether to enable System V compatibility])
> case `uname -r` in
> AC_MSG_RESULT([no large file support])
> 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 ...).
Richard Sharpe, rsharpe[at]richardsharpe.com, rsharpe[at]samba.org,
More information about the samba-technical