Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--disable-redis-session #137

Closed
silentroach opened this issue Mar 2, 2012 · 11 comments
Closed

--disable-redis-session #137

silentroach opened this issue Mar 2, 2012 · 11 comments
Labels

Comments

@silentroach
Copy link

I have php compiled without session support and I'm trying to compile phpredis also without session support with

./configure --disable-redis-session

But I have this message while compiling:

/root/phpredis/redis.c:31:37: fatal error: ext/session/php_session.h: No such file or directory
compilation terminated.

@nicolasff
Copy link
Member

Could you please try running make clean before running make again? I could not reproduce this issue with a fresh checkout of phpredis master.

Thanks.

@silentroach
Copy link
Author

Hm, can't find "--disable-redis-session" flag in trunk configure.

Full log:

(wrong log, cutter after)

@nicolasff
Copy link
Member

You're using the wrong project. Please clone nicolasff/phpredis.git, the branch you're using is a year old and not supported.

Thanks.

@silentroach
Copy link
Author

oh, sorry, clicked on the wrong link at the top :)

Corrected log:

silentvm ~ # git clone https://github.com/nicolasff/phpredis.git
Cloning into phpredis...
remote: Counting objects: 2453, done.
remote: Compressing objects: 100% (869/869), done.
remote: Total 2453 (delta 1646), reused 2365 (delta 1573)
Receiving objects: 100% (2453/2453), 532.22 KiB | 322 KiB/s, done.
Resolving deltas: 100% (1646/1646), done.

silentvm ~ # cd phpredis

silentvm phpredis # phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
configure.in:3: warning: prefer named diversions
configure.in:3: warning: prefer named diversions

silentvm phpredis # aclocal
configure.in:3: warning: prefer named diversions

silentvm phpredis # libtoolize --force
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.

silentvm phpredis # autoreconf
configure.in:3: warning: prefer named diversions
configure.in:3: warning: prefer named diversions
configure.in:3: warning: prefer named diversions
configure.in:3: warning: prefer named diversions

silentvm phpredis # ./configure --disable-redis-session
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... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr/lib/php5.3
checking for PHP includes... -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php5.3/lib/extensions/no-debug-non-zts-20090626
checking for PHP installed headers prefix... /usr/lib/php5.3/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable redis support... yes, shared
checking whether to enable sessions... no
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/i686-pc-linux-gnu/bin/ld) 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
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands

silentvm phpredis # make
/bin/sh /root/phpredis/libtool --mode=compile cc  -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /root/phpredis/redis.c -o redis.lo 
libtool: compile:  cc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/redis.c  -fPIC -DPIC -o .libs/redis.o
/bin/sh /root/phpredis/libtool --mode=compile cc  -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /root/phpredis/library.c -o library.lo 
libtool: compile:  cc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/library.c  -fPIC -DPIC -o .libs/library.o
/bin/sh /root/phpredis/libtool --mode=compile cc  -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /root/phpredis/redis_session.c -o redis_session.lo 
libtool: compile:  cc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/redis_session.c  -fPIC -DPIC -o .libs/redis_session.o
/bin/sh /root/phpredis/libtool --mode=compile cc  -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /root/phpredis/redis_array.c -o redis_array.lo 
libtool: compile:  cc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/redis_array.c  -fPIC -DPIC -o .libs/redis_array.o
/bin/sh /root/phpredis/libtool --mode=compile cc  -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /root/phpredis/redis_array_impl.c -o redis_array_impl.lo 
libtool: compile:  cc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/redis_array_impl.c  -fPIC -DPIC -o .libs/redis_array_impl.o
/bin/sh /root/phpredis/libtool --mode=compile cc  -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /root/phpredis/igbinary/igbinary.c -o igbinary/igbinary.lo 
libtool: compile:  cc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/igbinary/igbinary.c  -fPIC -DPIC -o igbinary/.libs/igbinary.o
/root/phpredis/igbinary/igbinary.c:16:37: fatal error: ext/session/php_session.h: No such file or directory
compilation terminated.
make: *** [igbinary/igbinary.lo] Error 1

nicolasff added a commit that referenced this issue Mar 11, 2012
@nicolasff
Copy link
Member

Thanks, that error log now makes a lot more sense! I added a fix, could you please try it out?

@silentroach
Copy link
Author

Thank you!

But there is something more to fix:

silentvm phpredis # make
/bin/sh /root/phpredis/libtool --mode=compile cc  -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /root/phpredis/redis.c -o redis.lo 
libtool: compile:  cc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/redis.c  -fPIC -DPIC -o .libs/redis.o
/bin/sh /root/phpredis/libtool --mode=compile cc  -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /root/phpredis/library.c -o library.lo 
libtool: compile:  cc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/library.c  -fPIC -DPIC -o .libs/library.o
/bin/sh /root/phpredis/libtool --mode=compile cc  -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /root/phpredis/redis_session.c -o redis_session.lo 
libtool: compile:  cc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/redis_session.c  -fPIC -DPIC -o .libs/redis_session.o
/bin/sh /root/phpredis/libtool --mode=compile cc  -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /root/phpredis/redis_array.c -o redis_array.lo 
libtool: compile:  cc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/redis_array.c  -fPIC -DPIC -o .libs/redis_array.o
/bin/sh /root/phpredis/libtool --mode=compile cc  -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /root/phpredis/redis_array_impl.c -o redis_array_impl.lo 
libtool: compile:  cc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/redis_array_impl.c  -fPIC -DPIC -o .libs/redis_array_impl.o
/bin/sh /root/phpredis/libtool --mode=compile cc  -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /root/phpredis/igbinary/igbinary.c -o igbinary/igbinary.lo 
libtool: compile:  cc -I. -I/root/phpredis -DPHP_ATOM_INC -I/root/phpredis/include -I/root/phpredis/main -I/root/phpredis -I/usr/lib/php5.3/include/php -I/usr/lib/php5.3/include/php/main -I/usr/lib/php5.3/include/php/TSRM -I/usr/lib/php5.3/include/php/Zend -I/usr/lib/php5.3/include/php/ext -I/usr/lib/php5.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/phpredis/igbinary/igbinary.c  -fPIC -DPIC -o igbinary/.libs/igbinary.o
/root/phpredis/igbinary/igbinary.c:34:1: warning: data definition has no type or storage class
/root/phpredis/igbinary/igbinary.c:34:1: warning: parameter names (without types) in function declaration
/root/phpredis/igbinary/igbinary.c: In function 'PS_SERIALIZER_ENCODE_FUNC':
/root/phpredis/igbinary/igbinary.c:356:37: error: 'http_session_vars' undeclared (first use in this function)
/root/phpredis/igbinary/igbinary.c:356:37: note: each undeclared identifier is reported only once for each function it appears in
/root/phpredis/igbinary/igbinary.c:358:6: error: 'newlen' undeclared (first use in this function)
/root/phpredis/igbinary/igbinary.c:361:3: error: 'newstr' undeclared (first use in this function)
/root/phpredis/igbinary/igbinary.c: In function 'PS_SERIALIZER_DECODE_FUNC':
/root/phpredis/igbinary/igbinary.c:384:7: error: 'val' undeclared (first use in this function)
/root/phpredis/igbinary/igbinary.c:384:14: error: 'vallen' undeclared (first use in this function)
make: *** [igbinary/igbinary.lo] Error 1

@nicolasff
Copy link
Member

A compilation check was missing, it should hopefully work now.

I'd like to be able to reproduce these myself if possible, could you please post your ./configure line from phpinfo()? That would be helpful as I'm fixing things in the dark right now.

Thanks.

nicolasff added a commit that referenced this issue Mar 12, 2012
@silentroach
Copy link
Author

