octave-maintainers
[Top][All Lists]
Advanced

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

Re: pkg miscellaneous-1.0.3 fails on cygwin octave-2.9.17


From: David Bateman
Subject: Re: pkg miscellaneous-1.0.3 fails on cygwin octave-2.9.17
Date: Mon, 12 Nov 2007 11:02:42 +0100
User-agent: Thunderbird 1.5.0.7 (X11/20060921)

Yes I know, there is a patch in the SVN of octave-forge and it will be
in the next octave-forge release. This is needed due to a change in
2.9.16 of the octave_time class and the removal of the double method. I
attach the patch here.

This raises another point, do we need an octave-forge release? I'd
wanted to avoid more than one octave-forge release every two months to
limit the amount of work involved. However, there has been two octave
releases since the last octave-forge release 2 months ago, and this
octave_time issue is not that only problems, there are also a large
number of functions in the plot package that should be removed as the
get in the way of the octave versions of these same functions.

Should we do a release of octave-forge or stick to the one release every
two months and let the issues be fixed with time?

Regards
David

BTW: This e-mail, as it concerns mostly octave-forge, should probably be
sent to address@hidden


Tatsuro MATSUOKA wrote:
> Hello
>
> The pkg miscellaneous-1.0.3 failed on cygwin octave-2.9.17.
> I cannot see the error by verbose in detail.
> So I extracted the miscellaneous-1.0.3.tar.gz and ./configure and make.
>
> listen.cc:37: error: `class octave_time' used where a floating point value 
> was expected
> listen.cc:37: error: aggregate value used where a float was expected
>
> 37:inline double toc(void) {return 
> ceil(-1e6*(timestamp-double(octave_time())));}
>
> Perhaps little modification makes it work.
>
> Please help me.
>
> Regards
>
> Tatsuro
>  
> ****************
> $ make
> make[1]: Entering directory 
> `/opt/octave/octave-forge-bundle-20071014/main/miscellaneous-1.0.3/src'
> mkoctfile -DHAVE_OCTAVE_29 -v -DUSE_TERM -DHAVE_TERMCAP_H waitbar.cc -ltermcap
> /opt/octave/gcc-3.4.4d/bin/g++ -c -I/opt/octave/gcc-3.4.4d/include 
> -I/usr/include
> -I/opt/octave/octave-2.9.17/include 
> -I/opt/octave/octave-2.9.17/include/octave-2.9.17
> -I/opt/octave/octave-2.9.17/include/octave-2.9.17/octave 
> -I/opt/octave/octave-2.9.17/include -mieee-fp
> -g -O2 -DHAVE_OCTAVE_29 -DUSE_TERM -DHAVE_TERMCAP_H waitbar.cc -o waitbar.o
> /opt/octave/gcc-3.4.4d/bin/g++ -shared -Wl,--export-all-symbols 
> -Wl,--enable-auto-import
> -Wl,--enable-runtime-pseudo-reloc -o waitbar.oct waitbar.o -ltermcap
> -L/opt/octave/octave-2.9.17/lib/octave-2.9.17 -L/opt/octave/octave-2.9.17/lib 
> -loctinterp -loctave
> -lcruft -L/opt/octave/gcc-3.4.4d/lib -L/opt/octave/octave-2.9.17/lib -llapack 
> -ltmglib -lblas -lcblas
> -lfftw3 -lreadline -lncurses -ldl -lwsock32 -lz -lm -lwsock32 
> -L/opt/octave/gcc-3.4.4d/lib
> -L/opt/octave/octave-2.9.17/lib 
> -L/opt/octave/gcc-3.4.4d/bin/../lib/gcc/i686-pc-cygwin/3.4.4
> -L/opt/octave/gcc-3.4.4d/bin/../lib/gcc -L/usr/lib/gcc/i686-pc-cygwin/3.4.4
> -L/opt/octave/gcc-3.4.4d/bin/../lib/gcc/i686-pc-cygwin/3.4.4/../../.. -lz -lm 
> -lfrtbegin -lg2c
> -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32
> mkoctfile -DHAVE_OCTAVE_29 -v -c -DUSE_TERM -DHAVE_TERMCAP_H listen.cc
> /opt/octave/gcc-3.4.4d/bin/g++ -c -I/opt/octave/gcc-3.4.4d/include 
> -I/usr/include
> -I/opt/octave/octave-2.9.17/include 
> -I/opt/octave/octave-2.9.17/include/octave-2.9.17
> -I/opt/octave/octave-2.9.17/include/octave-2.9.17/octave 
> -I/opt/octave/octave-2.9.17/include -mieee-fp
> -g -O2 -DHAVE_OCTAVE_29 -DUSE_TERM -DHAVE_TERMCAP_H listen.cc -o listen.o
> listen.cc: In function `void tic()':
> listen.cc:36: error: cannot convert `octave_time' to `double' in assignment
> listen.cc: In function `double toc()':
> listen.cc:37: error: `class octave_time' used where a floating point value 
> was expected
> listen.cc:37: error: aggregate value used where a float was expected
> make[1]: *** [listen.o] Error 1
> make[1]: Leaving directory 
> `/opt/octave/octave-forge-bundle-20071014/main/miscellaneous-1.0.3/src'
> make: *** [build] Error 2
>
> --------------------------------------
> New Design Yahoo! JAPAN  2008/01/01
> http://pr.mail.yahoo.co.jp/newdesign/
>
>   


-- 
David Bateman                                address@hidden
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary

Index: main/miscellaneous/src/listen.cc
===================================================================
--- main/miscellaneous/src/listen.cc    (revision 4170)
+++ main/miscellaneous/src/listen.cc    (revision 4171)
@@ -33,8 +33,8 @@
 static char* context = NULL;
 
 static double timestamp = 0.0;
-inline void tic(void) { timestamp = octave_time(); }
-inline double toc(void) {return ceil(-1e6*(timestamp-double(octave_time())));}
+inline void tic(void) { timestamp = octave_time().double_value(); }
+inline double toc(void) {return 
ceil(-1e6*(timestamp-octave_time().double_value()));}
 
 // XXX FIXME XXX --- surely this is part of the standard library?
 void

reply via email to

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