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

 
 

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

Submitted by:  Kai Habel <kahacjde>
Submitted on:  Thu 03 Feb 2011 11:29:44 AM UTC  
 
Category: Configuration and Build SystemSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Build Failure
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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

I can compile this now. Thanks for fixing!

Kai

Kai Habel <kahacjde>
Project 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>
Project 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>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by lindnerben (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by kahacjde (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to 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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 05 Feb 2011 04:58:09 PM UTCkahacjdeStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1