igbinary/igbinary — Issue #12: Static Compile Error without Session Extension
Author: revnode
Created: 2012-01-11 23:25:28+00:00
State: open

This is for PHP 5.3.9 when compiling igbinary statically into the PHP binary. When the session extension is disabled with --disable-session the build fails with:

ext/igbinary/igbinary.o: In function `ps_srlzr_decode_igbinary':
igbinary.c:(.text+0x26da): undefined reference to `php_set_session_var'
igbinary.c:(.text+0x26f1): undefined reference to `php_add_session_var'
ext/igbinary/igbinary.o: In function `ps_srlzr_encode_igbinary':
igbinary.c:(.text+0x5f32): undefined reference to `ps_globals'
collect2: ld returned 1 exit status
make: *** [sapi/fpm/php-fpm] Error 1

It looks like igbinary depends on the session extension. The build succeeds when session support is enabled. Is it possible to remove the dependency on the session extension or to make it conditional? We want to disable session support since we don't use it.

Thank you for your help!