laruence / yac

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

Compile error with pecl install on travis #54

Closed marc-mabe closed 7 years ago

marc-mabe commented 8 years ago

See https://travis-ci.org/marc-mabe/zend-cache/jobs/98510360 (search for $ if [[ $PECL_INSTALL_YAC != '' ]]; then pecl install $PECL_INSTALL_YAC && phpenv config-add .ci/yac.ini || return 0 ; fi)

Output for yac-2.0.0 on PHP 7:

$ if [[ $PECL_INSTALL_YAC != '' ]]; then pecl install $PECL_INSTALL_YAC && phpenv config-add .ci/yac.ini || return 0 ; fi

downloading yac-2.0.0.tgz ...

Starting to download yac-2.0.0.tgz (32,600 bytes)

.........done: 32,600 bytes

16 source files, building

running: phpize

Configuring for:

PHP Api Version:         20151012

Zend Module Api No:      20151012

Zend Extension Api No:   320151012

building in /tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0

running: /tmp/pear/temp/yac/configure --with-php-config=/home/travis/.phpenv/versions/7.0.0/bin/php-config

checking for grep that handles long lines and -e... /bin/grep

checking for egrep... /bin/grep -E

checking for a sed that does not truncate output... /bin/sed

checking for cc... cc

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables...

checking whether we are cross compiling... no

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether cc accepts -g... yes

checking for cc option to accept ISO C89... none needed

checking how to run the C preprocessor... cc -E

checking for icc... no

checking for suncc... no

checking whether cc understands -c and -o together... yes

checking for system library directory... lib

checking if compiler supports -R... no

checking if compiler supports -Wl,-rpath,... yes

checking build system type... x86_64-unknown-linux-gnu

checking host system type... x86_64-unknown-linux-gnu

checking target system type... x86_64-unknown-linux-gnu

checking for PHP prefix... /home/travis/.phpenv/versions/7.0.0

checking for PHP includes... -I/home/travis/.phpenv/versions/7.0.0/include/php -I/home/travis/.phpenv/versions/7.0.0/include/php/main -I/home/travis/.phpenv/versions/7.0.0/include/php/TSRM -I/home/travis/.phpenv/versions/7.0.0/include/php/Zend -I/home/travis/.phpenv/versions/7.0.0/include/php/ext -I/home/travis/.phpenv/versions/7.0.0/include/php/ext/date/lib

checking for PHP extension directory... /home/travis/.phpenv/versions/7.0.0/lib/php/extensions/no-debug-zts-20151012

checking for PHP installed headers prefix... /home/travis/.phpenv/versions/7.0.0/include/php

checking if debug is enabled... no

checking if zts is enabled... yes

checking for re2c... re2c

checking for re2c version... 0.13.5 (ok)

checking for gawk... gawk

checking whether to enable yac support... yes, shared

checking wheter to use system FastLZ bibrary... no

checking for sysvipc shared memory support... yes

checking for mmap() using MAP_ANON shared memory support... yes

checking for mmap() using /dev/zero shared memory support... yes

checking for ld used by cc... /usr/bin/ld

checking if the linker (/usr/bin/ld) is GNU ld... yes

checking for /usr/bin/ld option to reload object files... -r

checking for BSD-compatible nm... /usr/bin/nm -B

checking whether ln -s works... yes

checking how to recognize dependent libraries... pass_all

checking dlfcn.h usability... yes

checking dlfcn.h presence... yes

checking for dlfcn.h... yes

checking the maximum length of command line arguments... 1572864

checking command to parse /usr/bin/nm -B output from cc object... ok

checking for objdir... .libs

checking for ar... ar

checking for ranlib... ranlib

checking for strip... strip

checking if cc supports -fno-rtti -fno-exceptions... no

checking for cc option to produce PIC... -fPIC

checking if cc PIC flag -fPIC works... yes

checking if cc static flag -static works... yes

checking if cc supports -c -o file.o... yes

checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes

checking whether -lc should be explicitly linked in... no

checking dynamic linker characteristics... GNU/Linux ld.so

checking how to hardcode library paths into programs... immediate

checking whether stripping libraries is possible... yes

checking if libtool supports shared libraries... yes

checking whether to build shared libraries... yes

checking whether to build static libraries... no

creating libtool

appending configuration tag "CXX" to libtool

configure: creating ./config.status

config.status: creating config.h

running: make

