Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34697 - emerge pango fails because FC_HINT_STYLE is undefined
Summary: emerge pango fails because FC_HINT_STYLE is undefined
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 57497 65493 78382 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-29 07:05 UTC by Jesper Frickmann
Modified: 2005-01-17 09:59 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesper Frickmann 2003-11-29 07:05:48 UTC
This is the same as bug #22572, but I am using X86 instead of PPC hardware.
Emerge pango fails because FC_HINT_STYLE is undefined in pangoft2.c. It is
apparently defined in /usr/include/fontconfig/fontconfig.h, but for some reason,
pango doesn't get it. By the way, /usr/X11R6/lib/libfontconfig.so.1.0 does not
contain any symbols where HINT is part of the name.

Reproducible: Always
Steps to Reproduce:
1.emerge pango
Actual Results:  
Build failed because FC_HINT_STYLE is undefined

Expected Results:  
Built pango!

FC_HINT_STYLE is undefined in pangoft2.c. It is apparently defined in
/usr/include/fontconfig/fontconfig.h, but for some reason, pango doesn't get it.
By the way, /usr/X11R6/lib/libfontconfig.so.1.0 does not contain any symbols
where HINT is part of the name.
Comment 1 foser (RETIRED) gentoo-dev 2003-12-01 15:50:33 UTC
what freetype, fontconfig and xfree ? Make sure there are no other freetype/fontconfig headers on the system. Try a locate of 'fontconfig.h".
Comment 2 Sanne Grinovero 2004-01-11 04:33:22 UTC
Have the same problem:
 freetype version 2.1.5
 fontconfig 2.2.1
 xfree 4.3.0-r3
I regularly update the system, just pango is preventing himself and all his dependencies to be updated. I don't have gnome installed, is it possible it has something to do with it?

After a lot of warnings about strict aliasing rules being breaked, I get:
log:*/
pangoft2.c: In function `pango_ft2_font_get_face':
pangoft2.c:237: error: `FC_HINT_STYLE' undeclared (first use in this function)
pangoft2.c:237: error: (Each undeclared identifier is reported only once
pangoft2.c:237: error: for each function it appears in.)
pangoft2.c:238: error: `FC_HINT_FULL' undeclared (first use in this function)
pangoft2.c:240: error: `FC_HINT_NONE' undeclared (first use in this function)
pangoft2.c:244: error: `FC_HINT_SLIGHT' undeclared (first use in this function)
pangoft2.c:245: error: `FC_HINT_MEDIUM' undeclared (first use in this function)
make[3]: *** [pangoft2.lo] Error 1

[...]

!!! ERROR: x11-libs/pango-1.2.5-r1 failed.
!!! Function gnome2_src_compile, Line 39, Exitcode 2
!!! compile failure
Comment 3 foser (RETIRED) gentoo-dev 2004-01-11 06:12:41 UTC
Try the things i mentioned in #1
Comment 4 Sanne Grinovero 2004-01-11 07:53:19 UTC
Yes I found two 'fontconfig.h", in:
/usr/X11R6/include/fontconfig/fontconfig.h
/usr/include/fontconfig/fontconfig.h
The ebuild uses the first one, wich is newer, but does not contain the needed
declarations. I copied the old lines in the new header, and now it is merged without errors, but I'm not shure if this is "correct".

Surprising, but the vanilla sources build and install flawlessly, so the bug is in portage.

After some searching, I found that the cause of the problem is a patch applyed by the ebuild: pango-1.2.2-slighthint.patch breaks it all, but I don't know
what it is doing, so I can't fix it. Mantainers?
Comment 5 foser (RETIRED) gentoo-dev 2004-01-11 08:06:22 UTC
No it's not a problem with portage really, you shouldn't have both headers. 

Can you figure out what owns the header in X11R6 ? ('qpkg -f /usr/X11R6/include/fontconfig/fontconfig.h' should do the trick. Our xfree shouldn't come with fontconfig.
Comment 6 Sanne Grinovero 2004-01-11 08:14:22 UTC
You're right again, qpkg says nothing, so I think it was my fault to have an extra header. Actually I never thought that installing a cvs xfree (I no longer use it, but it looks like some files got forgotten) would break an ebuild.
Althought it would be nicer if I could use some self-installed programs on the same system on portage, for me it's solved.
thanks foser.
Maybe Frickmann too?
Comment 7 foser (RETIRED) gentoo-dev 2004-01-11 08:27:24 UTC
well yeah it is possible, if you clean up or have portage handle the packages (and handle them right, so certain third party sites are not an option) then you should have little trouble.

I'm closing this since mr.Frickmann never answered and your problem got solved. Marking INVALID, because this is not a Gentoo bug.
Comment 8 Mike Gardiner (RETIRED) gentoo-dev 2004-08-22 01:07:42 UTC
*** Bug 57497 has been marked as a duplicate of this bug. ***
Comment 9 foser (RETIRED) gentoo-dev 2004-09-27 08:43:19 UTC
*** Bug 65493 has been marked as a duplicate of this bug. ***
Comment 10 foser (RETIRED) gentoo-dev 2005-01-17 09:59:16 UTC
*** Bug 78382 has been marked as a duplicate of this bug. ***