laruence / yac

A fast, lock-free, shared memory user data cache for PHP
Other
825 stars 199 forks source link

no builtin shared memory supported #46

Open chaosue opened 9 years ago

chaosue commented 9 years ago

cannot be built statically, but built as a "so" is ok.

huruihang commented 6 years ago

php-7.2.1 静态编译报错

In file included from /root/huruihang-php-src/tmp/ext/php-ext-yac/storage/allocator/allocators/shm.c:20:0: ext/php-ext-yac/storage/allocator/yac_allocator.h:46:2: 错误:#error (no builtin shared memory supported)

error(no builtin shared memory supported)

^~~~~ make: *** [Makefile:1303:ext/php-ext-yac/storage/allocator/allocators/shm.lo] 错误 1

./configure \ --disable-cgi --disable-phpdbg --disable-phar --disable-short-tags \ --without-pear --without-sqlite3 --without-pdo-sqlite --without-iconv \ --with-curl --with-openssl --with-pdo-mysql --with-libzip --with-zlib --with-swoole --with-jemalloc-dir=jemalloc \ --enable-bcmath --enable-sockets --enable-openssl --enable-mbstring --enable-mysqlnd --enable-zip \ --enable-redis --enable-phpiredis --enable-hprose --enable-thrift_protocol --enable-yac --enable-yaconf \ --enable-swoole-static --enable-async-redis --enable-coroutine