/bin/bash /tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/libtool --mode=compile cc  -I. -I/tmp/pear/temp/yac -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/include -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/main -I/tmp/pear/temp/yac -I/home/travis/.phpenv/versions/7.0.0/include/php -I/home/travis/.phpenv/versions/7.0.0/include/php/main -I/home/travis/.phpenv/versions/7.0.0/include/php/TSRM -I/home/travis/.phpenv/versions/7.0.0/include/php/Zend -I/home/travis/.phpenv/versions/7.0.0/include/php/ext -I/home/travis/.phpenv/versions/7.0.0/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/yac/yac.c -o yac.lo

mkdir .libs

 cc -I. -I/tmp/pear/temp/yac -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/include -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/main -I/tmp/pear/temp/yac -I/home/travis/.phpenv/versions/7.0.0/include/php -I/home/travis/.phpenv/versions/7.0.0/include/php/main -I/home/travis/.phpenv/versions/7.0.0/include/php/TSRM -I/home/travis/.phpenv/versions/7.0.0/include/php/Zend -I/home/travis/.phpenv/versions/7.0.0/include/php/ext -I/home/travis/.phpenv/versions/7.0.0/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/yac/yac.c  -fPIC -DPIC -o .libs/yac.o

/bin/bash /tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/libtool --mode=compile cc  -I. -I/tmp/pear/temp/yac -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/include -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/main -I/tmp/pear/temp/yac -I/home/travis/.phpenv/versions/7.0.0/include/php -I/home/travis/.phpenv/versions/7.0.0/include/php/main -I/home/travis/.phpenv/versions/7.0.0/include/php/TSRM -I/home/travis/.phpenv/versions/7.0.0/include/php/Zend -I/home/travis/.phpenv/versions/7.0.0/include/php/ext -I/home/travis/.phpenv/versions/7.0.0/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/yac/storage/yac_storage.c -o storage/yac_storage.lo

mkdir storage/.libs

 cc -I. -I/tmp/pear/temp/yac -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/include -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/main -I/tmp/pear/temp/yac -I/home/travis/.phpenv/versions/7.0.0/include/php -I/home/travis/.phpenv/versions/7.0.0/include/php/main -I/home/travis/.phpenv/versions/7.0.0/include/php/TSRM -I/home/travis/.phpenv/versions/7.0.0/include/php/Zend -I/home/travis/.phpenv/versions/7.0.0/include/php/ext -I/home/travis/.phpenv/versions/7.0.0/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/yac/storage/yac_storage.c  -fPIC -DPIC -o storage/.libs/yac_storage.o

/bin/bash /tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/libtool --mode=compile cc  -I. -I/tmp/pear/temp/yac -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/include -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/main -I/tmp/pear/temp/yac -I/home/travis/.phpenv/versions/7.0.0/include/php -I/home/travis/.phpenv/versions/7.0.0/include/php/main -I/home/travis/.phpenv/versions/7.0.0/include/php/TSRM -I/home/travis/.phpenv/versions/7.0.0/include/php/Zend -I/home/travis/.phpenv/versions/7.0.0/include/php/ext -I/home/travis/.phpenv/versions/7.0.0/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/yac/storage/allocator/yac_allocator.c -o storage/allocator/yac_allocator.lo

mkdir storage/allocator/.libs

 cc -I. -I/tmp/pear/temp/yac -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/include -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/main -I/tmp/pear/temp/yac -I/home/travis/.phpenv/versions/7.0.0/include/php -I/home/travis/.phpenv/versions/7.0.0/include/php/main -I/home/travis/.phpenv/versions/7.0.0/include/php/TSRM -I/home/travis/.phpenv/versions/7.0.0/include/php/Zend -I/home/travis/.phpenv/versions/7.0.0/include/php/ext -I/home/travis/.phpenv/versions/7.0.0/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/yac/storage/allocator/yac_allocator.c  -fPIC -DPIC -o storage/allocator/.libs/yac_allocator.o

/bin/bash /tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/libtool --mode=compile cc  -I. -I/tmp/pear/temp/yac -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/include -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/main -I/tmp/pear/temp/yac -I/home/travis/.phpenv/versions/7.0.0/include/php -I/home/travis/.phpenv/versions/7.0.0/include/php/main -I/home/travis/.phpenv/versions/7.0.0/include/php/TSRM -I/home/travis/.phpenv/versions/7.0.0/include/php/Zend -I/home/travis/.phpenv/versions/7.0.0/include/php/ext -I/home/travis/.phpenv/versions/7.0.0/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/yac/storage/allocator/allocators/shm.c -o storage/allocator/allocators/shm.lo

