zsh-workers
 help / color / mirror / code / Atom feed
* RE: LFS notes RE: pws-18 is go
@ 1999-05-11 17:41 Andrej Borsenkow
  0 siblings, 0 replies; 2+ messages in thread
From: Andrej Borsenkow @ 1999-05-11 17:41 UTC (permalink / raw)
  To: ZSH workers mailing list

Additional note: I think, until all issues are resolved, the configure
parameter (--enable-lfs would do) is needed. Currently I simply cannot
disable LFS even if I don't need it at all (I don't want to set CPPFLAGS to
some silly value; and in my case they are CFLAGS and not CPPFLAGS in the
first place).


^ permalink raw reply	[flat|nested] 2+ messages in thread

* LFS notes RE: pws-18 is go
  1999-05-11 14:50 Peter Stephenson
@ 1999-05-11 17:27 ` Andrej Borsenkow
  0 siblings, 0 replies; 2+ messages in thread
From: Andrej Borsenkow @ 1999-05-11 17:27 UTC (permalink / raw)
  To: ZSH workers mailing list

>
> This includes the large file support for SunOS, although Andrej's points
> are all valid.

Unfotunately, after more close look at it, this is broken.

1. It sets both LFS_CLFAGS *and* LFS64_CFLAGS. The two are for *very*
different modes of compilation; you may select one or other - but you cannot
assume, that mixing them is safe (even, if it helds true for any particular
OS). LFS_CFLAGS & Co is for the case, when you use normal, usual interfaces
(open/lseek ...) and makes off_t/ino_t 64 bit long. LFS64_CFLAGS & Co is for
the case, when you use explicit 64 bit interfaces (open64/lseek64/...) and
introduces new types off64_t, ino64_t and some others.

2. Zsh is using fseek/ftell. These are using long and are incompatible with
LFS; to be on safe side, one must use fseeko/ftello that use off_t.

3. Setting LFS[64]_CFLAGS & Co is not enough!!! One must set either
_LARGEFILE_SOURCE *or* _LARGEFILE64_SOURCE to indicate, which mode is used
(a side note, that _LARGEFILE64_SOURCE has some problems on our system).

For reference, look at
http://ftp.sas.com/standards/large.file/x_open.20Mar96.html I think, this
should be in Single Unix as well.

4. (minor) summary at the end of configure does not include LFS flags.

I urge you once again to really think about adopting LP64 model. If system
supports LFS it should (most probably) support LP64 as well. It does not
have as nice configure tests, must I admit ... but it does not require
changes in ZSH sources.

regards

/andrej


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-05-11 17:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-11 17:41 LFS notes RE: pws-18 is go Andrej Borsenkow
  -- strict thread matches above, loose matches on Subject: below --
1999-05-11 14:50 Peter Stephenson
1999-05-11 17:27 ` LFS notes " Andrej Borsenkow

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).