Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122042 - flex-2.5.31 doesn't declare isatty for C++ code
Summary: flex-2.5.31 doesn't declare isatty for C++ code
Status: RESOLVED DUPLICATE of bug 119598
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 122083 122222 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-07 14:23 UTC by Kenton Groombridge
Modified: 2006-02-09 02:14 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
flex-2.5.31-isatty.patch (flex-2.5.31-isatty.patch,886 bytes, patch)
2006-02-08 13:46 UTC, Nicola
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kenton Groombridge 2006-02-07 14:23:08 UTC
In my attempts to fix a previous bug I entered:

http://bugs.gentoo.org/show_bug.cgi?id=120880

I did a:

emerge -e transcode

When it got to x11-apps/ttmkfdir-3.0.9-r3, it failed with:

 i686-pc-linux-gnu-g++ -Wall -pedantic -I/usr/include/freetype2 -pipe -march=athlon-xp -fomit-frame-pointer -mmmx -msse -m3dnow -mfpmath=sse -c builtin.cpp -o builtin.o >/dev/null 2>&1
encoding.l: In function `int yylex(char*, Encodings_t&)':
encoding.l:111: warning: comparison between signed and unsigned integer expressions
encoding.l:143: warning: comparison between signed and unsigned integer expressions
encoding.l:147: warning: comparison between signed and unsigned integer expressions
parser.cpp: At global scope:
parser.cpp:1587: error: declaration of `int isatty(int)' throws different exceptions
/usr/include/unistd.h:717: error: than previous declaration `int isatty(int) throw ()'
parser.cpp:1364: warning: 'void yyunput(int, char*)' defined but not used
make: *** [parser.o] Error 1

!!! ERROR: x11-apps/ttmkfdir-3.0.9-r3 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

Google searched for possible solutions, but nothing I did worked and repeated attempts to build this package result in the same failure.

Thanks,
Ken

Portage 2.1_pre4-r1 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-ck3 i686)
=================================================================
System uname: 2.6.15-ck3 i686 Unknown CPU Typ
Gentoo Base System version 1.12.0_pre15
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer -mmmx -msse -m3dnow -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer -mmmx -msse -m3dnow -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.osuosl.org/ http://mirror.phy.olemiss.edu/mirror/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext S3TC X a52 aac acpi alsa apache2 arts asf audiofile berkdb bzip2 cairo cddb cdio cdparanoia crypt css cups curl dga dlloader dvd dvdr dvdread eds emboss emoticon encode fame ffmpeg firefox flac foomaticdb gdbm gif gimp glut gstreamer gtk gtk2 ieee1394 imagemagick imlib imlib2 input_devices_evdev input_devices_joystick input_devices_keyboard iproute2 jack java joystick jpeg jpeg2k kde libwww live logitech-mouse lzo mad mikmod mjpeg mmx mmxext motif mozsvg mp3 mpeg mplayer musicbrainz nas ncurses network nforce2 nls nntp nomalloccheck nptl nptlonly nsplugin nspr nvidia ogg oggvorbis openal opengl pam pdf perl png python qt quicktime readline real rtc samba scanner sdl spell sse ssl subtitles svg sysfs tcltk tcpd theora tiff transcode truetype truetype-fonts type1 type1-fonts unicode urandom usb userlocales v4l2 vcd video_cards_nvidia vorbis win32codecs wmf xine xml2 xmms xpm xrandr xscreensaver xv xvid xvmc zlib zvbi elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-02-07 14:28:47 UTC
(re)emerge sys-devel/flex and try again...
Comment 2 Kenton Groombridge 2006-02-07 16:36:54 UTC
Performed an emerge of sys-devel/flex and then emerged ttmkfdir with the same results.

I posted the problem building transcode some time ago, and I am curious why nobody else seems to be posting any "me too" comments.

Is it possible that I may have some hardware failure (CPU) that could be causing these?

Thanks for your hard work.

Ken
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-02-08 01:01:53 UTC
*** Bug 122083 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-02-08 01:02:14 UTC
.
Comment 5 Alexey Maximov 2006-02-08 06:40:27 UTC
just try downgrade flex ?
Comment 6 Marien Zwart (RETIRED) gentoo-dev 2006-02-08 06:43:53 UTC
This looks like bug 13681 resurfaced. It merges for me with flex-2.5.4a-r6, but not with flex-2.5.31-r1.
Comment 7 David Moxey 2006-02-08 10:57:15 UTC
Ran into the same problem myself. An easy fix for those who want to compile straight away:

On line 1587 of parser.cpp, change:
  extern int isatty (int );
to:
  extern int isatty (int) throw();

then re-emerge with FEATURES="keepwork". This is my first post on here; seems to work, but I have no idea whether it'll cause problems down the line :-) 
Comment 8 Vedran Miletić 2006-02-08 13:32:45 UTC
I was just about to post a "me too" comment. But David's suggestion fixes it. Thanks a lot, David!
Comment 9 Nicola 2006-02-08 13:46:22 UTC
Created attachment 79268 [details, diff]
flex-2.5.31-isatty.patch
Comment 10 Nicola 2006-02-08 13:49:55 UTC
Comment on attachment 79268 [details, diff]
flex-2.5.31-isatty.patch

Rebuild flex with this patch (replace the existing one) to fix this bug. By the way I'm using a glibc overlay so I'm not sure if flex has the same problem with the glibc in portage.
Comment 11 SpanKY gentoo-dev 2006-02-08 18:34:24 UTC

*** This bug has been marked as a duplicate of 121920 ***
Comment 12 SpanKY gentoo-dev 2006-02-08 18:46:06 UTC
wrong dupe ...
Comment 13 SpanKY gentoo-dev 2006-02-08 18:46:16 UTC

*** This bug has been marked as a duplicate of 119598 ***
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2006-02-09 02:14:20 UTC
*** Bug 122222 has been marked as a duplicate of this bug. ***