[Spice-devel] Cannot compile from git sources

Christophe Fergeau cfergeau at redhat.com
Mon Aug 3 01:39:59 PDT 2015


Hey,

On Sun, Aug 02, 2015 at 03:43:38PM +0200, jean-christophe Manciot wrote:
> *Environnent*:
> Ubuntu Server 15.04 - Git sources from
> http://cgit.freedesktop.org/spice/spice-gtk/
> 
> *make distclean*
> *./autogen.sh*
> *./configure --enable-vala --enable-introspection=yes --prefix=/usr
> --sysconfdir=/etc --localstatedir=/var*
> *make -j6*
> ...
> *make[4]: Entering directory
> '/home/actionmystique/Program-Files/Ubuntu/Spice-GTK/git-spice-gtk/src'*
> *  CC       bio-gio.lo*
> *  CC       glib-compat.lo*
> *  CC       spice-audio.lo*
> *  CC       spice-util.lo*
> *  CC       spice-option.lo*
> *  CC       spice-client.lo*
> *cc1: error: /usr/local/include/cacard: No such file or directory [-Werror]*
> *cc1: error: /usr/local/include/cacard: No such file or directory [-Werror]*
> *cc1: error: /usr/local/include/cacard: No such file or directory [-Werror]*
> *cc1: error: /usr/local/include/cacard: No such file or directory [-Werror]*
> *cc1: error: /usr/local/include/cacard: No such file or directory [-Werror]*
> *cc1: error: /usr/local/include/cacard: No such file or directory [-Werror]*
> *cc1: error: /usr/local/include/cacard: No such file or directory [-Werror]*
> *cc1: error: /usr/local/include/cacard: No such file or directory [-Werror]*
> *cc1: error: /usr/local/include/cacard: No such file or directory [-Werror]*
> *cc1: error: /usr/local/include/cacard: No such file or directory [-Werror]*
> *cc1: error: /usr/local/include/cacard: No such file or directory [-Werror]*
> *cc1: error: /usr/local/include/cacard: No such file or directory [-Werror]*

This is unexpected, could you build with 'make V=1' so that we can
see the compiler command line leading to these errors?

> As you can see, despite the configure option --prefix=/usr, the process
> looks for usr/local/include/cacard instead of /usr/include/cacard, which
> exists.

Could be an issue with the libcacard.pc file. Either it first picks one
in /usr/local/lib/pkgconfig, or the one in /usr/lib is invalid (actual
path to $libdir might be different on your distro, eg on my fedora it's
/usr/lib64/pkgconfig)

> 
> N.B: You may receive duplicate message about this issue due to my initial
> mix about e-mail address. The first e-mail from actionmystique at gmail.com
> should be discarded.

Ah, sorry, I only saw this NB just now, I've already approved these
messages.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20150803/f6e6506c/attachment.sig>


More information about the Spice-devel mailing list