[Fwd: [Patch] Configure broken for Solaris 2.6 (PR#12014)]

Jeremy Allison jallison at cthulhu.engr.sgi.com
Tue Dec 15 17:52:19 GMT 1998


Dave & others with Solaris 2.6,

	Can you check this patch please. It looks right to me
but I only have solaris 2.5.1, not 2.6

Cheers,

	Jeremy.



eischen at vigrid.com wrote:
> 
> For samba-2.0.0beta[3,4], configure doesn't work under Solaris 2.6.
> I have not tried it under Solaris 2.5.
> 
> Here is the relevant portion of config.log:
> 
> > configure:8740: checking statvfs64 function (SVR4)
> > configure:8762: gcc -o conftest -O  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  conftest.c -lsec -lsocket -lnsl -ldl  -lpam 1>&5
> > In file included from configure:8754:
> > /usr/include/sys/statvfs.h:93: warning: `struct statvfs64' declared inside parameter list
> > /usr/include/sys/statvfs.h:93: warning: its scope is only this definition or declaration,
> > /usr/include/sys/statvfs.h:93: warning: which is probably not what you want.
> > /usr/include/sys/statvfs.h:94: warning: `struct statvfs64' declared inside parameter list
> > configure: In function `main':
> > configure:8757: storage size of `fsd' isn't known
> > configure: failed program was:
> > #line 8748 "configure"
> > #include "confdefs.h"
> >
> > #if defined(HAVE_UNISTD_H)
> > #include <unistd.h>
> > #endif
> > #include <sys/types.h>
> > #include <sys/statvfs.h>
> >   main ()
> >   {
> >     struct statvfs64 fsd;
> >     exit (statvfs64 (".", &fsd));
> >   }
> > configure:8795: checking statvfs function (SVR4)
> > configure:8808: gcc -o conftest -O  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  conftest.c -lsec -lsocket -lnsl -ldl  -lpam 1>&5
> > In file included from configure:8802:
> > /usr/include/sys/statvfs.h:93: warning: `struct statvfs64' declared inside parameter list
> > /usr/include/sys/statvfs.h:93: warning: its scope is only this definition or declaration,
> > /usr/include/sys/statvfs.h:93: warning: which is probably not what you want.
> > /usr/include/sys/statvfs.h:94: warning: `struct statvfs64' declared inside parameter list
> > configure: In function `main':
> > configure:8804: storage size of `fsd' isn't known
> > configure: failed program was:
> > #line 8800 "configure"
> > #include "confdefs.h"
> > #include <sys/types.h>
> > #include <sys/statvfs.h>
> > int main() {
> > struct statvfs fsd; statvfs (0, &fsd);
> > ; return 0; }
> 
> Here is the patch that fixes it:
> 
> *** source/configure.orig       Mon Dec 14 20:20:57 1998
> --- source/configure    Tue Dec 15 11:32:55 1998
> ***************
> *** 1100,1108 ****
>   #
>         *solaris*)
>                 case `uname -r` in
>                         5.6*|5.7*)
> !                               CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
>                                 ;;
>                 esac
>                 ;;
>   #
> --- 1100,1108 ----
>   #
>         *solaris*)
>                 case `uname -r` in
>                         5.6*|5.7*)
> !                               CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
>                                 ;;
>                 esac
>                 ;;
>   #
> 
> Dan Eischen
> eischen at vigrid.com

-- 
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------


More information about the samba-technical mailing list