Please test this package against PHP 5.0.1. If the package works, please add a comment to this bug to say that the package works, and close this bug as 'RESOLVED INVALID'. If the package does not work, please add a blocker against 'virtual/php' (for dev-php/php) or 'virtual/httpd-php' (for mod_php or php-cgi) as appropriate, and close this bug as 'RESOLVED FIXED'. Thanks, Stu
I just did a fresh install of apache2 / PHP 5 / Squirrelmail. I get the following error Fatal error: Call to undefined function session_id() in /var/www/localhost/htdocs/squirrelmail/functions/global.php on line 293
As a quick sanity check, I umerged PHP5 and emerged PHP4. Squirrelmail worked correctly with PHP4 installed.
Don't forget to set the necessary USE flags for PHP 5 before testing. Best regards, Stu
So far no luck with USE flag settings - Here is what I have so far: garath ~ # emerge -pv mod_php php These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] dev-php/mod_php-5.0.1 -adabas +apache2 -bcmath +berkdb -birdstep -bzlib -calendar -cdb -cpdflib +crypt -ctype -curl -curlwrappers -db2 +dba -dbase -dbm -dbmaker -dbx -debug -dio -empress -empress-bcs -esoob -exif +fam -fdftk -filepro -flatfile -frontbase -ftp +gd -gd-external +gdbm -gmp -hyperwave-api -iconv -imap -informix -ingres -inifile -interbase -iodbc +jpeg -ldap -libedit -mcve -memlimit -mhash -mime -ming -mnogosearch -msession -msql -mssql -mysql -mysqli +ncurses -nis +nls -oci8 -odbc -oracle7 -ovrimos -pcntl -pcre -pfpro +png -posix -postgres -qdbm +readline -recode -sapdb -sasl -session -shared -sharedmem -simplexml -snmp -soap -sockets -solid +spell -spl -sqlite +ssl -sybase -sybase-ct -sysvipc -tidy +tiff -tokenizer +truetype -wddx +xml2 -xmlrpc -xpm -xsl +zlib 0 kB [ebuild R ] dev-php/php-5.0.1 -adabas -bcmath +berkdb -birdstep -bzlib -calendar -cdb -cpdflib +crypt -ctype -curl -curlwrappers -db2 +dba -dbase -dbm -dbmaker -dbx -dio -empress -empress-bcs -esoob -exif +fam -fdftk -filepro -flatfile -frontbase -ftp +gd -gd-external +gdbm -gmp -hyperwave-api -iconv -imap -informix -ingres -inifile -interbase -iodbc +jpeg -ldap -libedit -mcve -memlimit -mhash -mime -ming -mnogosearch -msession -msql -mssql -mysql -mysqli +ncurses -nis +nls -oci8 -odbc -oracle7 -ovrimos -pcntl -pcre -pfpro +png -posix -postgres -qdbm +readline -recode -sapdb -sasl +session -shared -sharedmem -simplexml -snmp -soap -sockets -solid +spell -spl -sqlite +ssl -sybase -sybase-ct -sysvipc -tidy +tiff -tokenizer +truetype -wddx +xml2 -xmlrpc -xpm -xsl +zlib 0 kB
I found it, posting my info here helped me to see it. I had added session to /etc/portage/package.use, but I had misspelled it for the mod_php entry. Bottom line is squirrelmail requires the session USE flag to work correctly.
as comment #5 stated. Please add 'session dev-php/php dev-php/mod_php' to use.defaults so squirrelmail works.
stuart: We need a way for the php ebuilds to make sure certain php features are enabled... is there a way to do this?
I wrote a check_useflag function for cacti: check_useflag() { local my_pkg=$(best_version ${1}) local my_flag=${2} if [[ $(grep -wo ${my_flag} /var/db/pkg/${my_pkg}/USE) ]] then return 0 fi eerror "${my_pkg} was compiled without ${my_flag}. Please re-emerge it with USE=${my_flag}" die "check_useflag failed" } and invoke it at pkg_setup like this: pkg_setup() { webapp_pkg_setup # Check if php, mod_php was emerged with mysql useflag check_useflag dev-php/php mysql check_useflag dev-php/mod_php mysql }
BTW, squirrelmail works just fine for me with php 5.0.1.
Works for me, too, although only handful of users are using it. Apache 2.0.52 + PHP 5.0.3 + SquirrelMail 1.4.4 + Cyrus 2.1.12 installed. :)
built_with_use is in eutils for a long time. Jeremy, want me to fix it?
Was having problems with squirrelmail-1.4.4-r1 and mod_php-5.1.0_beta ("Cannot re-assign $this..."). (Had success in the past with squirrelmail-1.4.4 and mod_php-5.0.1 iirc) Bumping squirrelmail to 1.4.5_rc1 and tweaking the ebuild ever so slighty resolved the above problem for me.
Using the new PHP5 overlay (dev-lang/php version 5.0.5 and apparently on 5.1) breaks squirrelmail when connecting to an Imap server in file squirrelmail/functions/imap_messages.php Fix for anyone else who comes across this can be found here (fix currently at very bottom of page): http://www.squirrelmail.org/wiki/en_US/BrowseProblemsByPhpError This makes it work fine (at least on my server anyway).
Squirrelmail works fine here since the first php-5 non-beta. I've compiled dev-lang/php with the following use flags: -adabas -apache +apache2 -bcmath -berkdb -birdstep +bzip2 -calendar -cdb -cgi -cjk +cli +crypt -ctype +curl +curlwrappers -db2 -dba -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob +exif -fdftk -filepro -firebird -flatfile -force-cgi-redirect -frontbase +ftp +gd -gd-external -gdbm +gmp -hardenedphp -hyperwave-api -iconv +imap -informix -inifile -interbase -iodbc +ipv6 -java-external -kerberos +ldap -libedit -mcve -memlimit -mhash -ming +mnogosearch -msql -mssql +mysql -mysqli +ncurses +nls -oci8 -oci8-instant-client +odbc -oracle7 -ovrimos -pcntl +pcre -pdo-external +pear -pfpro -pic +posix -postgres -qdbm +readline +recode* -sapdb +sasl +session -sharedext +sharedmem -simplexml +snmp +soap +sockets -solid +spell -spl -sqlite +ssl -sybase -sybase-ct -sysvipc -threads +tidy +tiff -tokenizer +truetype -wddx +xml2 +xmlrpc -xpm +xsl -yaz -zip +zlib and squirrelmail with: +crypt +ldap +mysql +postgres +spell +ssl +vhosts +virus-scan
Closing.