Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 40338

Summary: ttmkfdir compile failure, against gcc 3.2.3
Product: Gentoo Linux Reporter: Fernando Padilla <fern>
Component: [OLD] UnspecifiedAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major CC: christiangda
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Fernando Padilla 2004-02-03 19:54:58 UTC
It seems to be complaining about function signatures for the following functions coming out of stdio.h

int getchar()
int getc_unlocked(FILE*)
int getchar_unlocked()
int putchar(int)
int fputc_unlocked(int, FILE*)
int putc_unlocked(int, FILE*)
int putchar_unlocked(int)
__ssize_t getline(char**, size_t*, FILE*)


Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
>>> emerge (1 of 7) x11-misc/ttmkfdir-3.0.9 to /
>>> md5 src_uri ;-) ttmkfdir-3.0.9.tar.bz2
>>> Unpacking source...
>>> Unpacking ttmkfdir-3.0.9.tar.bz2 to /var/tmp/portage/ttmkfdir-3.0.9/work
 * Applying ttmkfdir-3.0.9-gcc33.patch...                                      
                                                        [ ok ]
>>> Source unpacked.
libtool --mode=compile g++ -Wall -pedantic -I/usr/include/freetype2  -O2
-march=athlon-xp -pipe -o ttmkfdir.o -c ttmkfdir.cpp
mkdir .libs
g++ -Wall -pedantic -I/usr/include/freetype2 -O2 -march=athlon-xp -pipe -c
ttmkfdir.cpp    -fPIC -DPIC -o .libs/ttmkfdir.lo
In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/stdio.h:683,
                 from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/cstdio:52,
                 from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/i686-pc-linux-gnu/bits/c++io.h:35,
                 from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/bits/fpos.h:44,
                 from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/iosfwd:46,
                 from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/ios:44,
                 from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/ostream:45,
                 from
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/iostream:45,
                 from ttmkfdir.cpp:2:
/usr/include/bits/stdio.h: In function `int getchar()':
/usr/include/bits/stdio.h:42: declaration of `int getchar()' throws different
   exceptions
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/stdio.h:394: than previous
   declaration `int getchar() throw ()'
....
.... more errors consistent with the one above, but for every function
.... I mentiond earlier
....
make: *** [ttmkfdir.o] Error 1

!!! ERROR: x11-misc/ttmkfdir-3.0.9 failed.
!!! Function src_compile, Line 30, Exitcode 2
!!! (no error message)


Expected Results:  
it should have compiled.

I bumped into this issue trying to do a fresh install on a new athlon-xp
machine.  But trying to debug the problem I tried to re emerge ttmkfdir on my
old AMD-K6, and hit the same output.  I even tried emerging older versions of
ttmkfdir ( on the new athlon ), but all had the same output ( 3.0.9-r1, 3.0.9,
3.0.4 ).

This is not a big deal for my already installed system, because ttmkfdir is
already compiled.  But it is a big deal for my new system because I can't
install xfree without ttmkfdir; so I have a very fast almost useless machine..
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-02-03 20:11:35 UTC

*** This bug has been marked as a duplicate of 30701 ***
Comment 2 Ciaran McCreesh 2004-03-10 06:13:15 UTC
*** Bug 44243 has been marked as a duplicate of this bug. ***