Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-07-2007, 03:03 PM   #1
LQ Newbie
Registered: Nov 2006
Posts: 5

Rep: Reputation: 0
compiling Cairo

Hey guys,

I'm trying to recompile a newer version of GTK+. Cairo is obviously a dependency but I'm having problems compiling it. my configure successfully runs, I then try a "make" but it terminates with a set of errors. Does anyone know what I could possibly do, or familiar with this problem?

cairo-type1-subset.c: In function `cairo_type1_font_subset_decrypt_eexec_segment':
cairo-type1-subset.c:368: error: implicit declaration of function `isspace'
cairo-type1-subset.c:368: warning: nested extern declaration of `isspace'
cairo-type1-subset.c: In function `skip_token':
cairo-type1-subset.c:388: warning: nested extern declaration of `isspace'
cairo-type1-subset.c: In function `cairo_type1_font_subset_for_each_glyph':
cairo-type1-subset.c:716: warning: nested extern declaration of `isspace'
make[2]: *** [cairo-type1-subset.lo] Error 1
make[2]: Leaving directory `/root/programs/cairo-1.2.6/src'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/root/programs/cairo-1.2.6/src'
make: *** [install-recursive] Error 1

EDIT: DLed a newer version of Cairo.. compiled fine.. oh well!

Last edited by ryanfx; 10-07-2007 at 03:56 PM.
Old 11-15-2007, 11:55 AM   #2
LQ Newbie
Registered: Nov 2007
Posts: 2

Rep: Reputation: 0

I had this problem, and did a little searching on the internet, and came up with this.

1) Go to and notice the difference in the the header files included (The one on the right is how you are going to want it to look like.

2) Go to your cairo directory, in it, there should be a folder names "src". Open the folder, and look for the file "cairo-type1-subset.c"

3) Once you find the file, make a backup copy of it (just for good practice), then open it in your favorite text editor.

4) Look for the part of the file that looks like the text on the page linked above, and add the line highlighted in green as in the right side of the page linked above.

5) Save the file

6) run ./configure again, and make, and it should build. then make install

Hope this helped!
Old 05-27-2008, 05:53 AM   #3
LQ Newbie
Registered: May 2008
Posts: 5

Rep: Reputation: 0
Ejay, I am have a similar problem with cairo when I run make install. Here is what I am getting:

/usr/bin/install -c .libs/libcairo.lai /usr/lib/
/usr/bin/install: cannot stat `.libs/libcairo.lai': No such file or directory
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory `/usr/local/src/cairo-1.6.4/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/usr/local/src/cairo-1.6.4/src'
make: *** [install-recursive] Error 1

Do I need to change something in a file in order to install cairo?
Old 12-08-2008, 10:43 AM   #4
Registered: May 2004
Distribution: Slackware / Debian
Posts: 91

Rep: Reputation: 15
Got similar problem

my question is:

what is a .lai file?

I know what .la libtool files are but i dont understand why one needs a .lai file


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
problems makeing cairo-1.2.6 bloodyscript Ubuntu 1 07-23-2007 10:32 AM
compiling cairo 1.2.6 on CentOS 4.x primorec Linux - Desktop 0 02-08-2007 04:13 AM
cairo in testing gefst Slackware 4 10-08-2006 05:19 PM
installing cairo? lilili Linux - Newbie 9 02-01-2006 01:19 PM
gtk+2.8 and cairo John Velman Slackware 3 10-19-2005 05:16 PM

All times are GMT -5. The time now is 11:45 AM.

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