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

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

[Octave-bug-tracker] [bug #39725] OpenBSD build failure with gnulib sys/


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #39725] OpenBSD build failure with gnulib sys/time.h
Date: Thu, 08 Aug 2013 03:41:35 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?39725>

                 Summary: OpenBSD build failure with gnulib sys/time.h
                 Project: GNU Octave
            Submitted by: mtmiller
            Submitted on: Wed 07 Aug 2013 11:41:34 PM EDT
                Category: Configuration and Build System
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Build Failure
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: *BSD

    _______________________________________________________

Details:

Two files fail to compile on OpenBSD 5.3 due to errors from the gnulib
sys/time.h include file. This is almost certainly an upstream gnulib bug and I
will report it there when I have a minimal example, but reporting here to
track it for Octave as well.

liboctave/system/oct-time.cc:


In file included from ../libgnu/sys/select.h:86,
                 from /usr/include/sys/types.h:221,
                 from ../libgnu/sys/types.h:27,
                 from /usr/include/sys/time.h:38,
                 from ../libgnu/sys/time.h:38,
                 from ../../liboctave/system/oct-time.cc:31:
../libgnu/sys/time.h:419: error: '::gettimeofday' has not been declared
In file included from /usr/include/sys/types.h:221,
                 from ../libgnu/sys/types.h:27,
                 from /usr/include/sys/time.h:38,
                 from ../libgnu/sys/time.h:38,
                 from ../../liboctave/system/oct-time.cc:31:
../libgnu/sys/select.h:597: error: invalid conversion from 'int (*)(int,
fd_set*, fd_set*, fd_set*, timeval*)' to 'int (*)(int, fd_set*, fd_set*,
fd_set*, gnulib::timeval*)'
../../liboctave/system/oct-time.cc: In member function 'void
octave_time::stamp()':
../../liboctave/system/oct-time.cc:88: error: cannot convert 'timeval*' to
'gnulib::timeval*' in argument passing





libinterp/corefcn/getrusage.cc:


In file included from ../libgnu/sys/select.h:86,
                 from /usr/include/sys/types.h:221,
                 from ../libgnu/sys/types.h:27,
                 from /usr/include/sys/time.h:38,
                 from ../libgnu/sys/time.h:38,
                 from ../../libinterp/corefcn/getrusage.cc:27:
../libgnu/sys/time.h:419: error: '::gettimeofday' has not been declared
In file included from /usr/include/sys/types.h:221,
                 from ../libgnu/sys/types.h:27,
                 from /usr/include/sys/time.h:38,
                 from ../libgnu/sys/time.h:38,
                 from ../../libinterp/corefcn/getrusage.cc:27:
../libgnu/sys/select.h:597: error: invalid conversion from 'int (*)(int,
fd_set*, fd_set*, fd_set*, timeval*)' to 'int (*)(int, fd_set*, fd_set*,
fd_set*, gnulib::timeval*)'





The attached patch is a hack that gets around both of these compilation
failures and the rest of Octave compiles successfully.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 07 Aug 2013 11:41:34 PM EDT  Name: octave-openbsd-sys-time.patch 
Size: 1kB   By: mtmiller

<http://savannah.gnu.org/bugs/download.php?file_id=28791>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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