You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Leonard Cuff <lc...@valueclick.com> on 2009/09/11 23:38:34 UTC

AM_PATH_CPPUNIT not found in library when doing autoreconf and/or ./configure

I didn¹t have any problems running autoreconf, configure and make in
zookeeper 3.1.1, but having upgraded to 3.2.0 I am not having success
building the C libraries.
I see that there are a couple of JIRAs open in this area (jira-316 and
jira-469) but it¹s unclear to me what I can do about this. I plan to ask my
sysadmin to install the needed macros, but they are generally reluctant to
deviate from standard RedHat releases.

Any ideas?

TIA,

Leonard

$ autoreconf -if
aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in
library
aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in
library
configure.ac:33: error: possibly undefined macro: AM_PATH_CPPUNIT
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

 $ ./configure
checking for doxygen... no
checking for perl... /usr/bin/perl
checking for dot... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
./configure: line 3880: syntax error near unexpected token `1.10.2'
./configure: line 3880: `   AM_PATH_CPPUNIT(1.10.2)'

-- 

Leonard Cuff
lcuff@valueclick.com

³This email and any files included with it may contain privileged,
proprietary and/or confidential information that is for the sole use of the
intended recipient(s).  Any disclosure, copying, distribution, posting, or
use of the information contained in or attached to this email is prohibited
unless permitted by the sender.  If you have received this email in error,
please immediately notify the sender via return e-mail, telephone, or fax
and destroy this original transmission and its included files without
reading or saving it in any manner. Thank you.²






This email and any files included with it may contain privileged,
proprietary and/or confidential information that is for the sole use
of the intended recipient(s).  Any disclosure, copying, distribution,
posting, or use of the information contained in or attached to this
email is prohibited unless permitted by the sender.  If you have
received this email in error, please immediately notify the sender
via return email, telephone, or fax and destroy this original transmission
and its included files without reading or saving it in any manner.
Thank you.

Re: AM_PATH_CPPUNIT not found in library when doing autoreconf and/or ./configure

Posted by Patrick Hunt <ph...@apache.org>.
I don't think this changed - we require cppunit to build the c libs. 
Perhaps you built on a different machine that had cppunit installed?

I have these installed:
libcppunit-1.12-1				install
libcppunit-dev					install

Try commenting out lines 25-44 in configure.ac (the ones dealing with 
cppunit) and try again.

Patrick

ps. we attempted to fix this (allow the user to compile w/o cppunit) but 
were never able to figure out the magic to get autotools to allow this. 
If anyone knows we'd appreciate a patch.

Leonard Cuff wrote:
> I didn¹t have any problems running autoreconf, configure and make in
> zookeeper 3.1.1, but having upgraded to 3.2.0 I am not having success
> building the C libraries.
> I see that there are a couple of JIRAs open in this area (jira-316 and
> jira-469) but it¹s unclear to me what I can do about this. I plan to ask my
> sysadmin to install the needed macros, but they are generally reluctant to
> deviate from standard RedHat releases.
> 
> Any ideas?
> 
> TIA,
> 
> Leonard
> 
> $ autoreconf -if
> aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in
> library
> aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in
> library
> configure.ac:33: error: possibly undefined macro: AM_PATH_CPPUNIT
>       If this token and others are legitimate, please use m4_pattern_allow.
>       See the Autoconf documentation.
> autoreconf: /usr/bin/autoconf failed with exit status: 1
> 
>  $ ./configure
> checking for doxygen... no
> checking for perl... /usr/bin/perl
> checking for dot... no
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> ./configure: line 3880: syntax error near unexpected token `1.10.2'
> ./configure: line 3880: `   AM_PATH_CPPUNIT(1.10.2)'
> 

Re: AM_PATH_CPPUNIT not found in library when doing autoreconf and/or ./configure

Posted by Leonard Cuff <lc...@valueclick.com>.
Thanks Mahadev (and Patrick),

I will upgrade to 3.2.1.

I'll also dig into autoconf a little bit. I may need to point to a
non-standard location for cppunit. (If anybody already knows how, please
tell me!)

Leonard


On 9/11/09 3:06 PM, "Mahadev Konar" <ma...@yahoo-inc.com> wrote:

