After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 135632 - compile error in function gimp_font_list_font_desc_from_pattern
compile error in function gimp_font_list_font_desc_from_pattern
Status: RESOLVED NOTABUG
Product: GIMP
Classification: Other
Component: General
1.x
Other Linux
: Normal critical
: ---
Assigned To: GIMP Bugs
Daniel Egger
: 143809 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-02-27 21:30 UTC by Rob Hudson
Modified: 2004-06-06 15:13 UTC
See Also:
GNOME target: ---
GNOME version: 2.0



Description Rob Hudson 2004-02-27 21:30:50 UTC
Description of Problem:
Won't compile.  Stops with this message:

if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../..
-I../../app -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/X11R6/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include  
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -I/usr/local/include
-DG_LOG_DOMAIN=\"Gimp-Text\" 
-DG_DISABLE_DEPRECATED
-DGDK_PIXBUF_DISABLE_DEPRECATED
-DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
-DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE  -g -O2
-Wall -MT gimpfontlist.o -MD -MP -MF
".deps/gimpfontlist.Tpo" \
  -c -o gimpfontlist.o `test -f 'gimpfontlist.c'
|| echo './'`gimpfontlist.c; \
then mv -f ".deps/gimpfontlist.Tpo"
".deps/gimpfontlist.Po"; \
else rm -f ".deps/gimpfontlist.Tpo"; exit 1; \
fi
gimpfontlist.c: In function
`gimp_font_list_font_desc_from_pattern':
gimpfontlist.c:282: error: `FC_WIDTH' undeclared
(first use in this function)
gimpfontlist.c:282: error: (Each undeclared
identifier is reported only once
gimpfontlist.c:282: error: for each function it
appears in.)
gimpfontlist.c:286: error: `FC_WIDTH_NORMAL'
undeclared (first use in this function)
gimpfontlist.c:289: error:
`FC_WIDTH_ULTRACONDENSED' undeclared (first use in
this function)
gimpfontlist.c:292: error:
`FC_WIDTH_EXTRACONDENSED' undeclared (first use in
this function)
gimpfontlist.c:295: error: `FC_WIDTH_CONDENSED'
undeclared (first use in this function)
gimpfontlist.c:298: error:
`FC_WIDTH_SEMICONDENSED' undeclared (first use in
this function)
gimpfontlist.c:301: error: `FC_WIDTH_SEMIEXPANDED'
undeclared (first use in this function)
gimpfontlist.c:304: error: `FC_WIDTH_EXPANDED'
undeclared (first use in this function)
gimpfontlist.c:307: error:
`FC_WIDTH_EXTRAEXPANDED' undeclared (first use in
this function)
gimpfontlist.c:310: error:
`FC_WIDTH_ULTRAEXPANDED' undeclared (first use in
this function)
gimpfontlist.c: In function
`gimp_font_list_load_names':
gimpfontlist.c:339: error: `FC_WIDTH' undeclared
(first use in this function)
make[3]: *** [gimpfontlist.o] Error 1
make[3]: Leaving directory
`/home/rob/downloads/gimp-2.0pre3/app/text'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/rob/downloads/gimp-2.0pre3/app'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/rob/downloads/gimp-2.0pre3'
make: *** [all] Error 2
Comment 1 Dave Neary 2004-02-27 21:48:33 UTC
At first glance, this looks like a dependency check issue. 

If you have the appropriate version of fontconfig installed, and
pkg-config picked it up at configure time, you should be OK.

If configure didn't catch this, then this is probably a problem with
configure.in.

Here when I check for my fontconfig version, I get...

dave@bolsh:~$ pkg-config --version fontconfig
0.15.0

And
dave@bolsh:~$ locate fontconfig.h
/usr/include/fontconfig/fontconfig.h

Perhaps updating fontconfig will fix the problem.

Cheers,
Dave.
Comment 2 Rob Hudson 2004-02-27 22:05:02 UTC
Here's what I get...

root@rhudson1>  pkg-config --version fontconfig
0.15.0

root@rhudson1> locate fontconfig.h
/usr/include/fontconfig/fontconfig.h
/usr/local/include/fontconfig/fontconfig.h
/usr/X11R6/include/fontconfig/fontconfig.h


Which shows the problem... I have (had) leftover fontconfig stuff from
when fontconfig wasn't in debian's repository but I wanted to play
with it.  I removed the old ones and it's compiling now just fine.

Thanks.  Changing to notabug...
Comment 3 Manish Singh 2004-02-27 22:09:53 UTC
BTW, you're supposed to use --modversion, not --version when checking
package versions with pkg-config.
Comment 4 Sven Neumann 2004-06-06 15:13:20 UTC
*** Bug 143809 has been marked as a duplicate of this bug. ***