[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] RaQ4, PHP and IMAP with StackGuard



I compiled PHP 4.3.0 with Stackguard and static IMAP ... here is a link
to the Tarball

http://www.edutaine.net/downloads/php430.tar.gz

which includes modules and is compiled with this options:
./configure
--prefix=/usr
--enable-magic-quotes
--enable-mbstr-enc-trans
--enable-mbstring
--enable-mm=shared
--enable-calendar
--enable-dba
--enable-dbase
--enable-dbx
--enable-ftp
--enable-gd-native-ttf
--enable-inline-optimization
--enable-safe-mode
--enable-track-vars
--enable-trans-sid
--enable-wddx=shared
--enable-xml
--disable-debug
--with-apxs=/usr/sbin/apxs
--with-config-file-path=/etc/httpd
--with-curl=shared
--with-dba
--with-db3=/usr/include/
--with-exec-dir=/usr/bin
--with-flatfile
--with-freetype-dir=/usr/local/freetype2
--with-gd
--with-gettext=/usr
--with-gdbm
--with-imap
--with-interbase=shared
--with-jpeg-dir=/usr/lib
--with-kerberos
--with-ldap=shared
--with-libdir=/usr/lib
--with-mbstr-enc-trans
--with-mbstring
--with-mcrypt
--with-ming
--with-mysql
--with-openssl=/usr/local/ssl
--with-pdflib=shared
--with-png-dir=/usr/lib
--with-pgsql=shared
--with-regex=system
--with-ttf=/usr/include/freetype
--with-t1lib=/usr/local/t1lib
--with-tiff-dir=/usr/lib
--with-zlib
--with-xpm-dir=/usr/lib

Use it at your own risc ... I by myself use it on a Cobalt RaQ4 without
any problem so far.
Maybe you need also additional modules like freetype ... report any
error and I will
include the neccessary files to the Archive

regards

Jeremy Wadsack schrieb:

>I have spent two days searching the web, list archives, support
>forums, etc. and have not found any solutions that work yet.
>
>Has anyone successfully installed PHP 4.3.0 (or later) on a RaQ with
>the newer StackGuarded binaries?
>
>The problem is that the imap and imap-devel libs (c-client.a and
>libc-client.a in particular) were built with StackGuard to protect
>buffer overflow vulnerabilites in the last (two) IMAP updates from
>Cobalt. But Cobalt has not seen fit to provide any StackGuard
>libraries, header files or a StackGuard-enabled GCC.
>
>When I try to build PHP 4.3.0 using --with-imap, it fails with errors
>(fallaciously referring to needing --with-imap-ssl). Looking at the
>config.log I see multiple errors, "undefined reference to
>`__canary_death_handler'"
>
>The solutions I have considered include:
>
>1] Rollback imap to before StackGuard was added. Don't really want to
>do that because it does provide SOME protection.
>
>2] Build PHP without IMAP support (clients aren't happy with this)
>
>3] Build a separate imap without StackGuard and link against that. I
>tried this, but PHP still wants to read the installed imap when it
>gets to the imap-ssl stage. (I will continue to work this front.)
>
>4] Build a gcc with StackGuard. I really don't want to have to do
>this.
>
>Any other thoughts? Any solutions?
>
>TIA,
>  
>

-- 

¸,ø¤°`°¤ø,¸_¸,ø¤°`°¤ø,¸_¸,ø¤°°¤ø,¸_¸,ø¤°`°¤ø,¸_¸,ø¤°°¤ø,¸

Götz Lohmann  |  D-Mannheim  |  Web-Developer & Sys-Admin
---------------------------------------------------------
He's the fellow that people wonder what he does and why
the company needs him, until he goes on vacation.
¸,ø¤°`°¤ø,¸_¸,ø¤°`°¤ø,¸_¸,ø¤°°¤ø,¸_¸,ø¤°`°¤ø,¸_¸,ø¤°°¤ø,¸