Comment #3 on issue 312 by [email protected]: reopening: Configure fails on AIX 6.1 with libevent path specified : Can't enable thread without POSIX thread library
http://code.google.com/p/memcached/issues/detail?id=312

When using gcc it seems the -pthread options are passed to ld. From config.log:

configure:5976: checking for library containing pthread_create
configure:6007: /lppdir/src/memcached/memcached/compile gcc -std=gnu99 -o conftest -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include -maix64 -pthread -pthread -I/usr/local/include -L/usr/local/lib -L/opt/freeware/lib64 -L/opt/f
reeware/lib -Wl,-rpath,/usr/local/lib conftest.c -levent  >&5
ld: 0706-012 The -p flag is not recognized.
ld: 0706-012 The -a flag is not recognized.
ld: 0706-012 The -t flag is not recognized.
ld: 0706-012 The -h flag is not recognized.
collect2: error: ld returned 255 exit status
configure:6007: $? = 1

When using IBM xlC 12.1 configure runs fine but compiling fails with this error:

"memcached.h", line 519.6: 1506-343 (S) Redeclaration of thread_init differs from previous declaration on line 1063 of "/usr/include/sys/thread.h". "memcached.h", line 519.6: 1506-377 (I) The type "int" of parameter 1 differs from the previous type "unsigned long long".

It seems thread_init from memcached is conflicting with the AIX version. I managed to compile and run memcached by applying the attached patch.


Attachments:
        memcached-1.4.17-aix.patch  1.4 KB

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to