octave-maintainers
[Top][All Lists]
Advanced

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

Re: oct-time.cc:61: error: 'mktime' is not a member of 'gnulib'


From: bpabbott
Subject: Re: oct-time.cc:61: error: 'mktime' is not a member of 'gnulib'
Date: Tue, 21 Sep 2010 14:46:23 +0000 (GMT)

On Sep 21, 2010, at 08:29 AM, Jaroslav Hajek <address@hidden> wrote:

On Tue, Sep 21, 2010 at 2:26 PM, Ben Abbott <address@hidden> wrote:
> My sources have tip ...
>
> changeset:   11016:3622db30ff05
> tag:         tip
> user:        Jaroslav Hajek <address@hidden>
> date:        Tue Sep 21 13:09:12 2010 +0200
> summary:     simplify some array tests in liboctave
>
> The tip of my gnulib log is ..
>
> commit 09ba76e4c6a04d7b19bfe08cef12c29ddd21734c
> Author: Paul Eggert <address@hidden>
> Date:   Mon Sep 20 16:14:49 2010 -0700
>
>    pthread: add pthread_spin_destroy
>
>    * lib/pthread.in.h (pthread_spin_destroy): New function.
>
> When I try a fresh build (starting with autogen), I get though configure without problem, but ...
>
> /bin/sh ../libtool  --tag=CXX   --mode=compile g++-4.2 -DHAVE_CONFIG_H -I. -I..            -I../libgnu -I/sw/lib/flex/include -I/sw/include -m32 -I/sw/include/freetype2 -I/sw/include/qhull -I/usr/include -I../libgnu -I../libgnu -I../libcruft/misc -I../libgnu -I/sw/lib/flex/include -I/sw/include -m32 -I/sw/include/freetype2 -I/sw/include/qhull -I/usr/include -I/sw/include -m32 -O1 -g -D_THREAD_SAFE -D_REENTRANT  -DHAVE_CONFIG_H -mieee-fp -I/sw/include -I/sw/include/freetype2 -I/sw/include -I/usr/X11/include   -Wall -W -Wshadow -Wold-style-cast -Wformat -I/sw/include -m32 -O1 -g -D_THREAD_SAFE -D_REENTRANT -D_THREAD_SAFE -pthread -I/sw/include -m32 -O1 -g -D_THREAD_SAFE -D_REENTRANT -MT liboctave_la-oct-time.lo -MD -MP -MF .deps/liboctave_la-oct-time.Tpo -c -o liboctave_la-oct-timelo `test -f 'oct-time.cc' || echo './'`oct-time.cc
> libtool: compile:  g++-4.2 -DHAVE_CONFIG_H -I. -I.. -I../libgnu -I/sw/lib/flex/include -I/sw/include -m32 -I/sw/include/freetype2 -I/sw/include/qhull -I/usr/include -I../libgnu -I../libgnu -I../libcruft/misc -I../libgnu -I/sw/lib/flex/include -I/sw/include -m32 -I/sw/include/freetype2 -I/sw/include/qhull -I/usr/include -I/sw/include -m32 -O1 -g -D_THREAD_SAFE -D_REENTRANT -DHAVE_CONFIG_H -mieee-fp -I/sw/include -I/sw/include/freetype2 -I/sw/include -I/usr/X11/include -Wall -W -Wshadow -Wold-style-cast -Wformat -I/sw/include -m32 -O1 -g -D_THREAD_SAFE -D_REENTRANT -D_THREAD_SAFE -pthread -I/sw/include -m32 -O1 -g -D_THREAD_SAFE -D_REENTRANT -MT liboctave_la-oct-time.lo -MD -MP -MF .deps/liboctave_la-oct-time.Tpo -c oct-time.cc  -fno-common -DPIC -o .libs/liboctave_la-oct-time.o
> oct-time.cc: In constructor 'octave_time::octave_time(const octave_base_tm&)':
> oct-time.cc:61: error: 'mktime' is not a member of 'gnulib'
> oct-time.cc: In member function 'void octave_strptime::init(const std::string&, const std::string&)':
> oct-time.cc:275: error: 'mktime' is not a member of 'gnulib'
> make[3]: *** [liboctave_la-oct-time.lo] Error 1
> make[2]: *** [check] Error 2
> make[1]: *** [check-recursive] Error 1
> make: *** [check] Error 2
>
> I checked libgnu, and do see mktime there.
>
> $ ls libgnu/mktime*
> libgnu/mktime-internal.h  libgnu/mktime.c
>
> Is anyone else seeing this ?
>
> Ben

I did. Refetching and rebuilding the gnulib part worked it around.
(i.e. doing hg purge --all, then normal build).
 
My mercurial doesn't have a "purge" command.

I assume the following is essentially equivalent hack?

hg status | grep '^? ' | sed "s/^? /rm /g" | /bin/sh

In any event, my hack to purge the files not under version control, the binary builds, but then I encounter another gnulib problem ...

Making check in scripts
depbase=`echo gethelp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++-4.2 -DHAVE_CONFIG_H -I. -I..   -I../libgnu -I/sw/lib/flex/include -I/sw/include -m32 -I/sw/include/freetype2 -I/sw/include/qhull -I/usr/include -I/sw/include -m32 -O1 -g -D_THREAD_SAFE -D_REENTRANT  -DHAVE_CONFIG_H -mieee-fp -I/sw/include -I/sw/include/freetype2 -I/sw/include -I/usr/X11/include   -Wall -W -Wshadow -Wold-style-cast -Wformat -I/sw/include -m32 -O1 -g -D_THREAD_SAFE -D_REENTRANT -D_THREAD_SAFE -pthread -I/sw/include -m32 -O1 -g -D_THREAD_SAFE -D_REENTRANT -MT gethelp.o -MD -MP -MF $depbase.Tpo -c -o gethelp.o gethelp.cc &&\
mv -f $depbase.Tpo $depbase.Po
In file included from ../libgnu/sys/select.h:58,
                 from /usr/include/unistd.h:519,
                 from ../libgnu/unistd.h:45,
                 from /usr/include/c++/4.2.1/i686-apple-darwin10/bits/os_defines.h:61,
                 from /usr/include/c++/4.2.1/i686-apple-darwin10/bits/c++config.h:41,
                 from /usr/include/c++/4.2.1/cstdio:50,
                 from gethelp.cc:27:
../libgnu/string.h:458: error: expected ‘,’ or ‘...’ before ‘__dest’
../libgnu/string.h:458: error: nonnull argument with out-of-range operand number (argument 1, operand 2)
In file included from ../libgnu/unistd.h:100,
                 from /usr/include/c++/4.2.1/i686-apple-darwin10/bits/os_defines.h:61,
                 from /usr/include/c++/4.2.1/i686-apple-darwin10/bits/c++config.h:41,
                 from /usr/include/c++/4.2.1/cstdio:50,
                 from gethelp.cc:27:
../libgnu/getopt.h:196: error: redefinition of ‘struct option’
/usr/include/getopt.h:54: error: previous definition of ‘struct option’
make[2]: *** [gethelp.o] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2

Ben




reply via email to

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