mkdir storage/allocator/allocators/.libs

 cc -I. -I/tmp/pear/temp/yac -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/include -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/main -I/tmp/pear/temp/yac -I/home/travis/.phpenv/versions/7.0.0/include/php -I/home/travis/.phpenv/versions/7.0.0/include/php/main -I/home/travis/.phpenv/versions/7.0.0/include/php/TSRM -I/home/travis/.phpenv/versions/7.0.0/include/php/Zend -I/home/travis/.phpenv/versions/7.0.0/include/php/ext -I/home/travis/.phpenv/versions/7.0.0/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/yac/storage/allocator/allocators/shm.c  -fPIC -DPIC -o storage/allocator/allocators/.libs/shm.o

/bin/bash /tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/libtool --mode=compile cc  -I. -I/tmp/pear/temp/yac -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/include -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/main -I/tmp/pear/temp/yac -I/home/travis/.phpenv/versions/7.0.0/include/php -I/home/travis/.phpenv/versions/7.0.0/include/php/main -I/home/travis/.phpenv/versions/7.0.0/include/php/TSRM -I/home/travis/.phpenv/versions/7.0.0/include/php/Zend -I/home/travis/.phpenv/versions/7.0.0/include/php/ext -I/home/travis/.phpenv/versions/7.0.0/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/yac/storage/allocator/allocators/mmap.c -o storage/allocator/allocators/mmap.lo

 cc -I. -I/tmp/pear/temp/yac -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/include -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/main -I/tmp/pear/temp/yac -I/home/travis/.phpenv/versions/7.0.0/include/php -I/home/travis/.phpenv/versions/7.0.0/include/php/main -I/home/travis/.phpenv/versions/7.0.0/include/php/TSRM -I/home/travis/.phpenv/versions/7.0.0/include/php/Zend -I/home/travis/.phpenv/versions/7.0.0/include/php/ext -I/home/travis/.phpenv/versions/7.0.0/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/yac/storage/allocator/allocators/mmap.c  -fPIC -DPIC -o storage/allocator/allocators/.libs/mmap.o

/bin/bash /tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/libtool --mode=compile cc  -I. -I/tmp/pear/temp/yac -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/include -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/main -I/tmp/pear/temp/yac -I/home/travis/.phpenv/versions/7.0.0/include/php -I/home/travis/.phpenv/versions/7.0.0/include/php/main -I/home/travis/.phpenv/versions/7.0.0/include/php/TSRM -I/home/travis/.phpenv/versions/7.0.0/include/php/Zend -I/home/travis/.phpenv/versions/7.0.0/include/php/ext -I/home/travis/.phpenv/versions/7.0.0/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/yac/serializer/php.c -o serializer/php.lo

mkdir serializer/.libs

 cc -I. -I/tmp/pear/temp/yac -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/include -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/main -I/tmp/pear/temp/yac -I/home/travis/.phpenv/versions/7.0.0/include/php -I/home/travis/.phpenv/versions/7.0.0/include/php/main -I/home/travis/.phpenv/versions/7.0.0/include/php/TSRM -I/home/travis/.phpenv/versions/7.0.0/include/php/Zend -I/home/travis/.phpenv/versions/7.0.0/include/php/ext -I/home/travis/.phpenv/versions/7.0.0/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/yac/serializer/php.c  -fPIC -DPIC -o serializer/.libs/php.o

/bin/bash /tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/libtool --mode=compile cc  -I. -I/tmp/pear/temp/yac -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/include -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/main -I/tmp/pear/temp/yac -I/home/travis/.phpenv/versions/7.0.0/include/php -I/home/travis/.phpenv/versions/7.0.0/include/php/main -I/home/travis/.phpenv/versions/7.0.0/include/php/TSRM -I/home/travis/.phpenv/versions/7.0.0/include/php/Zend -I/home/travis/.phpenv/versions/7.0.0/include/php/ext -I/home/travis/.phpenv/versions/7.0.0/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/yac/serializer/msgpack.c -o serializer/msgpack.lo

 cc -I. -I/tmp/pear/temp/yac -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/include -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/main -I/tmp/pear/temp/yac -I/home/travis/.phpenv/versions/7.0.0/include/php -I/home/travis/.phpenv/versions/7.0.0/include/php/main -I/home/travis/.phpenv/versions/7.0.0/include/php/TSRM -I/home/travis/.phpenv/versions/7.0.0/include/php/Zend -I/home/travis/.phpenv/versions/7.0.0/include/php/ext -I/home/travis/.phpenv/versions/7.0.0/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/yac/serializer/msgpack.c  -fPIC -DPIC -o serializer/.libs/msgpack.o