Configure Command => './configure' '--prefix=/usr' '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--prefix=/usr/lib/php5.3' '--mandir=/usr/lib/php5.3/man' '--infodir=/usr/lib/php5.3/info' '--libdir=/usr/lib/php5.3/lib' '--with-libdir=lib' '--without-pear' '--disable-maintainer-zts' '--disable-bcmath' '--without-bz2' '--disable-calendar' '--enable-ctype' '--with-curl' '--with-curlwrappers' '--enable-dom' '--without-enchant' '--enable-exif' '--enable-fileinfo' '--enable-filter' '--disable-ftp' '--with-gettext' '--without-gmp' '--enable-hash' '--without-mhash' '--with-iconv' '--disable-intl' '--disable-ipv6' '--enable-json' '--without-kerberos' '--enable-libxml' '--enable-mbstring' '--with-mcrypt' '--without-mssql' '--with-onig=/usr' '--without-openssl' '--without-openssl-dir' '--enable-pcntl' '--disable-phar' '--disable-pdo' '--with-pgsql' '--enable-posix' '--without-pspell' '--without-recode' '--enable-simplexml' '--enable-shmop' '--without-snmp' '--disable-soap' '--disable-sockets' '--without-sqlite' '--without-sqlite3' '--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm' '--without-tidy' '--enable-tokenizer' '--disable-wddx' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--without-xmlrpc' '--with-xsl' '--enable-zip' '--with-zlib' '--disable-debug' '--without-cdb' '--without-db4' '--disable-flatfile' '--without-gdbm' '--disable-inifile' '--without-qdbm' '--with-freetype-dir=/usr' '--with-t1lib=/usr' '--disable-gd-jis-conv' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--without-xpm-dir' '--with-gd' '--with-mysqli=mysqlnd' '--with-readline' '--without-libedit' '--disable-session' '--with-pcre-regex=/usr' '--with-pcre-dir=/usr' '--with-config-file-path=/etc/php/cli-php5.3' '--with-config-file-scan-dir=/etc/php/cli-php5.3/ext-active' '--disable-embed' '--enable-cli' '--disable-cgi' '--disable-fpm' '--without-apxs2'

@silentroach
Copy link
Author

Great, now with your last changes it compiles!

Thanks a lot!

@nicolasff
Copy link
Member

Thanks for your help!

@silentroach
Copy link
Author

Again me :)

It seems like this issue continue.
Now I'm trying to install phpredis with --disable-redis-session, but on another system (php is compiled with sessions support).

And I get:

libtool: compile: cc -I. -I/home/silent/Projects/phpredis -DPHP_ATOM_INC -I/home/silent/Projects/phpredis/include -I/home/silent/Projects/phpredis/main -I/home/silent/Projects/phpredis -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/silent/Projects/phpredis/igbinary/igbinary.c -fPIC -DPIC -o igbinary/.libs/igbinary.o
/home/silent/Projects/phpredis/igbinary/igbinary.c:35:1: warning: data definition has no type or storage class [enabled by default]
/home/silent/Projects/phpredis/igbinary/igbinary.c:35:1: warning: parameter names (without types) in function declaration [enabled by default]
/home/silent/Projects/phpredis/igbinary/igbinary.c: In function 'zm_startup_igbinary':
/home/silent/Projects/phpredis/igbinary/igbinary.c:210:29: error: 'igbinary' undeclared (first use in this function)
/home/silent/Projects/phpredis/igbinary/igbinary.c:210:29: note: each undeclared identifier is reported only once for each function it appears in
/home/silent/Projects/phpredis/igbinary/igbinary.c: In function 'PS_SERIALIZER_ENCODE_FUNC':
/home/silent/Projects/phpredis/igbinary/igbinary.c:359:37: error: 'http_session_vars' undeclared (first use in this function)
/home/silent/Projects/phpredis/igbinary/igbinary.c:361:6: error: 'newlen' undeclared (first use in this function)
/home/silent/Projects/phpredis/igbinary/igbinary.c:364:3: error: 'newstr' undeclared (first use in this function)
/home/silent/Projects/phpredis/igbinary/igbinary.c: In function 'PS_SERIALIZER_DECODE_FUNC':
/home/silent/Projects/phpredis/igbinary/igbinary.c:389:7: error: 'val' undeclared (first use in this function)
/home/silent/Projects/phpredis/igbinary/igbinary.c:389:14: error: 'vallen' undeclared (first use in this function)
make: *** [igbinary/igbinary.lo] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants