octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #54235] problems building Octave on Solaris


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #54235] problems building Octave on Solaris
Date: Thu, 26 Jul 2018 08:33:52 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0

Follow-up Comment #172, bug #54235 (project octave):

The work-around for uname might actually break POSIX conform systems. From the
specs [1]:
"Upon successful completion, a non-negative value shall be returned.
Otherwise, -1 shall be returned and errno set to indicate the error."

So err>0 should indicate success and not an error.

The Solaris docs contain the same sentence [2]. So if this is working
differently on Solaris, it is a bug and it should probably be fixed in
gnulib.

Maybe we should also adapt our octave_uname_wrapper where we compare "err ==
0" instead of "err >= 0" for success. (Is this the "real" bug?)

[1]: http://pubs.opengroup.org/onlinepubs/9699919799/functions/uname.html
[2]: https://docs.oracle.com/cd/E86824_01/html/E54765/uname-2.html

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54235>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]