It's time for 3.0.1

Gerald (Jerry) Carter jerry at samba.org
Mon Dec 8 19:06:03 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Collier-Brown wrote:
| David Collier-Brown wrote:
|
|>
|> /* Whether off64_t is available */
|> /* #undef HAVE_OFF64_T */
|>
|
| An, indeed, when I run configure it says:
|     checking for off64_t... no
...

| When run on my 64-bit Solaris machine , I get:
| elsbeth> cc -o foo foo.c
| "foo.c", line 7: warning: old-style declaration or incorrect type for:
main
| "foo.c", line 11: warning: implicit function declaration: exit
| elsbeth> ./foo; echo $?
| 0
| elsbeth>

This is what I get on Solaris 8 (gcc 2.95)

configure:17767: checking for off64_t
configure:17788: gcc -o conftest -Wall -g  -D_LARGEFILE_SOURCE
- -D_FILE_OFFSET_BITS=64
~  conftest.c -lsec -lgen -lresolv -lsocket -lnsl  >&5
configure:17783: warning: return-type defaults to `int'
configure: In function `main':
configure:17783: warning: unused variable `s'
configure:17791: $? = 0
configure:17793: ./conftest
configure:17796: $? = 1
configure: program exited with status 1
configure: failed program was:
#line 17776 "configure"
#include "confdefs.h"

#if defined(HAVE_UNISTD_H)
#include <unistd.h>
#endif
#include <stdio.h>
#include <sys/stat.h>
main()
{
	struct stat64 st;
	off64_t s;
	if (sizeof(off_t) == sizeof(off64_t))
		exit(1);

	exit((lstat64("/dev/null", &st)==0)?0:1);

}

configure:17809: result: no

which makes sense since you say the following is in <stdio.h>

	typedef off_t off64_t;





cheers, jerry
~ ----------------------------------------------------------------------
~ Hewlett-Packard            ------------------------- http://www.hp.com
~ SAMBA Team                 ---------------------- http://www.samba.org
~ GnuPG Key                  ---- http://www.plainjoe.org/gpg_public.asc
~ "If we're adding to the noise, turn off this song" --Switchfoot (2003)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/1MubIR7qMdg1EfYRAkvdAKC/s3jlSg3XOch/d/y7gYbwYzVjbgCfXoj5
l+FyAuL4p481OtDsvu0FnF8=
=sjhI
-----END PGP SIGNATURE-----



More information about the samba-technical mailing list