Red Hat Bugzilla – Bug 59322
freetype doesnt compile
Last modified: 2007-04-18 12:39:46 EDT
Description of problem:
g++ -Wall -pedantic -I../freetype-pre1.4/lib/. -ggdb -c parser.cpp -fPIC -DPIC
parser.cpp:1501: declaration of `int isatty (int)' throws different
/usr/include/unistd.h:668: than previous declaration `int isatty (int)
parser.cpp:1280: warning: `void yyunput (int, char *)' defined but not used
Version-Release number of selected component (if applicable):
but 2.0.5 didnt compile either
Steps to Reproduce:
1.rpm --rebuild --target i686 freetype-2.0.6.src.rpm
removing the code-section around line 1501 solved the problem for me, but i'm
not to sure if its ok (i didnt use ttmkfdir)
I just ran: rpm --rebuild --target=i686 freetype-2.0.6-2.src.rpm
And I ended up with:
pts/18 mharris@devel:~/rpmbuild/SRPMS$ dir ../RPMS/freetype-*.i686.rpm
-rw-rw---- 1 mharris 546946 Feb 5 12:09 ../RPMS/freetype-2.0.6-2.i686.rpm
-rw-rw---- 1 mharris 9115 Feb 5 12:09
-rw-rw---- 1 mharris 420236 Feb 5 12:09
-rw-rw---- 1 mharris 19521 Feb 5 12:09
Can you provide more details? What specific compiler, and whatnot?
Be as detailed as possible.
here's some more info (dont know if all is needed :)
could it be that gcc-2.96-98 breaks freetype (on a second machine with the same
gcc, freetype doesnt compile, too).
i could provide shell access (ssh) to one machine, if needed.
now it works for me (at least on one machine, will have to test on the second
one). just updated some gnome-related packages, and now it works. very mysterious.
will come back, if the second machine has the problem.
2.0.6-3 has compile ttmkfdir2 not on by default -> works for me, as log i dont
set it on.
2.0.6-1 has the same error (as it compiles ttmkfdir2 by default)
both machines cannot compile ttmkfdir2
ttmkfdir2 is purposefully not built. It is disabled in
the freetype specfile. This is not a bug, it is intentional.
ttmkfdir is now part of the XFree86 rpm package. You should
however be able to re-enable ttmkfdir in the freetype package
as it wasn't removed, just disabled.