LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-28-2005, 10:30 AM   #1
bad_zeppelin
LQ Newbie
 
Registered: Sep 2005
Location: Odense, Denmark
Distribution: Pardus 2007.1
Posts: 10

Rep: Reputation: 0
gtk+ 2.8.4 compile problem


hi all out there,

i'm trying to compile gtk+ 2.8.4 on my slackware 10.2 box. i have install all dependencies without any problems(pango, glib, cairo etc..) and the ./configure script for gtk+ gives no errors. but when i "make" i turns out this error:

does anybody have an idea what could have caused this?

thanks

------------------------------------------------------------------------------------------------------------------
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../..//usr/lib/pkgconfig/. -I/usr/include/freetype2 -I/usr/local/include/cairo -I/usr/X11R6/include -I/usr/local/include -I/usr/include/libpng12 -I/usr/include/cairo -I/usr/X11R6/include -g -O2 -Wall -MT gdkasync.lo -MD -MP -MF .deps/gdkasync.Tpo -c gdkasync.c -fPIC -DPIC -o .libs/gdkasync.o
In file included from ../../gdk/gdkcolor.h:31,
from ../../gdk/gdkcairo.h:23,
from ../../gdk/gdk.h:30,
from gdkasync.h:25,
from gdkasync.c:51:
../../gdk/gdktypes.h:33:25: pango/pango.h: No such file or directory
In file included from ../../gdk/gdk.h:30,
from gdkasync.h:25,
from gdkasync.c:51:
../../gdk/gdkcairo.h:25:30: pango/pangocairo.h: No such file or directory
In file included from ../../gdk/gdk.h:35,
from gdkasync.h:25,
from gdkasync.c:51:
../../gdk/gdkdrawable.h:119: error: syntax error before "PangoFont"
../../gdk/gdkdrawable.h:186: error: syntax error before "PangoMatrix"
../../gdk/gdkdrawable.h:353: error: syntax error before "PangoFont"
../../gdk/gdkdrawable.h:361: error: syntax error before "PangoLayoutLine"
../../gdk/gdkdrawable.h:366: error: syntax error before "PangoLayout"
../../gdk/gdkdrawable.h:372: error: syntax error before "PangoLayoutLine"
../../gdk/gdkdrawable.h:379: error: syntax error before "PangoLayout"
../../gdk/gdkdrawable.h:385: error: syntax error before "PangoMatrix"
In file included from ../../gdk/gdk.h:38,
from gdkasync.h:25,
from gdkasync.c:51:
../../gdk/gdkfont.h:33:30: pango/pango-font.h: No such file or directory
In file included from ../../gdk/gdk.h:38,
from gdkasync.h:25,
from gdkasync.c:51:
../../gdk/gdkfont.h:69: error: syntax error before "PangoFontDescription"
In file included from ../../gdk/gdk.h:42,
from gdkasync.h:25,
from gdkasync.c:51:
../../gdk/gdkkeys.h:103: error: syntax error before "gdk_keymap_get_direction"
../../gdk/gdkkeys.h:103: warning: type defaults to `int' in declaration of `gdk_keymap_get_direction'
../../gdk/gdkkeys.h:103: warning: data definition has no type or storage class
In file included from ../../gdk/gdk.h:44,
from gdkasync.h:25,
from gdkasync.c:51:
../../gdk/gdkpango.h:67: error: syntax error before "PangoRenderer"
../../gdk/gdkpango.h:67: warning: no semicolon at end of struct or union
../../gdk/gdkpango.h:70: error: syntax error before '}' token
../../gdk/gdkpango.h:82: error: syntax error before "PangoRendererClass"
../../gdk/gdkpango.h:82: warning: no semicolon at end of struct or union
../../gdk/gdkpango.h:87: error: syntax error before '*' token
../../gdk/gdkpango.h:87: warning: type defaults to `int' in declaration of `gdk_pango_renderer_new'
../../gdk/gdkpango.h:87: warning: data definition has no type or storage class
../../gdk/gdkpango.h:88: error: syntax error before '*' token
../../gdk/gdkpango.h:88: warning: type defaults to `int' in declaration of `gdk_pango_renderer_get_default'
../../gdk/gdkpango.h:88: warning: data definition has no type or storage class
../../gdk/gdkpango.h:95: error: syntax error before "PangoRenderPart"
../../gdk/gdkpango.h:98: error: syntax error before "PangoRenderPart"
../../gdk/gdkpango.h:103: error: syntax error before '*' token
../../gdk/gdkpango.h:103: warning: type defaults to `int' in declaration of `gdk_pango_context_get_for_screen'
../../gdk/gdkpango.h:103: warning: data definition has no type or storage class
../../gdk/gdkpango.h:105: error: syntax error before '*' token
../../gdk/gdkpango.h:105: warning: type defaults to `int' in declaration of `gdk_pango_context_get'
../../gdk/gdkpango.h:105: warning: data definition has no type or storage class
../../gdk/gdkpango.h:119: error: syntax error before '*' token
../../gdk/gdkpango.h:124: error: syntax error before '*' token
../../gdk/gdkpango.h:139: error: syntax error before "PangoAttribute"
../../gdk/gdkpango.h:139: warning: no semicolon at end of struct or union
../../gdk/gdkpango.h:141: error: syntax error before '}' token
../../gdk/gdkpango.h:145: error: syntax error before "PangoAttribute"
../../gdk/gdkpango.h:145: warning: no semicolon at end of struct or union
../../gdk/gdkpango.h:147: error: syntax error before '}' token
../../gdk/gdkpango.h:149: error: syntax error before '*' token
../../gdk/gdkpango.h:149: warning: type defaults to `int' in declaration of `gdk_pango_attr_stipple_new'
../../gdk/gdkpango.h:149: warning: data definition has no type or storage class
../../gdk/gdkpango.h:150: error: syntax error before '*' token
../../gdk/gdkpango.h:150: warning: type defaults to `int' in declaration of `gdk_pango_attr_embossed_new'
../../gdk/gdkpango.h:150: warning: data definition has no type or storage class
In file included from gdkx.h:81,
from gdkasync.c:52:
gdkprivate-x11.h:174: error: syntax error before '*' token
gdkprivate-x11.h:175: warning: type defaults to `int' in declaration of `_gdk_x11_renderer_get'
gdkprivate-x11.h:175: warning: data definition has no type or storage class
In file included from gdkx.h:82,
from gdkasync.c:52:
gdkscreen-x11.h:95: error: syntax error before "PangoRenderer"
gdkscreen-x11.h:95: warning: no semicolon at end of struct or union
gdkscreen-x11.h:106: error: syntax error before '}' token
make[4]: *** [gdkasync.lo] Error 1
make[4]: Leaving directory `/usr/src/gtk+-2.8.4/gdk/x11'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/gtk+-2.8.4/gdk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/gtk+-2.8.4/gdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/gtk+-2.8.4'
make: *** [all] Error 2
-----------------------------------------------------------------------------------------------------------------
 
Old 09-29-2005, 10:32 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
Quote:
pango/pango.h: No such file or directory
what does it say when you do
pkg-config --cflags pango

there is no -I line for pango in the makefile
do you have two versions of pango ?
i see -I/usr/local/include/cairo instead of -I/usr/include/cairo
that's suspect of another pango in /usr/local
 
Old 09-30-2005, 03:10 PM   #3
bad_zeppelin
LQ Newbie
 
Registered: Sep 2005
Location: Odense, Denmark
Distribution: Pardus 2007.1
Posts: 10

Original Poster
Rep: Reputation: 0
pkgconfig returns:
Code:
ustun@gondolin:~$ pkg-config --cflags pango
-I$(top_builddir)//usr/lib/pkgconfig/. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
ustun@gondolin:~$
and yes, i think i have two pangos installed one in /usr and one in /usr/local. could this be the cause? and how can i solve it?

thanks very much for your reply.
 
Old 09-30-2005, 10:29 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
that's some really odd output there
don't know what to say about
Quote:
-I$(top_builddir)//usr/lib/pkgconfig/.
what the heck is that ?

heres mine
Code:
(11:11pm:09/30/05)
(gary) ~  $ pkg-config --cflags pango
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
are you somehow pointing to a package config file that is not installed ?
$(top_builddir) is obviously a variable from a build directory yes ?

if you have maniputated the PKG_CONFIG_PATH to point to a build directory that is the wrong thing to do

if you want to use the one in /usr/local/lib/pkgconfig then use that one but you have a mess having two pangos
i guess if you get the thing to compile you can put it in the same dir as the library and set LD_LIBRARY_CONFIG=./:$LD_LIBRARY_CONFIG
i mean you also in that compile stuff for both cairos in there

i think it's just messed up and you need to remove the new stuff you put on there in /usr/local and upgrade the entire gnome setup properly in --prefix=/usr
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GTK Compile Problem MRLindstrom Linux - Software 2 01-24-2005 02:30 AM
GTK compile problems AnimaSola Linux - Software 13 07-14-2004 07:30 PM
gtk+2.4.4 compile problems AnimaSola Linux - Software 0 07-13-2004 08:49 PM
Can't compile gtk+ programs =\ EnigmaX Linux - Software 19 09-17-2003 05:41 PM
GTK 2.2 Compile? Allen614 Slackware 2 01-05-2003 10:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration