massifor / distcc

Automatically exported from code.google.com/p/distcc
GNU General Public License v2.0
0 stars 0 forks source link

Unable to use the pump mode with pkg-config #120

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to use the pump mode with headers that reside under
/usr/include but need an extra -I option in order to be accessible.

Example:

#include <libxml/parser.h>

int main(void)
{
    return 0;
}

The full path to the file is /usr/include/libxml2/libxml/parser.h, so
you are supposed to pass -I/usr/include/libxml2 to gcc (obtained with
pkg-config --cflags libxml-2.0).

So I get this compilation error even if I have the libxml headers
installed in all machines:

$ distcc-pump distcc -c -I/usr/include/libxml2 test.c

__________Using distcc-pump from /usr/bin
__________Using 1 distcc server in pump mode
distcc[12865] ERROR: compile test.c on 10.1.0.2,cpp,lzo failed
distcc[12865] (dcc_build_somewhere) Warning: remote compilation of 'test.c' 
failed, retrying locally
distcc[12865] (dcc_build_somewhere) Warning: failed to distribute and fallbacks 
are disabled
test.c:1:27: fatal error: libxml/parser.h: No such file or directory
compilation terminated.
__________Shutting down distcc-pump include server

I'm using distcc 3.1 in Debian wheezy (package version 3.1-5) with gcc
4.7.2.

Original issue reported on code.google.com by bino...@gmail.com on 9 Jan 2013 at 12:16

GoogleCodeExporter commented 9 years ago
This is fixed r638.  Available in 3.2rc1, and should be packaged in Debian 
experimental soon.

Original comment by mand...@gmail.com on 10 Jan 2013 at 8:41

GoogleCodeExporter commented 9 years ago
Tested, it works fine, thanks!

Original comment by bino...@gmail.com on 10 Jan 2013 at 11:46

GoogleCodeExporter commented 9 years ago

Original comment by fergus.h...@gmail.com on 10 Jan 2013 at 12:04