Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]dev-libs/gjs fails to build because of cairo headers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
lalebarde
Guru
Guru


Joined: 03 Sep 2006
Posts: 464
Location: France, Haute-Garonne

PostPosted: Mon Sep 08, 2014 12:26 pm    Post subject: [SOLVED]dev-libs/gjs fails to build because of cairo headers Reply with quote

Hi all,

I am in a big upgrade process of my Gentoo. At this stage, dev-libs/gjs fails to build because it does not find one of cairo headers: /usr/include/cairo/cairo-gobject.h

All other headers are directly under /usr/include/. cairo is the only package to have created a subdirectory. I assume this is the origin of the problem.

Here the part of the emerge where the error occurs:
Code:
In file included from <stdin>:4:0:
/usr/share/gobject-introspection-1.0/tests/regress.h:5:27: fatal error: cairo-gobject.h: No such file or directory
compilation terminated.
Error while processing the source.


I saw the same kind of story here: https://forums.gentoo.org/viewtopic-t-902894-start-0.html, and I have so re-emerged dev-libs/gobject-introspection and dev-libs/gobject-introspection-common, but with no result. I also re-emerged cairo, but still no result.

A work-around would be I assume to make simlinks of every cairo header file in /usr/include, but it is not clean.

Any suggestion? I have not found where to add a header path for the system.


Last edited by lalebarde on Thu Sep 11, 2014 9:03 am; edited 1 time in total
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Sep 08, 2014 5:25 pm    Post subject: Reply with quote

That's not a problem - cairo headers (at least at this time) are expected to be under /usr/include/cairo.
You haven't shown the command that fails, but a quick check: is cairo build with 'glib' useflag ?
Back to top
View user's profile Send private message
lalebarde
Guru
Guru


Joined: 03 Sep 2006
Posts: 464
Location: France, Haute-Garonne

PostPosted: Tue Sep 09, 2014 10:38 am    Post subject: Reply with quote

VoidMage wrote:
is cairo build with 'glib' useflag ?
yes
Back to top
View user's profile Send private message
lalebarde
Guru
Guru


Joined: 03 Sep 2006
Posts: 464
Location: France, Haute-Garonne

PostPosted: Thu Sep 11, 2014 8:54 am    Post subject: Reply with quote

Surprizingly, dev-libs/gjs emerges right after having added the USE flag cairo.

For information, the command was simply:
Code:
# emerge -1v dev-libs/gjs

I don't post the trace, since it is too long, and I pasted the error in the first post.[/code]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum