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

Bug 13495

Summary: Pango 1.2.0 -- FC_HINT_STYLE undeclared and others
Product: Gentoo Linux Reporter: Mauricio Lima Pilla <pilla>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: 1.4_rc2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mauricio Lima Pilla 2003-01-08 09:54:07 UTC
pango 1.2.0 does not emerge in my system:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE
-DSYSCONFDIR=\"/etc\" -DLIBDIR=\"/usr/lib\" -DMODULE_VERSION=\"1.2.0\"
-DG_DISABLE_DEPRECATED -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/X11R6/include
-I/usr/include/freetype2 -I/usr/X11R6/include -I.. -march=pentium3 -Os
-mfpmath=sse -fomit-frame-pointer -fforce-addr -falign-functions=4 -pipe -Wall
-c pangoft2.c  -fPIC -DPIC -o pangoft2.lo
pangoft2.c: In function `pango_ft2_font_get_face':
pangoft2.c:224: `FC_HINT_STYLE' undeclared (first use in this function)
pangoft2.c:224: (Each undeclared identifier is reported only once
pangoft2.c:224: for each function it appears in.)
pangoft2.c:225: `FC_HINT_FULL' undeclared (first use in this function)
pangoft2.c:227: `FC_HINT_NONE' undeclared (first use in this function)
pangoft2.c:231: `FC_HINT_SLIGHT' undeclared (first use in this function)
pangoft2.c:234: `FC_HINT_MEDIUM' undeclared (first use in this function)
make[3]: *** [pangoft2.lo] Error 1

xft-2.0.1-r1
xfree-4.2.1-r2
Comment 1 foser (RETIRED) gentoo-dev 2003-01-08 11:23:35 UTC
try reemerging/upgrading fontconfig/freetype
Comment 2 Mauricio Lima Pilla 2003-01-08 11:32:30 UTC
it didn't help

fontconfig-2.1-r1
freetype-2.1.3-r2
Comment 3 foser (RETIRED) gentoo-dev 2003-01-08 12:03:47 UTC
Your fontconfig doesnt have the slighthint patch for some reason, rebuilding
fontconfig should fix it. Are you sure there isn't an old version around.

Anyway, disabling the slighhint patch in the pango ebuild should make it compile.
Comment 4 Mauricio Lima Pilla 2003-01-08 12:05:59 UTC
I am sure I don't have older versions, just run emerge clean

tried also with fontconfig-2.1, freetype-2.1.2-r2

I'll disable the patch to see if it compiles.
Comment 5 Mauricio Lima Pilla 2003-01-08 12:10:05 UTC
Without the slighthint patch, it emerged.
Comment 6 foser (RETIRED) gentoo-dev 2003-01-08 12:19:21 UTC
what is the output of 'grep -r HINT /usr/include/fontconfig/*' ?
Comment 7 Mauricio Lima Pilla 2003-01-08 12:25:52 UTC
But /usr/include/fontconfig/ is not in the PATH for this compilation. Maybe I am
missing some USE var...


/usr/include/fontconfig/fontconfig.h:#define FC_HINTING     "hinting"          
/* Bool (true) */
/usr/include/fontconfig/fontconfig.h:#define FC_HINT_STYLE          "hintstyle"
       /* Int */
/usr/include/fontconfig/fontconfig.h:#define FC_AUTOHINT            "autohint" 
       /* Bool (false) */
/usr/include/fontconfig/fontconfig.h:#define FC_HINT_NONE        0
/usr/include/fontconfig/fontconfig.h:#define FC_HINT_SLIGHT      1
/usr/include/fontconfig/fontconfig.h:#define FC_HINT_MEDIUM      2
/usr/include/fontconfig/fontconfig.h:#define FC_HINT_FULL        3
Comment 8 foser (RETIRED) gentoo-dev 2003-01-08 13:23:26 UTC
Can you confirm that the fontconfig includes in /usr/include/fontconfig are the
only fontconfig headers on your system ?
Comment 9 Mauricio Lima Pilla 2003-01-08 13:25:54 UTC
They aren't!

find /usr -name fontconfig.h

/usr/lib/mozilla/include/mozilla-1.1/fontconfig/fontconfig.h
/usr/X11R6/include/fontconfig/fontconfig.h
/usr/include/fontconfig/fontconfig.h

I guess it is using X11R6 includes. 
Comment 10 foser (RETIRED) gentoo-dev 2003-01-08 13:40:31 UTC
i guess so too.

Did you use autoclean ? Like 'emerge -c world' doesnt have all older version
around of packages (or are your really still using mozilla 1.1 ?).
Comment 11 Mauricio Lima Pilla 2003-01-08 13:54:48 UTC
I don't use autoclean, but I clean my system after updating packages. 

emerge -c world -p

>>> These are the packages that I would unmerge:

>>> No outdated packages were found on your system.

I am using mozilla-1.2.1-r4
Comment 12 foser (RETIRED) gentoo-dev 2003-01-08 16:30:24 UTC
well, i'd check that then. You shouldnt have a mozilla-1.1 dir when you're using
1.2 and there is no /usr/X11R6/include/fontconfig/fontconfig.h in xfree-4.2.1-r2 .

Closing, as this is apperantly a problem on your side.
Comment 13 Mauricio Lima Pilla 2003-01-08 16:36:54 UTC
very weird. 
Comment 14 Mauricio Lima Pilla 2003-01-08 16:49:28 UTC
I've erased the offending files and now it compiles with the patch.

I am very sorry of taking your time with such a stupid affair. Thank you very
much for your help. 

Cheers.