Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macro `AM_PROG_AR' not found in library #152

Closed
louwersj opened this issue Jan 5, 2015 · 4 comments
Closed

macro `AM_PROG_AR' not found in library #152

louwersj opened this issue Jan 5, 2015 · 4 comments

Comments

@louwersj
Copy link

louwersj commented Jan 5, 2015

When running autogen.sh I do get an issue arround AM_PROG_AR, more specifically I do get:

configure.ac:57: error: possibly undefined macro: AM_PROG_AR

The full trace is at: http://pastebin.com/Hi2CESx4

Any thoughts on the root cause and/or how to resolve this? I an using Oracle Linux (Kernel: 3.8.13-16.2.2.el6uek.x86_64)

Thanks already!
Regards,
Johan.

@louwersj
Copy link
Author

louwersj commented Jan 6, 2015

I commented out line 57 in configure.ac and was able to compile and install protobuf.... it looks like AM_PROG_AR is not used really..... however for some reason is included....

Do I overlook something?

@xfxyjwf
Copy link
Contributor

xfxyjwf commented Jan 6, 2015

That macro AM_PROG_AR is defined by automake: http://www.gnu.org/software/automake/manual/html_node/Public-Macros.html

Maybe it's that the automake you were using is not newer enough to have that macro? I added that line because automake reports a warning and asks to add that macro in the configure.ac file.

@louwersj
Copy link
Author

louwersj commented Jan 9, 2015

Might be the case.... I will be testing it on a newer version somewhere this weekend and let you know. However, might be good for people to know that commenting out the line when you hit the error will still compile the code and you will not find (up until now) any technical issues with the compiled code. :-)

@liujisi liujisi closed this as completed Mar 5, 2015
@itfanr
Copy link

itfanr commented May 24, 2016

edit the file configure.ac as follows:

delete the line AM_PROG_AR and add m4_ifdef([AM_PROG_AR], [AM_PROG_AR])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants