Re: squirrel mail install-from-ports problem....

2002-10-25 Thread Simon Dick
On Fri, 2002-10-25 at 02:30, Bsd Neophyte wrote:
 i'm getting the following error and it says that this should be reported
 to [EMAIL PROTECTED]
 
 but before i do that, i wanted some input to see if i could resolve this
 issue in a relatively simply way.
 
 is this an issue with how i installed apache... should i reinstall if with
 the --with-apxs2 option?

I'd suggest you install PHP4 individually first, eg:
cd /usr/ports/www/mod_php4
make -DWITH_APACHE2 install clean

Then install squirrelmail, it looks like you have Apache 2 installed and
PHP can't autodetect it so it needs that -D option set.

-- 
Simon


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: squirrel mail install-from-ports problem....

2002-10-25 Thread Matthew Seaman
On Fri, Oct 25, 2002 at 04:04:07PM +0100, Simon Dick wrote:
 On Fri, 2002-10-25 at 02:30, Bsd Neophyte wrote:
  i'm getting the following error and it says that this should be reported
  to [EMAIL PROTECTED]
  
  but before i do that, i wanted some input to see if i could resolve this
  issue in a relatively simply way.
  
  is this an issue with how i installed apache... should i reinstall if with
  the --with-apxs2 option?
 
 I'd suggest you install PHP4 individually first, eg:
 cd /usr/ports/www/mod_php4
 make -DWITH_APACHE2 install clean
 
 Then install squirrelmail, it looks like you have Apache 2 installed and
 PHP can't autodetect it so it needs that -D option set.

Unfortunately, the Makefile for the squirrelmail port says:

RUN_DEPENDS+=   ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4

which means that if ${LOCALBASE}/libexec/apache/libphp4.so cannot be
found at compile/install time, the squirrelmail port will try and
install mod_php4 to fulfil the dependency.  Since you've already
installed mod_php4 with the -DWITH_APACHE2 flag, causing the loadable
module to be installed as ${LOCALBASE}/libexec/apache2/libphp4.so, the
system will try and reinstall mod_php4, which you've already
discovered doesn't work.

One solution is to patch the squirrelmail port Makefile:

--- Makefile.orig   Fri Sep 20 17:38:46 2002
+++ MakefileFri Oct 25 16:49:45 2002
@@ -13,7 +13,11 @@
 
 MAINTAINER=[EMAIL PROTECTED]
 
-RUN_DEPENDS+=  ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
+.if defined(WITH_APACHE2)
+RUN_DEPENDS+=  ${LOCALBASE}/libexec/apache2/libphp4.so:${PORTSDIR}/www/mod_php4
+.else
+RUN_DEPENDS+=  ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
+.endif
 
 USE_BZIP2= yes
 NO_BUILD=  yes


Then make -DWITH_APACHE2

The same problem will affect all ports that install PHP code. See for
instance:

o [2002/08/12] ports/41577  portsport security/acid won't see apache2+mod_php4
o [2002/09/21] ports/43225  nbm  phpPgAdmin port doesn't work with Apache2 by 
default
o [2002/09/21] ports/43227  portssquirrelmail port doesn't support Apache2
o [2002/10/05] ports/43706  nbm  Make databases/phpmyadmin operate with apache2

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
  Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: squirrel mail install-from-ports problem....

2002-10-25 Thread Simon Dick
On Fri, 2002-10-25 at 17:01, Matthew Seaman wrote:
 On Fri, Oct 25, 2002 at 04:04:07PM +0100, Simon Dick wrote:
  On Fri, 2002-10-25 at 02:30, Bsd Neophyte wrote:
   i'm getting the following error and it says that this should be reported
   to [EMAIL PROTECTED]
   
   but before i do that, i wanted some input to see if i could resolve this
   issue in a relatively simply way.
   
   is this an issue with how i installed apache... should i reinstall if with
   the --with-apxs2 option?
  
  I'd suggest you install PHP4 individually first, eg:
  cd /usr/ports/www/mod_php4
  make -DWITH_APACHE2 install clean
  
  Then install squirrelmail, it looks like you have Apache 2 installed and
  PHP can't autodetect it so it needs that -D option set.
 
 Unfortunately, the Makefile for the squirrelmail port says:
 
 RUN_DEPENDS+=   ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
 
 which means that if ${LOCALBASE}/libexec/apache/libphp4.so cannot be
 found at compile/install time, the squirrelmail port will try and
 install mod_php4 to fulfil the dependency.  Since you've already
 installed mod_php4 with the -DWITH_APACHE2 flag, causing the loadable
 module to be installed as ${LOCALBASE}/libexec/apache2/libphp4.so, the
 system will try and reinstall mod_php4, which you've already
 discovered doesn't work.
 
 One solution is to patch the squirrelmail port Makefile:

Good point, will submit a patch to do that in the squirrelmail port
tonight.

-- 
Simon


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



squirrel mail install-from-ports problem....

2002-10-24 Thread Bsd Neophyte
i'm getting the following error and it says that this should be reported
to [EMAIL PROTECTED]

but before i do that, i wanted some input to see if i could resolve this
issue in a relatively simply way.

is this an issue with how i installed apache... should i reinstall if with
the --with-apxs2 option?

-
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... configure:
error: Use --with-apxs2 with Apache 2.x!
===  Script configure failed unexpectedly.
  Please report the problem to [EMAIL PROTECTED] [maintainer] and 
  attach the /usr/ports/www/mod_php4/work/php-4.2.3/config.log 
  including the output of the failure of your make command. Also, it 
  might be a good idea to provide an overview of all packages 
  installed on your system (e.g. an `ls /var/db/pkg`).
*** Error code 1

Stop in /usr/ports/www/mod_php4.
*** Error code 1

Stop in /usr/ports/www/mod_php4.
*** Error code 1

Stop in /usr/ports/mail/squirrelmail.
-

__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: squirrel mail install-from-ports problem....

2002-10-24 Thread DaleCo Help Desk
It may be that dirk@ needs to hear about
it...I've had some trouble building mod_php
lately also.  But I've managed to work around
it, albeit not so quickly.

As to your question, here's another:
is your Apache v 2.x or 1.3.x ?

That's what the script is asking for

Kevin Kinsey

- Original Message -
From: Bsd Neophyte [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 24, 2002 8:30 PM
Subject: squirrel mail install-from-ports problem


 i'm getting the following error and it says that this should be
reported
 to [EMAIL PROTECTED]

 but before i do that, i wanted some input to see if i could resolve
this
 issue in a relatively simply way.

 is this an issue with how i installed apache... should i reinstall
if with
 the --with-apxs2 option?

 -
 Configuring SAPI modules
 checking for AOLserver support... no
 checking for Apache 1.x module support via DSO through APXS...
configure:
 error: Use --with-apxs2 with Apache 2.x!
 ===  Script configure failed unexpectedly.
   Please report the problem to [EMAIL PROTECTED] [maintainer]
and
   attach the
/usr/ports/www/mod_php4/work/php-4.2.3/config.log
   including the output of the failure of your make command.
Also, it
   might be a good idea to provide an overview of all packages
   installed on your system (e.g. an `ls /var/db/pkg`).
 *** Error code 1

 Stop in /usr/ports/www/mod_php4.
 *** Error code 1

 Stop in /usr/ports/www/mod_php4.
 *** Error code 1

 Stop in /usr/ports/mail/squirrelmail.
 -

 __
 Do You Yahoo!?
 Yahoo! Autos - Get free new car price quotes
 http://autos.yahoo.com

 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message