On 26/12/2007, at 2:43 AM, Mike Gerdts wrote:

> On Dec 25, 2007 1:33 PM, K <[EMAIL PROTECTED]> wrote:
>>
>>  if (fclose (file)) {
>>      fprintf (stderr, "fatal: unable to close temp file: %s\n",
>>           strerror (errno));
>>      exit (1);
>>
>> I don't understand why the above piece of code is failing...
>
> What command line is used to compile the code?  I would guess that you
> don't have large file support.  A variant of the following would
> probably be good:
>
> cc -c $CFLAGS `getconf LFS_CFLAGS` myprog.c
> cc -o myprog $LDFLAGS `getconf LFS_LDFLAGS`
>
> --  
> Mike Gerdts
> http://mgerdts.blogspot.com/

getconf -a | grep ^LFS
LFS64_CFLAGS:                   -D_LARGEFILE64_SOURCE
LFS64_LDFLAGS:
LFS64_LIBS:
LFS64_LINTFLAGS:                -D_LARGEFILE64_SOURCE
LFS_CFLAGS:                     -D_LARGEFILE_SOURCE - 
D_FILE_OFFSET_BITS=64
LFS_LDFLAGS:
LFS_LIBS:
LFS_LINTFLAGS:                  -D_LARGEFILE_SOURCE - 
D_FILE_OFFSET_BITS=64

I guess that will do. Thanks for the tip.
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to