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

David Collier-Brown davecb at Canada.Sun.COM
Thu Dec 17 17:41:13 GMT 1998


Daniel Eischen wrote:
>
> At a quick glance...
> 
> But, at least with Solaris 2.6 include files, if you provide
> _FILE_OFFSET_BITS=64, then /usr/include/sys/statvfs.h redefines
> [f]statvfs to [f]statvfs64.  And the following check also fails:
> 
>   /* transitional large file interface versions */
>   #if   defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \
>             !defined(__PRAGMA_REDEFINE_EXTNAME))
>   int statvfs64(const char *, struct statvfs64 *);
>   int fstatvfs64(int, struct statvfs64 *);
>   #endif        /* _LARGEFILE64_SOURCE... */
> 
> because _FILE_OFFSET_BITS is 64 and __PRAGMA_REDEFINE_EXTNAME isn't
> defined.  So the prototypes for [f]statvfs and [f]statvfs64 are never
> found.  Perhaps adding -D__PRAGMA_REDEFINE_EXTNAME would make it
> work for Solaris 2.6 if you didn't want to use LARGEFILE64_SOURCE.

	I'd rather set _LARGEFILE64_SOURCE 9a supported
	mexed mode) than muck about with internal-to-.h
	variables like __PRAGMA_REDEFINE_EXTNAME.

	Alas, I can't test this on gcc, as I'm using
	Sun cc, and can't build **any** variant on 2.6.
	This is samba-2.0.0beta4, by the way, straight off
	the mirror.

--dave (looking for workarounds) c-b
-- 
David Collier-Brown,  | Always do right. This will gratify some people
185 Ellerslie Ave.,   | and astonish the rest.        -- Mark Twain
Willowdale, Ontario   | http://java.science.yorku.ca/~davecb
Work: (905) 477-0437, Home: (416) 223-8968, Email: davecb at canada.sun.com


More information about the samba-technical mailing list