[
https://issues.apache.org/jira/browse/QPID-2389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12850773#action_12850773
]
Jeff Laughlin commented on QPID-2389:
-------------------------------------
Soooo it turns out that if I check out the specs dir as well as the cpp dir
then autoconf finds some XML file that causes some lines in src/Makefile to
come out uncommented that set the rgen_cmd variable which magically makes
everything work.
Why did I not have the specs dir? Because I don't want to check out the
ENORMOUS java broker dir.
Here's a snippit of the configure.ac that seems to be responsible for
activating the bad behavior
specdir=`pwd`/$srcdir/../specs
AMQP_FINAL_XML=$specdir/amqp.0-10-qpid-errata.xml
AC_SUBST(AMQP_FINAL_XML)
AM_CONDITIONAL([GENERATE], [test -f $AMQP_FINAL_XML])
test -f $AMQP_FINAL_XML -a -z "$RUBY" && AC_MSG_ERROR([Missing ruby
installation (try "yum install ruby").])
If that XML file is not found, then these lines on src/Makefile come out
commented:
# Ruby generator.
#rgen_dir = $(top_srcdir)/rubygen
#rgen_cmd = ruby -I $(rgen_dir) $(rgen_dir)/generate . ../include $(specs) all
But THESE lines are NOT commented out (I don't know why, it looks like they
should be, they are decorated with @GENERATE_TRUE@ in Makefile.in):
$(rgen_srcs) $(srcdir)/rubygen.mk: rgen.timestamp
rgen.timestamp: $(rgen_generator) $(specs)
$(rgen_cmd) $(srcdir)/rubygen.mk; touch $@
$(rgen_generator):
And rgen_cmd is undefined so make tries to run rubygen.mk as a command and then
freaks out.
I humbly suggest that this is still a symptom of a bug in the build system. I
also suggest adding instructions to the wiki for building the cpp broker from
trunk without getting the ginormous java broker sources.
> 0.6 RC from SVN fails to build with "make[1]: execvp: ./rubygen.mk:
> Permission denied"
> --------------------------------------------------------------------------------------
>
> Key: QPID-2389
> URL: https://issues.apache.org/jira/browse/QPID-2389
> Project: Qpid
> Issue Type: Bug
> Components: C++ Broker
> Affects Versions: 0.6
> Environment: Debian GNU/Linux 5.0.3 (lenny)
> Reporter: Jeff Laughlin
>
> Checked out 906327 from 0.6 branch, ./bootstrap, ./configure, then make and I
> get
> jlaugh...@kamikaze:~/qpid/broker/svn/0.6-release-cpp$ make
> Making all in managementgen
> make[1]: Entering directory
> `/home/jlaughlin/qpid/broker/svn/0.6-release-cpp/managementgen'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/home/jlaughlin/qpid/broker/svn/0.6-release-cpp/managementgen'
> Making all in etc
> make[1]: Entering directory
> `/home/jlaughlin/qpid/broker/svn/0.6-release-cpp/etc'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/home/jlaughlin/qpid/broker/svn/0.6-release-cpp/etc'
> Making all in src
> make[1]: Entering directory
> `/home/jlaughlin/qpid/broker/svn/0.6-release-cpp/src'
> ./rubygen.mk
> make[1]: execvp: ./rubygen.mk: Permission denied
> make[1]: *** [rubygen.mk] Error 127
> make[1]: Leaving directory
> `/home/jlaughlin/qpid/broker/svn/0.6-release-cpp/src'
> make: *** [all-recursive] Error 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]