> Hi Leonard,
>   First of all 3.2.0 has some critical bugs. 3.2.1 has the bug fixes and is
> more stable. So in case you are upgrading, do upgrade to 3.2.1 and not
> 3.2.0.
> 
> Both 3.1.1 and 3.2.1 require cppunit packages installed for compiling...
> There is an open jira wherein cppunit wont be required for just compiling
> but for running make run-check. But that hasn't been fixed yet.
> 
> http://issues.apache.org/jira/browse/ZOOKEEPER-316
> 
> Thanks
> mahadev
> 
> 
> On 9/11/09 2:38 PM, "Leonard Cuff" <lc...@valueclick.com> wrote:
> 
>> 
>> I didn¹t have any problems running autoreconf, configure and make in
>> zookeeper 3.1.1, but having upgraded to 3.2.0 I am not having success
>> building the C libraries.
>> I see that there are a couple of JIRAs open in this area (jira-316 and
>> jira-469) but it¹s unclear to me what I can do about this. I plan to ask my
>> sysadmin to install the needed macros, but they are generally reluctant to
>> deviate from standard RedHat releases.
>> 
>> Any ideas?
>> 
>> TIA,
>> 
>> Leonard
>> 
>> $ autoreconf -if
>> aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in
>> library
>> aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in
>> library
>> configure.ac:33: error: possibly undefined macro: AM_PATH_CPPUNIT
>>       If this token and others are legitimate, please use m4_pattern_allow.
>>       See the Autoconf documentation.
>> autoreconf: /usr/bin/autoconf failed with exit status: 1
>> 
>>  $ ./configure
>> checking for doxygen... no
>> checking for perl... /usr/bin/perl
>> checking for dot... no
>> checking for a BSD-compatible install... /usr/bin/install -c
>> checking whether build environment is sane... yes
>> checking for gawk... gawk
>> checking whether make sets $(MAKE)... yes
>> ./configure: line 3880: syntax error near unexpected token `1.10.2'
>> ./configure: line 3880: `   AM_PATH_CPPUNIT(1.10.2)'
> 

-- 

Leonard Cuff
lcuff@valueclick.com

³This email and any files included with it may contain privileged,
proprietary and/or confidential information that is for the sole use of the
intended recipient(s).  Any disclosure, copying, distribution, posting, or
use of the information contained in or attached to this email is prohibited
unless permitted by the sender.  If you have received this email in error,
please immediately notify the sender via return e-mail, telephone, or fax
and destroy this original transmission and its included files without
reading or saving it in any manner. Thank you.²






This email and any files included with it may contain privileged,
proprietary and/or confidential information that is for the sole use
of the intended recipient(s).  Any disclosure, copying, distribution,
posting, or use of the information contained in or attached to this
email is prohibited unless permitted by the sender.  If you have
received this email in error, please immediately notify the sender
via return email, telephone, or fax and destroy this original transmission
and its included files without reading or saving it in any manner.
Thank you.


Re: AM_PATH_CPPUNIT not found in library when doing autoreconf and/or ./configure

Posted by Mahadev Konar <ma...@yahoo-inc.com>.
Hi Leonard,
  First of all 3.2.0 has some critical bugs. 3.2.1 has the bug fixes and is
more stable. So in case you are upgrading, do upgrade to 3.2.1 and not
3.2.0.

Both 3.1.1 and 3.2.1 require cppunit packages installed for compiling...
There is an open jira wherein cppunit wont be required for just compiling
but for running make run-check. But that hasn't been fixed yet.

http://issues.apache.org/jira/browse/ZOOKEEPER-316

Thanks
mahadev


On 9/11/09 2:38 PM, "Leonard Cuff" <lc...@valueclick.com> wrote:

> 
> I didn¹t have any problems running autoreconf, configure and make in
> zookeeper 3.1.1, but having upgraded to 3.2.0 I am not having success
> building the C libraries.
> I see that there are a couple of JIRAs open in this area (jira-316 and
> jira-469) but it¹s unclear to me what I can do about this. I plan to ask my
> sysadmin to install the needed macros, but they are generally reluctant to
> deviate from standard RedHat releases.
> 
> Any ideas?
> 
> TIA,
> 
> Leonard
> 
> $ autoreconf -if
> aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in
> library
> aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in
> library
> configure.ac:33: error: possibly undefined macro: AM_PATH_CPPUNIT
>       If this token and others are legitimate, please use m4_pattern_allow.
>       See the Autoconf documentation.
> autoreconf: /usr/bin/autoconf failed with exit status: 1
> 
>  $ ./configure
> checking for doxygen... no
> checking for perl... /usr/bin/perl
> checking for dot... no
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> ./configure: line 3880: syntax error near unexpected token `1.10.2'
> ./configure: line 3880: `   AM_PATH_CPPUNIT(1.10.2)'