[Klug-general] Updating PHP

Nathan Friend nathan.friend at gmail.com
Thu Oct 2 19:26:35 UTC 2008


I'm attempting to upgrade PHP 4.4.0 on my server to 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.lug.org.uk/pipermail/kent/attachments/20081002/ea6ada18/attachment.htm 


More information about the Kent mailing list