bugGNU Octave - Bugs: bug #38424, gettimeofday not declared


bug #38424: gettimeofday not declared

Submitted by:  marco atzeri <matzeri>
Submitted on:  Wed 27 Feb 2013 08:08:07 AM UTC  
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  Microsoft Windows

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


( Jump to the original submission)

Fri 22 Mar 2013 05:51:58 PM UTC, comment #9:

I did

Marco, try pulling and updating to the latest revision in the Mercurial archives. You may need to run the bootstrap script again. I'm not sure that the changes to the source files in gnulib-hg will be noticed and libgnu rebuilt.

Post back if everything is working and I will close this report.

Rik <rik5>
Project Administrator
Fri 22 Mar 2013 05:20:47 PM UTC, comment #8:

Update the Octave gnulib-hg subrepo by pulling from hg.octave.org and update to the corresponding revision.

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Fri 22 Mar 2013 05:19:21 PM UTC, comment #7:


What is the procedure for grabbing the latest updates into gnulib-hg? This bug has been fixed upstream and if we just grab the latest gnulib code we can close this bug report.

Rik <rik5>
Project Administrator
Fri 22 Mar 2013 05:18:59 PM UTC, comment #6:

Corresponding hg revision:


Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Fri 22 Mar 2013 04:15:53 PM UTC, comment #5:

solved on gnulib

commit 34f84640cd015eee3d9aed3b1eddf6f361576890
Author: Paul Eggert <eggert@cs.ucla.edu>
Date: Tue Mar 19 09:08:47 2013 -0700

sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin

Problem reported by Marco Atzeri in
* lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
Simply delegate to the system <sys/select.h> in this case too.

marco atzeri <matzeri>
Sat 02 Mar 2013 07:52:31 AM UTC, comment #4:

reverting changeset http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=db61fd22822da6974c2ca4caa2975d74229a4c70

solves the issue.
Opened request on gnulib


marco atzeri <matzeri>
Thu 28 Feb 2013 08:00:59 PM UTC, comment #3:

Thanks for checking in to this. I don't think this is Octave's fault. We use gnulib for the gettimeofday function and the changeset you identified is one in which we synced our gnulib repository to the latest gnulib repository. This brought in their changes which may not have been perfect.

I think you will need to take up the question with the gnulib folks. They have been pretty responsive, in particular Paul Eggert has shown up on the Octave Maintainers list in regard to other problems we were having.

If I had to guess, this changeset looks suspicious (http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=db61fd22822da6974c2ca4caa2975d74229a4c70).

See http://www.gnu.org/software/gnulib/ for where and how to report a bug to them.

Rik <rik5>
Project Administrator
Thu 28 Feb 2013 06:12:55 AM UTC, comment #2:

fist failing one is:

$ hg id

marco atzeri <matzeri>
Wed 27 Feb 2013 04:10:52 PM UTC, comment #1:

This might be tedious, but could you use 'hg bisect' to determine which changeset introduced the problem? We have recently updated the gnulib repository twice. It is possible that they have a bug which we have imported.

I'm thinking two critical revisions to check are:


Rik <rik5>
Project Administrator
Wed 27 Feb 2013 08:08:07 AM UTC, original submission:

on cygwin building from scratch
after full hg update and bootstrap
the build stops here:

libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../octave/liboctave -I.. -I../../octave/liboctave/array -I../../octave/liboctave/cruft/misc -Inumeric -I../../octave/liboctave/numeric -Ioperators -I../../octave/liboctave/operators -I../../octave/liboctave/system -I../../octave/liboctave/util -I../libgnu -I../../octave/libgnu -mieee-fp -I/usr/include/freetype2 -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -MT system/system_libsystem_la-lo-sysdep.lo -MD -MP -MF system/.deps/system_libsystem_la-lo-sysdep.Tpo -c ../../octave/liboctave/system/lo-sysdep.cc -DDLL_EXPORT -DPIC -o system/.libs/system_libsystem_la-lo-sysdep.o
In file included from ../libgnu/sys/select.h:82:0,
from /usr/include/cygwin/sys_time.h:13,
from /usr/include/sys/time.h:28,
from ../libgnu/sys/time.h:30,
from /usr/include/sys/_default_fcntl.h:186,
from /usr/include/sys/fcntl.h:3,
from /usr/include/fcntl.h:14,
from ../libgnu/fcntl.h:61,
from ../../octave/liboctave/system/lo-sysdep.cc:34:
../libgnu/sys/time.h:411:1: error: '::gettimeofday' has not been declared
Makefile:9582: recipe for target `system/system_libsystem_la-lo-sysdep.lo' failed
make[4]: *** [system/system_libsystem_la-lo-sysdep.lo] Error 1
make[4]: Leaving directory `/pub/hg/octave_build/liboctave'

$ hg id
98b211a163ce tip

$ hg tip
changeset: 16135:98b211a163ce
tag: tip
user: Rik <rik@octave.org>
date: Tue Feb 26 20:33:47 2013 -0800
summary: build: remove obsolet macros from common.mk

marco atzeri <matzeri>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by matzeri (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    Thu 04 Apr 2013 05:11:39 AM UTC rik5 StatusNeed Info => Fixed
        Open/ClosedOpen => Closed
    Fri 22 Mar 2013 05:19:21 PM UTC rik5 Carbon-Copy- => Added jordigh
    Wed 27 Feb 2013 04:10:52 PM UTC rik5 StatusNone => Need Info

    Back to the top

    Powered by Savane 3.3