[Klug-general] Updating PHP
AllenJB
allen at allenjb.me.uk
Fri Oct 3 09:05:11 UTC 2008
You have '--disable-session', which is disabling session support.
Judging from the error messages, sqlite support requires session support.
Other issues:
You should check the output of "./configure --help" to see if there are
replacements for the options that have been removed. From the looks of
it, using your new set of options will compile a CGI module, not an
Apache2 module. Also make sure that the libraries are where configure
looks for them. Consult Suse experts for this information.
You're enabling magic_quotes. Be aware that this feature is deprecated
and will be removed in PHP6 (finally!). Safe mode is also gone in PHP6.
Memory limit is now a purely configure-time option. Iy no longer needs
to be enabled at compile-time.
AllenJB
Nathan Friend wrote:
> I'm attempting to upgrade PHP 4.4.0 on my server to 5.2.6.
> <http://5.2.6.> My configure command was:
>
> './configure' '--prefix=/usr' '--datadir=/usr/share/php'
> '--mandir=/usr/share/man' '--bindir=/usr/bin' '--libdir=/usr/share'
> '--includedir=/usr/include' '--sysconfdir=/etc' '--with-_lib=lib'
> '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin'
> '--disable-debug' '--enable-inline-optimization' '--enable-memory-limit'
> '--enable-magic-quotes' '--enable-safe-mode' '--enable-sigchild'
> '--disable-ctype' '--disable-session' '--without-mysql' '--disable-cli'
> '--without-pear' '--with-openssl' '--with-apxs2=/usr/sbin/apxs2-prefork'
> 'i586-suse-linux'
>
> But I had to take out
> '--with-openssl'
> '--with-apxs2=/usr/sbin/apxs2-prefork'
> '--with-_lib=lib'
> '--enable-memory-limit'
>
> and add
> --enable-force-cgi-redirect
>
> for it to work without errors or warnings. I guess there have been a
> lot of changes in PHP since 4.4.0!
>
> When I run make all looks good until:
>
> ext/sqlite/sqlite.o: In function `zm_startup_sqlite':
> /php-5.2.6/ext/sqlite/sqlite.c:1065: undefined reference to
> `php_session_register_module'
> ext/sqlite/sess_sqlite.o: In function `ps_gc_sqlite':
> /php-5.2.6/ext/sqlite/sess_sqlite.c:186: undefined reference to `ps_globals'
> /php-5.2.6/ext/sqlite/sess_sqlite.c:186: undefined reference to `ps_globals'
> ext/sqlite/sess_sqlite.o:(.data+0x1c): undefined reference to
> `php_session_create_id'
> collect2: ld returned 1 exit status
> make: *** [sapi/cgi/php-cgi] Error 1
>
> Any ideas?
>
> Cheers,
>
> Nathan.
More information about the Kent
mailing list