Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xft-2.0.1 compile error
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
weijia
n00b
n00b


Joined: 14 Sep 2002
Posts: 57

PostPosted: Wed Jan 08, 2003 3:47 pm    Post subject: xft-2.0.1 compile error Reply with quote

I have been trying to emerge the latest xft (xft-2.0.1-r1). However, on every try I get the following error:
Code:

configure: creating ./config.status
config.status: creating Makefile
config.status: creating xft.pc
config.status: creating xft-config
config.status: creating config.h
gcc -march=athlon -O3 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -I/usr/X11R                                                                                     
6/include -I/usr/include/freetype2 -I/usr/include -fPIC -DPIC -c xftcolor.c -o x                                                                                     
ftcolor.o
gcc -march=athlon -O3 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -I/usr/X11R                                                                                     
6/include -I/usr/include/freetype2 -I/usr/include -fPIC -DPIC -c xftcore.c -o xf                                                                                     
tcore.o
gcc -march=athlon -O3 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -I/usr/X11R                                                                                     
6/include -I/usr/include/freetype2 -I/usr/include -fPIC -DPIC -c xftdbg.c -o xft                                                                                     
dbg.o
gcc -march=athlon -O3 -pipe -fomit-frame-pointer -I. -DHAVE_CONFIG_H -I/usr/X11R                                                                                     
6/include -I/usr/include/freetype2 -I/usr/include -fPIC -DPIC -c xftdpy.c -o xft                                                                                     
dpy.o
xftdpy.c: In function `XftDefaultSubstitute':
xftdpy.c:484: `FC_RGBA_UNKNOWN' undeclared (first use in this function)
xftdpy.c:484: (Each undeclared identifier is reported only once
xftdpy.c:484: for each function it appears in.)
make: *** [xftdpy.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: x11-libs/xft-2.0.1-r1 failed.
!!! Function src_compile, Line 42, Exitcode 2
!!! Xft2 make failed

This error also occurs on emerging of xft-2.0.1.ebuild
I have the latest xfree and freetype versions installed (4.2.1-r2 and 2.1.3-r2, respectively). xft-2.0-r1 compiles fine. Any ideas? Thanks

Weijia
Back to top
View user's profile Send private message
sa
Guru
Guru


Joined: 10 Jun 2002
Posts: 450

PostPosted: Thu Jan 09, 2003 2:28 am    Post subject: Reply with quote

hmm, weird.

I find that FC_RGBA_UNKNOWN is defined in /usr/include/fontconfig/fontconfig.h on line 112

which should be included via
xftdpy.c->"xftint.h"->"Xft.h"-> <fontconfig/fontconfig.h>

can you check for this file, mabey its not there or its the wrong version?

hth,
sa
Back to top
View user's profile Send private message
weijia
n00b
n00b


Joined: 14 Sep 2002
Posts: 57

PostPosted: Thu Jan 09, 2003 4:08 am    Post subject: Reply with quote

Thanks for the reply. FC_RGBA_UNKNOWN is defined as follows on line 112 in /usr/include/fontconfig/fontconfig.h

Code:

#define FC_RGBA_UNKNOWN     0

Still getting the compile errors...
Back to top
View user's profile Send private message
foser
Retired Dev
Retired Dev


Joined: 28 Oct 2002
Posts: 154

PostPosted: Thu Jan 09, 2003 5:07 pm    Post subject: Reply with quote

Then there must be other fontconfig headers around, look for them, check which package they belong to and clean up that package (-c) or upgrade it if you can't. If you properly clean your system they shouldnt be around.
_________________
Gentoo Gnome Desktop team
Back to top
View user's profile Send private message
synic
n00b
n00b


Joined: 11 Jan 2003
Posts: 49
Location: SLC, Utah

PostPosted: Sat Jan 11, 2003 7:46 am    Post subject: Any solution? Reply with quote

Have you found any solution to this problem? I get the same error.

Thanks
Back to top
View user's profile Send private message
foser
Retired Dev
Retired Dev


Joined: 28 Oct 2002
Posts: 154

PostPosted: Sat Jan 11, 2003 4:10 pm    Post subject: Reply with quote

read my post, that _is_ the solution.
_________________
Gentoo Gnome Desktop team
Back to top
View user's profile Send private message
weijia
n00b
n00b


Joined: 14 Sep 2002
Posts: 57

PostPosted: Mon Jan 13, 2003 8:23 pm    Post subject: Reply with quote

Thanks for the help foser. I looked around and realized that there was an old fontconfig.h located in /usr/local/include/fontconfig
deleting this fontconfig folder seems to have fixed the problem.

Weijia
Back to top
View user's profile Send private message
rob3rt
n00b
n00b


Joined: 18 Apr 2002
Posts: 12
Location: Prague, Czech Republic

PostPosted: Sat Jul 26, 2003 12:00 pm    Post subject: fontconfig issue Reply with quote

I found out, there was no fotnconfig.h on my computer. Strange I know, especialy when emerge -s fontconfig whos everything ok. Anyway after reemerging fontconfig, I can compile xft-2.0.1-r2. bye
_________________
Smol Robert
robert.smol<at>stereoit.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum