LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 04-27-2005, 02:00 AM   #1
acrao80
LQ Newbie
 
Registered: Apr 2005
Posts: 7

Rep: Reputation: 0
GTK: pango and atk error while "make"


hi

i have had a look at all the threads posted on this forum and tried things accordingly but still have problems............


i have installed all the libraries (following) in the path /usr/tools/gtkada

atk-1.9.0 , glib-2.6.2 , gtk+-2.6.5 , GtkAda-2.0.0, jpeg-6b , libpng, pango-1.8.0, pkgconfig-0.15.0 , tiff-v3.6.1, zlib

i have installed the glib and others as well using " ./configure --prefix=/usr/tools/gtkada "command and then "make" and "make install"
which didnt give any problems .

but when i tried to 'make' the pango it gives error



In file included from ftxopen.h:285,
from ftxopen.c:18:
otlbuffer.h:17:18: glib.h: No such file or directory
In file included from ftxopen.h:285,
from ftxopen.c:18:
otlbuffer.h:23: syntax error before "typedef"
In file included from ftxopen.h:286,
from ftxopen.c:18:
ftxgdef.h:52: syntax error before "struct"
make[4]: *** [ftxopen.lo] Error 1
make[4]: Leaving directory `/usr/tools/gtkada/pango-1.8.0/pango/opentype'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/tools/gtkada/pango-1.8.0/pango'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/tools/gtkada/pango-1.8.0/pango'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/tools/gtkada/pango-1.8.0'
make: *** [all] Error 2

for atk while "make " , error is

../atk/atkobject.h:486: syntax error before "AtkState"
../atk/atkobject.h:489: syntax error before "gpointer"
../atk/atkobject.h:491: syntax error before "gchar"
../atk/atkobject.h:491: warning: type defaults to `int' in declaration of `atk_role_get_name'
../atk/atkobject.h:491: warning: data definition has no type or storage class
../atk/atkobject.h:492: warning: type defaults to `int' in declaration of `gchar'
../atk/atkobject.h:492: syntax error before '*' token
../atk/atkobject.h:498: `atk_object_add_relationship' declared as function returning a function
../atk/atkobject.h:501: `atk_object_remove_relationship' declared as function returning a function
../atk/atkobject.h:502: syntax error before "gchar"
../atk/atkobject.h:502: warning: type defaults to `int' in declaration of `atk_role_get_localized_name'
../atk/atkobject.h:502: warning: data definition has no type or storage class
In file included from atkaction.c:20:
atkaction.h:51: syntax error before "GTypeInterface"
atkaction.h:51: warning: no semicolon at end of struct or union
atkaction.h:54: syntax error before "gint"
atkaction.h:54: `do_action' declared as function returning a function
atkaction.h:55: syntax error before '*' token
atkaction.h:55: warning: type defaults to `int' in declaration of `gint'
atkaction.h:55: `gint' declared as function returning a function
atkaction.h:55: warning: data definition has no type or storage class
atkaction.h:56: syntax error before "gchar"

lot of them in fact!!

my env settings are
LD_LIBRARY_PATH=/usr/local/lib:/usr/tools/gtkada/lib

PKG_CONFIG_PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin:/usr/tools/GtkAda-2.0.0:/usr/tools/gtk+-2.6.5:/usr/tools/gtkada/lib/pkgconfig:/usr/tools/gtkada/glib-2.6.2:/usr/tools/gtkada/atk-1.9.0:/usr/tools/gtkada/pango-1.8.0:/usr/tools/gtkada/gtk+-2.6.5

CPPFLAGS=-I/usr/tools/gtkada/include

LDFLAGS=-L/usr/tools/gtkada/lib

LD_LIBRARY_PATH=/usr/tools/gtkada/lib

PATH=$PATH:/usr/tools/gtkada/bin


please help i am a newbie and been trying to install it from past two days

HELP WOULD BE HIGHLY APPRECIATED!!!

ps: also cud any guide if all the versions of above libraries are compatible with eachother
 
Old 05-21-2005, 12:59 PM   #2
kernelhacker
LQ Newbie
 
Registered: May 2005
Location: Oregon
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
Normally check the first error.

You didn't cut a part of ATK which I needed to see to help you there, but you really don't need ATK before pango is working.
as far as I can see, your library versions are O.K.

In file included from ftxopen.h:285,
from ftxopen.c:18:
otlbuffer.h:17:18: glib.h: No such file or directory.

Somehow, you do not actually have a good installation of glib.
If you think you already have it, you chould check with:

cd /usr
find * -name glib.h -print # may take a few minutes to find anything.

and also

find * -name libglib*

If that does not come back with files where you expect them to be, then your install of glib is botched.

However, the real problem appears to be that you have installed glib in a nonstandard location.
Normally it is prefixed as --prefix=/usr or --prefix=/usr/local, but you have it in a new location.
The pango configure script has not properly located this library/header.
Are you trying to install pango in a particular packages directory so it will not conflict with another installation?

In any event:

you should have a /usr/tools/gtkada/lib/pkgconfig/glib-2.0.pc

check to see if glib is located correctly by a: pkg-config --cflags glib-2.0
(I bet this fails).

The reason?

You PKG_CONFIG_PATH looks quite sick and wrong.
Package config files are the ones which tell the system *where* a specific file is installed, and what it depends on for
the purpose of compiling and linking. All paths in PKG_CONFIG_PATH should point to directories which have .pc files
in them. That path is not for binaries or executables, but ONLY for .pc files. Hence when I see .../sbin: in your path
that looks quite perverted

all individual paths in the PKG_CONFIG_PATH should end in lib/pkgconfig, for example here is mine.

PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/X11/lib/pkgconfig

This allows package config to find the system .pc files and X11 .pc files.
Now, you are installing the .pc files to /usr/tools/gtkada/lib/pkgtools
because you gave a prefix to the ./configure script of Glib.

you have a couple of choices: move the .pc files from /usr/tools/gtkada/lib/pkgconfig to
a directory on the PKG_CONFIG_PATH, or add the /usr/tools/gtkada/lib/pkgconfig
directory to your PGK_CONFIG_PATH.

The main idea in installing libraries is to share the same library among different packages.
What you appear to be doing is reinstalling libraries everywhere on your system.
That is a bit strange too.
There are landmines in having multiple versions of libraries all over your system.
Not only is package config confused by it, but the librarian, ldconfig, which allows your programs to execute
by actually connecting (linking) your program to the right libraries can be confused by it.
You should not have multiple installations of any given library (same version) on your system (you might not be
violating that right now).
ldconfig will need to be told where the new library directories are, before they can be used at run time.
(Unless you are statically linking programs, which I doubt).

Hopefully that is a start.
 
  


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
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
Installing GFTP...and gtk, atk, pango... hongman Linux - Software 19 02-20-2005 03:02 PM
Pb installing glib, atk, pango, gtk giill Linux - Software 8 11-23-2003 01:25 PM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration