allen8807 / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

memcached 1.4.7 fails to build on OSX systems #222

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download source
2. Run configure
3. Watch it fail

What is the expected output? What do you see instead?

I expect it to succeed and build.  Instead it fails

What version of the product are you using? On what operating system?
1.4.7 on OSX 10.6 and 10.7

Please provide any additional information below.

Building memcached works perfectly with version 1.4.5.  It fails with version 
1.4.7 because it inserts -rpath lines which OSX doesn't understand:

configure:5874: gcc -std=gnu99 -o conftest -g -O2 -pthread 
-I/opt/zimbra/memcached-1.4.7/include  -L/opt/zimbra/memcached-1.4.7/lib  
-Wl,-rpath=/opt/zimbra/memcached-1.4.7/lib conftest.c -levent  >&5
ld: unknown option: -rpath=/opt/zimbra/memcached-1.4.7/lib
collect2: ld returned 1 exit status

Vs a 1.4.5 build:

configure:6838: gcc -std=gnu99 -o conftest -g -O2 -pthread 
-I/opt/zimbra/memcached-1.4.5/include  -L/opt/zimbra/memcached-1.4.5/lib  
conftest.c  -levent >&5

Original issue reported on code.google.com by quanah.g...@gmail.com on 7 Sep 2011 at 2:41

GoogleCodeExporter commented 9 years ago
Looks like it is due to this broken change in configure.ac:

configure.ac:                     [saved_LDFLAGS="$saved_LDFLAGS 
-Wl,-rpath=$ledir/lib"])])

Original comment by quanah.g...@gmail.com on 7 Sep 2011 at 2:41

GoogleCodeExporter commented 9 years ago
Hi, thanks for reporting the issue. Looks to me that this is a duplicate of 
issue 218, which has been fixed in trunk.  I am going to close it as a dup. 
Feel free to reopen this issue if you are seeing something different from 218.

Original comment by eric.d.l...@gmail.com on 7 Sep 2011 at 3:07