<div dir="ltr">I was able to get this to build with some tweaking, that in the end used the updated patch, but was using this patch all along, and found the first patch didn't work.<div><br></div><div><a href="http://meatwad.mouf.net/rubick/poudriere/logs/bulk/92i386-jgh/2013-12-30_08h29m34s/logs/py27-libvirt-1.2.0.log">http://meatwad.mouf.net/rubick/poudriere/logs/bulk/92i386-jgh/2013-12-30_08h29m34s/logs/py27-libvirt-1.2.0.log</a><br>
</div><div><br></div><div>Here is a link to the code for the port: (under the files directory is the patch)</div><div><a href="https://svn.redports.org/jgh/devel/py-libvirt/">https://svn.redports.org/jgh/devel/py-libvirt/</a><br>
</div><div><br></div><div>-jgh</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 29, 2013 at 3:21 PM, Jason Helfman <span dir="ltr"><<a href="mailto:jgh@freebsd.org" target="_blank">jgh@freebsd.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I will try it out. Please open a new account here:<br></div><a href="http://redports.org" target="_blank">http://redports.org</a>, and that should be sufficient enough. It will build on new commits, and I can help with the port.<br>

<br></div><div>I can also help justify the account, if that is needed.<br></div><div>Thanks!<br></div>-jgh<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 29, 2013 at 2:59 PM, Doug Goldstein <span dir="ltr"><<a href="mailto:cardoe@gentoo.org" target="_blank">cardoe@gentoo.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, Dec 29, 2013 at 12:42 PM, Jason Helfman <<a href="mailto:jgh@freebsd.org" target="_blank">jgh@freebsd.org</a>> wrote:<br>


> Any ideas?<br>
<br>
I just posted a patch with the subject of "[PATCH python] define<br>
__GNUC_PREREQ macro before using it" [1]. Give it a shot and let me<br>
know if that fixes the issue.<br>
<br>
Additionally, if you can potentially provide a FreeBSD machine that we<br>
can use as a BuildBot [2] for libvirt-python, that would likely<br>
prevent problems in the future. You can see the BB here [3].<br>
<br>
[1] <a href="https://www.redhat.com/archives/libvir-list/2013-December/msg01317.html" target="_blank">https://www.redhat.com/archives/libvir-list/2013-December/msg01317.html</a><br>
[2] <a href="http://buildbot.net" target="_blank">http://buildbot.net</a><br>
[3] <a href="http://bb.cardoe.com/libvirt-python/" target="_blank">http://bb.cardoe.com/libvirt-python/</a><br>
<div><div><br>
><br>
> Clang: FreeBSD clang version 3.1<br>
><br>
> creating build/temp.freebsd-9.1-RELEASE-p4-i386-2.7<br>
> creating build/temp.freebsd-9.1-RELEASE-p4-i386-2.7/build<br>
> clang -DNDEBUG -O2 -pipe -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing<br>
> -fPIC -I. -I/usr/local/include/python2.7 -c libvirt-override.c -o<br>
> build/temp.freebsd-9.1-RELEASE-p4-i386-2.7/libvirt-override.o<br>
> -I/usr/local/include<br>
> In file included from libvirt-override.c:26:<br>
> ./libvirt-utils.h:87:22: error: token is not a valid binary operator in a<br>
> preprocessor subexpression<br>
> #   if __GNUC_PREREQ (3, 3)<br>
>        ~~~~~~~~~~~~~ ^<br>
> ./libvirt-utils.h:99:22: error: token is not a valid binary operator in a<br>
> preprocessor subexpression<br>
> #   if __GNUC_PREREQ (3, 4)<br>
>        ~~~~~~~~~~~~~ ^<br>
> 2 errors generated.<br>
> error: command 'clang' failed with exit status 1<br>
> *** [do-build] Error code 1<br>
><br>
> Stop in /usr/home/jgh/workspace/ports/devel/py-libvirt.<br>
><br>
><br>
> Gcc: gcc (GCC) 4.2.1 20070831<br>
> gcc -DNDEBUG -O2 -pipe -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing<br>
> -fPIC -I. -I/usr/local/include/python2.7 -c libvirt-override.c -o<br>
> build/temp.freebsd-9.1-RELEASE-p4-i386-2.7/libvirt-override.o<br>
> -I/usr/local/include<br>
> In file included from libvirt-override.c:26:<br>
> libvirt-utils.h:87:22: error: missing binary operator before token "("<br>
> libvirt-utils.h:99:22: error: missing binary operator before token "("<br>
> error: command 'gcc' failed with exit status 1<br>
> *** [do-build] Error code 1<br>
><br>
><br>
> Thanks!<br>
> -jgh<br>
> --<br>
> Jason Helfman          | FreeBSD Committer<br>
> jgh@FreeBSD.org     | <a href="http://people.freebsd.org/~jgh" target="_blank">http://people.freebsd.org/~jgh</a>  | The Power to Serve<br>
><br>
</div></div><span><font color="#888888">> --<br>
> libvir-list mailing list<br>
> <a href="mailto:libvir-list@redhat.com" target="_blank">libvir-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/libvir-list" target="_blank">https://www.redhat.com/mailman/listinfo/libvir-list</a><br>
<br>
--<br>
Doug Goldstein<br>
<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Jason Helfman          | FreeBSD Committer<br>jgh@FreeBSD.org     | <a href="http://people.freebsd.org/%7Ejgh" target="_blank">http://people.freebsd.org/~jgh</a>  | The Power to Serve<br>

</div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Jason Helfman          | FreeBSD Committer<br>jgh@FreeBSD.org     | <a href="http://people.freebsd.org/%7Ejgh" target="_blank">http://people.freebsd.org/~jgh</a>  | The Power to Serve<br>
</div>
</div>