Fail to complie nginx with google-perftools

Wendal Chen wendal1985 at gmail.com
Thu Aug 4 01:03:01 UTC 2011


I compile nginx with  google-perftools 1.8.1

    ./configure  --with-cc-opt=-ltcmalloc
    make

It fail in 1.0.2 ~ 1.1.0 :
objs/src/core/ngx_shmtx.o: In function `ngx_shmtx_unlock':
/root/nginx-1.1.0/src/core/ngx_shmtx.c:170: undefined reference to
`sem_post'
objs/src/core/ngx_shmtx.o: In function `ngx_shmtx_lock':
/root/nginx-1.1.0/src/core/ngx_shmtx.c:115: undefined reference to
`sem_wait'
objs/src/core/ngx_shmtx.o: In function `ngx_shmtx_destory':
/root/nginx-1.1.0/src/core/ngx_shmtx.c:46: undefined reference to
`sem_destroy'
objs/src/core/ngx_shmtx.o: In function `ngx_shmtx_create':
/root/nginx-1.1.0/src/core/ngx_shmtx.c:27: undefined reference to `sem_init'


--
Thanks,
Wendal Chen
<http://t.sina.com.cn/1068040557?s=6uyXnP>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20110804/5b4e3e47/attachment-0001.html>


More information about the nginx mailing list