Skip to content
New issue

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

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

Already on GitHub? # to your account

libmemcached 1.0.17 won't compile on RHEL 6.4 #23

Closed
m6w6 opened this issue Jan 20, 2020 · 1 comment
Closed

libmemcached 1.0.17 won't compile on RHEL 6.4 #23

m6w6 opened this issue Jan 20, 2020 · 1 comment
Labels

Comments

@m6w6
Copy link
Collaborator

m6w6 commented Jan 20, 2020

Imported from Launchpad using lp2gh.


Hello,

Unfortunately, I am unable to get libmemcached 1.0.17 to compile on RHEL 6.4. The required version of bison went from 2.4 to 2.5 between the 1.0.16 and 1.0.17 releases. RHEL 6.4 comes with bison 2.4.1. If I just patch the parser.yy file to require version 2.4, I get the following error:

CXX libtest/libtest_libtest_la-runner.lo
CXX libtest/libtest_libtest_la-server.lo
CXX libtest/libtest_libtest_la-server_container.lo
CXX libtest/libtest_libtest_la-signal.lo
libtest/server_container.cc: In member function 'libtest::Server* libtest::server_startup_st::create(const std::string&, in_port_t, bool
)':
libtest/server_container.cc:241: error: 'HAVE_MEMCACHED_BINARY' was not declared in this scope
make[1]: *** [libtest/libtest_libtest_la-server_container.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_construct.h: In destructor 'libtest::Server::~Server()':
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_construct.h:99: warning: assuming that the loop counter do
es not overflow
make[1]: Leaving directory `/builddir/build/BUILD/libmemcached-1.0.17'
make: *** [all] Error 2

I get the same error on RHEL 5.9 without the patch. With the patch I get:

  • make -j4
    GEN libmemcached/csl/scanner.cc
    "libmemcached/csl/scanner.l", line 38: unrecognized '%' directive
    "libmemcached/csl/scanner.l", line 40: bad character: #
    "libmemcached/csl/scanner.l", line 40: unknown error processing section 1
    "libmemcached/csl/scanner.l", line 40: bad character: <
    "libmemcached/csl/scanner.l", line 40: bad character: /
    "libmemcached/csl/scanner.l", line 40: bad character: /
    "libmemcached/csl/scanner.l", line 40: bad character: .
    "libmemcached/csl/scanner.l", line 40: bad character: >
    "libmemcached/csl/scanner.l", line 41: bad character: #
    ...

Please note the RHEL 5.9 comes with bison 2.3. I was able to build libmemcached 1.0.16 on RHEL 5.9 without any issues.

Thanks,

Ben

@m6w6 m6w6 added New build and removed New labels Jan 20, 2020
@m6w6
Copy link
Collaborator Author

m6w6 commented Oct 19, 2020

Lifted to 2.3 in db9fb0f

@m6w6 m6w6 closed this as completed Oct 19, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant