bugGNU Octave - Bugs: bug #32336, MinGW compile error: 'isatty' was...

 
 

bug #32336: MinGW compile error: 'isatty' was not declared in this scope

Submitter:  Kai Habel <kahacjde>
Submitted:  Thu 03 Feb 2011 11:29:44 AM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 05 Feb 2011 04:58:09 PM UTC, comment #3: 

I can compile this now. Thanks for fixing!

Kai

Kai Habel <kahacjde>
Group Member
Fri 04 Feb 2011 08:21:32 AM UTC, comment #2: 

I don't see this behaviour any more with the current tip. Now that you mention it (again), I remember the issue. But as it suddenly vanished fo me, I didn't follow it up thoroughly.
Nevertheless thanks for the fix, I suspect this is also one of these gnulib include troubles.

Benjamin Lindner <lindnerben>
Thu 03 Feb 2011 10:02:44 PM UTC, comment #1: 

I checked in the following changeset.  If this fixes the problem for you, then please close this report.

http://hg.savannah.gnu.org/hgweb/octave/rev/6e9f100c0d61

John W. Eaton <jwe>
Group administrator
Thu 03 Feb 2011 11:29:44 AM UTC, original submission:  

I still try to compile a recent tip under MinGW with a minimum set of dependencies.

I have configured with --disable-readline

Now I get the following error:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu -I../libgnu -I../lib
cruft/misc -I../liboctave -I../liboctave -I. -I. -g -O2 -DHAVE_CONFIG_H -mieee-f
p -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -W
cast-align -Wcast-qual -g -O2 -g -O2 -MT liboctinterp_la-octave.lo -MD -MP -MF .
deps/liboctinterp_la-octave.Tpo -c octave.cc  -DDLL_EXPORT -DPIC -o .libs/liboct
interp_la-octave.o
In file included from octave.cc:70:0:
variables.h:105:40: warning: use of old-style cast
variables.h:105:65: warning: use of old-style cast
octave.cc: In function 'int octave_main(int, char**, int)':
octave.cc:832:40: error: 'isatty' was not declared in this scope
make[3]: * [liboctinterp_la-octave.lo] Error 1
make[3]: * Waiting for unfinished jobs....
mv -f .deps/liboctinterp_la-builtins.Tpo .deps/liboctinterp_la-builtins.Plo
make[3]: Leaving directory `/home/Kai/octave/src'
make[2]: * [all] Error 2
make[2]: Leaving directory `/home/Kai/octave/src'
make[1]: * [all-recursive] Error 1
make[1]: Leaving directory `/home/Kai/octave'
make: * [all] Error 2

It seems this has been observed by Benjamin last year:
http://octave.1599824.n4.nabble.com/building-development-tip-with-mingw32-td2013435.html

I can work around this error by including <io.h> too, or including <unistd.h> in octave.cc. I wonder if others on MinGW (still) see this. I am using gnulib sources pulled a few days ago.

Kai

Kai Habel <kahacjde>
Group Member

 

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

Attach Files:
   
   
Comment:
   

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 lindnerben (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by kahacjde (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-02-05 kahacjde StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code