On 01/27/2011 05:04 PM, [email protected] wrote:
Author: tross
Date: Thu Jan 27 17:04:40 2011
New Revision: 1064199

URL: http://svn.apache.org/viewvc?rev=1064199&view=rev
Log:
QPID-3009 - Perl binding to Qpid messaging
Applied patch contributed by Hao Chang Yu

This break the build for me; perhaps it is due to the various perl integration headers being in an unusual/unexpected location.

The configure script has:

+# Perl bindings:
+
+AC_CHECK_PROG([H2XS], [h2xs], [h2xs])
+if test -n "$H2XS" ; then
+   AC_CHECK_FILE("$libdir/perl5/CORE/perl.h", [AC_SUBST([PERL_INC], 
"-I$libdir/perl5/CORE")])
+fi
+AM_CONDITIONAL([HAVE_PERL_DEVEL], [test -n "$H2XS"&&  test -n "$SWIG"])

But on my system the necessary headers are in /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/. Any suggestions on a neat modification to the configure script that would fix this?

If I set PERL_INC explicitly I can build but only if I also modify the makefile as per attached diff. I assume that it was intended for PERL_INC to be used like this?

diff --git a/qpid/cpp/bindings/qpid/perl/Makefile.am 
b/qpid/cpp/bindings/qpid/perl/Makefile.am
index 566c825..2f6ba9b 100644
--- a/qpid/cpp/bindings/qpid/perl/Makefile.am
+++ b/qpid/cpp/bindings/qpid/perl/Makefile.am
@@ -19,7 +19,7 @@
 
 if HAVE_PERL_DEVEL
 
-INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include 
-I$(top_srcdir)/src -I$(top_builddir)/src
+INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include 
-I$(top_srcdir)/src -I$(top_builddir)/src -I$(PERL_INC)
 
 EXTRA_DIST = perl.i
 BUILT_SOURCES = cqpid.cpp
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to