From owner-freebsd-ports@FreeBSD.ORG Sun May 27 19:12:57 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E61C106564A for ; Sun, 27 May 2012 19:12:57 +0000 (UTC) (envelope-from ohauer@FreeBSD.org) Received: from p578be941.dip0.t-ipconnect.de (p578be941.dip0.t-ipconnect.de [87.139.233.65]) by mx1.freebsd.org (Postfix) with ESMTP id CAB1F8FC0A for ; Sun, 27 May 2012 19:12:56 +0000 (UTC) Received: from [192.168.0.100] (cde1100.uni.vrs [192.168.0.100]) (Authenticated sender: ohauer) by p578be941.dip0.t-ipconnect.de (Postfix) with ESMTPSA id EFA7D20864; Sun, 27 May 2012 21:06:24 +0200 (CEST) Message-ID: <4FC27B33.6040906@FreeBSD.org> Date: Sun, 27 May 2012 21:06:27 +0200 From: Olli Hauer User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Kaya Saman References: <4FC24C89.1080405@gmail.com> In-Reply-To: <4FC24C89.1080405@gmail.com> X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: ATmail Port not working? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ohauer@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 May 2012 19:12:57 -0000 On 2012-05-27 17:47, Kaya Saman wrote: > Hi, > > I am currently in the process of testing ATmail as a replacement to my currently running old Zimbra setup. > I would like to get rid of Linux and migrate my mail system onto FreeBSD. :) > However, for some reason the ATmail port isn't working. > I have contacted the port maintainer about it who told me that it would be fixed ASAP but I haven't heard anything since and trying to do a port upgrade didn't yield anything either. > My issue is that I keep getting this on the initial install: > > *Deprecated*: Assigning the return value of new by reference is deprecated in */usr/local/www/atmail/libs/PEAR/DB.php* on line *472* > *Deprecated*: Assigning the return value of new by reference is deprecated in */usr/local/www/atmail/libs/PEAR/DB.php* on line *549* > *Deprecated*: Assigning the return value of new by reference is deprecated in */usr/local/www/atmail/libs/PEAR/DB.php* on line *1204* > *Deprecated*: Assigning the return value of new by reference is deprecated in */usr/local/www/atmail/libs/PEAR/PEAR.php* on line *569* > *Deprecated*: Assigning the return value of new by reference is deprecated in */usr/local/www/atmail/libs/PEAR/PEAR.php* on line *572* > > *Strict Standards*: Non-static method DB::connect() should not be called statically in */usr/local/www/atmail/install/step2.php* on line *97* > *Strict Standards*: Non-static method DB::parseDSN() should not be called statically in */usr/local/www/atmail/libs/PEAR/DB.php* on line *522* > *Strict Standards*: Non-static method DB::isError() should not be called statically in */usr/local/www/atmail/libs/PEAR/DB.php* on line *559* > *Strict Standards*: Non-static method DB::isError() should not be called statically in */usr/local/www/atmail/install/step2.php* on line *99* > > *Warning*: Cannot modify header information - headers already sent by (output started at /usr/local/www/atmail/libs/PEAR/DB.php:472) in */usr/local/www/atmail/install/index.php* on line *137* The messages are coming from backward compatibility with php4 To get rid of "Deprecate: ..." look at the lines for '=& BlaBla' or '= &BlaBla' change them to '= BlaBla' I have no quick solution for the "Strict Standards" errors, you can *suppress* them by changing the error_reporting variable in php.ini but this *does not* fix the issue. Changing the error_report variable is not recommend, the code should be fixed! > I have tried changing both MySQL and PHP versions which didn't have any luck. > Current PHP version is 5.4 as 5.2 and 5.3 don't even display the index.php install page. > > MySQL was 5.5 but now is 5.0.x from ports. > > > What can I do to get this working? > > > The version of ATmail is also quite old it seems as is version 5 (1.0.5), however ATmail 6 is out....... Where have you found ATmail 6 ?? Current download is 1.0.5 > Can anybody help me getting ATmail working? The following patch updates ATmail to version 1.0.5 (no guaranty since I'm not using ATmail) http://people.freebsd.org/~ohauer/diffs/atmail-1.0.5.diff Please open a PR for the update, maybe even report your error messages to the ATmail project so they can fix the code. -- Regards, olli