/bin/bash /tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/libtool --mode=compile cc  -I. -I/tmp/pear/temp/yac -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/include -I/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/main -I/tmp/pear/temp/yac -I/home/travis/.phpenv/versions/7.0.0/include/php -I/home/travis/.phpenv/versions/7.0.0/include/php/main -I/home/travis/.phpenv/versions/7.0.0/include/php/TSRM -I/home/travis/.phpenv/versions/7.0.0/include/php/Zend -I/home/travis/.phpenv/versions/7.0.0/include/php/ext -I/home/travis/.phpenv/versions/7.0.0/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/yac/compressor/fastlz/fastlz.c -o compressor/fastlz/fastlz.lo

/tmp/pear/temp/pear-build-travisWjsBm6/yac-2.0.0/libtool: line 1283: compressor/fastlz/fastlz.loT: No such file or directory

mkdir compressor/fastlz/.libs

mkdir: cannot create directory `compressor/fastlz/.libs': No such file or directory

make: *** [compressor/fastlz/fastlz.lo] Error 1

ERROR: `make' failed

Output for yac-0.9.2 on PHP 5:

$ if [[ $PECL_INSTALL_YAC != '' ]]; then pecl install $PECL_INSTALL_YAC && phpenv config-add .ci/yac.ini || return 0 ; fi

WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update

downloading yac-0.9.2.tgz ...

Starting to download yac-0.9.2.tgz (34,822 bytes)

.........done: 34,822 bytes

18 source files, building

running: phpize

Configuring for:

PHP Api Version:         20121113

Zend Module Api No:      20121212

Zend Extension Api No:   220121212

building in /tmp/pear/temp/pear-build-travistT8kbp/yac-0.9.2

running: /tmp/pear/temp/yac/configure

checking for grep that handles long lines and -e... /bin/grep

checking for egrep... /bin/grep -E

checking for a sed that does not truncate output... /bin/sed

checking for cc... cc

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables...

checking whether we are cross compiling... no

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether cc accepts -g... yes

checking for cc option to accept ISO C89... none needed

checking how to run the C preprocessor... cc -E

checking for icc... no

checking for suncc... no

checking whether cc understands -c and -o together... yes

checking for system library directory... lib

checking if compiler supports -R... no

checking if compiler supports -Wl,-rpath,... yes

checking build system type... x86_64-unknown-linux-gnu

checking host system type... x86_64-unknown-linux-gnu

checking target system type... x86_64-unknown-linux-gnu

checking for PHP prefix... /home/travis/.phpenv/versions/5.5.21

checking for PHP includes... -I/home/travis/.phpenv/versions/5.5.21/include/php -I/home/travis/.phpenv/versions/5.5.21/include/php/main -I/home/travis/.phpenv/versions/5.5.21/include/php/TSRM -I/home/travis/.phpenv/versions/5.5.21/include/php/Zend -I/home/travis/.phpenv/versions/5.5.21/include/php/ext -I/home/travis/.phpenv/versions/5.5.21/include/php/ext/date/lib

checking for PHP extension directory... /home/travis/.phpenv/versions/5.5.21/lib/php/extensions/no-debug-zts-20121212

checking for PHP installed headers prefix... /home/travis/.phpenv/versions/5.5.21/include/php

checking if debug is enabled... no

checking if zts is enabled... no

checking for re2c... re2c

checking for re2c version... 0.13.5 (ok)

checking for gawk... gawk

checking whether to enable yac support... yes, shared

checking wheter to use system FastLZ bibrary... no

checking for sysvipc shared memory support... yes

checking for mmap() using MAP_ANON shared memory support... yes

checking for mmap() using /dev/zero shared memory support... yes

checking for ld used by cc... /usr/bin/ld

checking if the linker (/usr/bin/ld) is GNU ld... yes

checking for /usr/bin/ld option to reload object files... -r

checking for BSD-compatible nm... /usr/bin/nm -B

checking whether ln -s works... yes

checking how to recognize dependent libraries... pass_all

checking dlfcn.h usability... yes

