-
Notifications
You must be signed in to change notification settings - Fork 23
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
Fix 1.0.18 build issues #10
Conversation
@kmaleyev Also, confirmed build and compile completed on Amazon Linux AMI 2017.03.0. |
Thank you for the contribution! Before this can be merged in mainline I would need to test it on multiple platforms. I will merge this into 'autoconf' branch today and hopefully find time to get it tested and merge it into the mainline sometime in the near future. Please let me know if this sounds good. |
Jim, Thanks again for all this work. This sounds like a hugely frustrating experience and I want to make sure other users don't have to got through this. General comments on this pull request (there's a separate review with technical inline comments):
|
@@ -436,7 +436,7 @@ test_return_t polling_test(memcached_st *ptr) | |||
|
|||
#include "tests/libmemcached-1.0/dynamic_mode_test.h" | |||
|
|||
void get_world(libtest::Framework *world) | |||
void get_world_dynamic_mode(libtest::Framework *world) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't see this being referenced from anywhere.
grep -rnI get_world_dynamic_mode *
tests/libmemcached-1.0/dynamic_mode_test.cc:439:void get_world_dynamic_mode(libtest::Framework *world)
On top of that these tests are not part of the default build test
or build (release)
targets and are for Amazon's internal use only, so you should have no need to touch them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was causing compilation issues and duplicate error. See note on my PR #11. I ended up leaving dynamic_mode_test alone and modified the all_tests. These two files were causing duplicate function errors during compilation.
README.md
Outdated
|
||
> sudo apt-get install libevent-dev gcc g++ make autoconf libsasl2-dev | ||
|
||
c) Check Automake Version | ||
|
||
> sudo automake --version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[minor] no need for sudo i think, same for autoreconf -vfi
below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to use sudo on both ubuntu and AWS AMI
README.md
Outdated
|
||
> If you are not running version 1.14.x you will need to update `<root>/configure` file's variable `am__api_version='1.14'` to match your version of automake. | ||
|
||
> sudo autoreconf -vfi (This will [remake build system files](http://www.tutorialspoint.com/unix_commands/autoreconf.htm) in the directory trees driven by configure.ac) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be moved down after git clone
in step (3)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, no need to check your version of automake. Removed the configure and Makefine.in and when autoreconf is run it will regenerate the files based upon the version of automake installed on the machine.
tests/libmemcached-1.0/all_tests.h
Outdated
@@ -443,7 +443,7 @@ test_st namespace_tests[] ={ | |||
{0, 0, (test_callback_fn*)0} | |||
}; | |||
|
|||
collection_st collection[] ={ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[minor] Unless I'm missing something this seems unnecessary. Wouldn't we want to leave it the way it is to be consistent with all the other test definition files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was causing compilation issues and duplicate error. See note on my PR #11
Thanks for the great feedback:) Let me digest, clean things up, and hopefully clarify some of your questions. This was a great learning experience working with this project. I typically work with Java and its build systems. I still have PR for a open source CMS to incorporate the autodiscovery...This is not urgent but will get back to you soon. |
See PR #11 |
#9
#8
#7
Various changes for compilation and linking to fix build and pass. Tested on Ubuntu 14 and was able to complete all steps Outlined in the AWS documentation
Please review, I have not worked with Makefiles and open to any feedback.