pcp
[Top] [All Lists]

Re: [pcp] pcp updates: merges (mgoodwin, fche, kenj, self), qa

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: [pcp] pcp updates: merges (mgoodwin, fche, kenj, self), qa
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Tue, 28 Oct 2014 02:47:55 -0400 (EDT)
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <544F3A35.2020909@xxxxxxxxxxxxxxxx>
References: <573773476.1355528.1414474652048.JavaMail.zimbra@xxxxxxxxxx> <544F3A35.2020909@xxxxxxxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: ncxoRiTCkk4M+f5+1SJ/yEz6DqKs9w==
Thread-topic: pcp updates: merges (mgoodwin, fche, kenj, self), qa

----- Original Message -----
> 
> On ubuntu I'm seeing build errors ...
> 
> Makepkgs dies with
> 
> === pmwebapi ===
> gcc -fPIC -fno-strict-aliasing -D_GNU_SOURCE -fstack-protector-all
> -D_FORTIFY_SOURCE=2  -Wextra -fPIE -Wall -O2 -g -DPCP_DEBUG
> -DPCP_VERSION=\"3.10.0\" -I../../src/include -I../../src/include/pcp   -c -o
> main.o main.c
> In file included from main.c:17:0:
> pmwebapi.h:21:18: fatal error: string: No such file or directory
>  #include <string>
>                   ^

This is a problem related to configure not being run on this build.
On a clean build, you should see "g++" being used over gcc (above)
and the C++ headers are then all found.  I saw this here too, for a
Debian build.

> pmapi.c:27:20: fatal error: Python.h: No such file or directory
>  #include <Python.h>
>                     ^
> compilation terminated.
> error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Yep, this is configure too - python support should have been switched
off auto-magically in the build (IIRC) if no devel headers were found
of appropriate version levels.

> configure differences ...
> 
> kenj@bozo:~/src/pcp/build/deb/pcp-3.10.0/src/include$ diff -r .

Try "make distclean" and/or "rm -fr build/deb" and kick a fresh
build off?

cheers.

--
Nathan

<Prev in Thread] Current Thread [Next in Thread>