checking dlfcn.h presence... yes

checking for dlfcn.h... yes

checking the maximum length of command line arguments... 1572864

checking command to parse /usr/bin/nm -B output from cc object... ok

checking for objdir... .libs

checking for ar... ar

checking for ranlib... ranlib

checking for strip... strip

checking if cc supports -fno-rtti -fno-exceptions... no

checking for cc option to produce PIC... -fPIC

checking if cc PIC flag -fPIC works... yes

checking if cc static flag -static works... yes

checking if cc supports -c -o file.o... yes

checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes

checking whether -lc should be explicitly linked in... no

checking dynamic linker characteristics... GNU/Linux ld.so

checking how to hardcode library paths into programs... immediate

checking whether stripping libraries is possible... yes

checking if libtool supports shared libraries... yes

checking whether to build shared libraries... yes

checking whether to build static libraries... no

creating libtool

appending configuration tag "CXX" to libtool

configure: creating ./config.status

config.status: creating config.h

running: make

/bin/bash /tmp/pear/temp/pear-build-travistT8kbp/yac-0.9.2/libtool --mode=compile cc  -I. -I/tmp/pear/temp/yac -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travistT8kbp/yac-0.9.2/include -I/tmp/pear/temp/pear-build-travistT8kbp/yac-0.9.2/main -I/tmp/pear/temp/yac -I/home/travis/.phpenv/versions/5.5.21/include/php -I/home/travis/.phpenv/versions/5.5.21/include/php/main -I/home/travis/.phpenv/versions/5.5.21/include/php/TSRM -I/home/travis/.phpenv/versions/5.5.21/include/php/Zend -I/home/travis/.phpenv/versions/5.5.21/include/php/ext -I/home/travis/.phpenv/versions/5.5.21/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/yac/yac.c -o yac.lo

mkdir .libs

 cc -I. -I/tmp/pear/temp/yac -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travistT8kbp/yac-0.9.2/include -I/tmp/pear/temp/pear-build-travistT8kbp/yac-0.9.2/main -I/tmp/pear/temp/yac -I/home/travis/.phpenv/versions/5.5.21/include/php -I/home/travis/.phpenv/versions/5.5.21/include/php/main -I/home/travis/.phpenv/versions/5.5.21/include/php/TSRM -I/home/travis/.phpenv/versions/5.5.21/include/php/Zend -I/home/travis/.phpenv/versions/5.5.21/include/php/ext -I/home/travis/.phpenv/versions/5.5.21/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/yac/yac.c  -fPIC -DPIC -o .libs/yac.o

/bin/bash /tmp/pear/temp/pear-build-travistT8kbp/yac-0.9.2/libtool --mode=compile cc  -I. -I/tmp/pear/temp/yac -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-travistT8kbp/yac-0.9.2/include -I/tmp/pear/temp/pear-build-travistT8kbp/yac-0.9.2/main -I/tmp/pear/temp/yac -I/home/travis/.phpenv/versions/5.5.21/include/php -I/home/travis/.phpenv/versions/5.5.21/include/php/main -I/home/travis/.phpenv/versions/5.5.21/include/php/TSRM -I/home/travis/.phpenv/versions/5.5.21/include/php/Zend -I/home/travis/.phpenv/versions/5.5.21/include/php/ext -I/home/travis/.phpenv/versions/5.5.21/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/yac/storage/yac_storage.c -o storage/yac_storage.lo

/tmp/pear/temp/pear-build-travistT8kbp/yac-0.9.2/libtool: line 1283: storage/yac_storage.loT: No such file or directory

mkdir storage/.libs

mkdir: cannot create directory `storage/.libs': No such file or directory

make: *** [storage/yac_storage.lo] Error 1

ERROR: `make' failed
ohyang326 commented 7 years ago

这个错误在yac-0.9.2 也会有,只修复2.0.1之后的吗?应该好多项目都没切php7.0,是不是也需要修改0.9.2?

laruence commented 7 years ago

0.9.2的可以自己编译, 不要用pecl install

laruence commented 7 years ago

当然我回头再发个给5.5的0.9.3

Glavin001 commented 6 years ago

I was able to install Yac for PHP 5.4 with the following:

apt-get install -y php5-dev
git clone https://github.com/laruence/yac.git
git checkout php5
/path/to/bin/phpize
./configure --with-php-config=/path/to/bin/php-config
make && make install
make test

Hope this helps someone else!