Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Feb 2001 16:28:46 -0200
From:      Gustavo Vieira Goncalves Coelho Rios <gustavo@ifour.com.br>
To:        Chris Hill <chris@monochrome.org>
Cc:        questions@FreeBSD.ORG
Subject:   Re: p5-HTML-Embperl
Message-ID:  <3A7AFC5E.4C67914A@ifour.com.br>
References:  <Pine.BSF.3.96.1010202131106.55713A-100000@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
Chris Hill wrote:
> 
> On Fri, 2 Feb 2001, Gustavo Vieira Goncalves Coelho Rios wrote:
> 
> > I installed apache by hand, without using ports, so it's installed in
> > /usr/local/apache.
> > The problem is that embperl is seeking for /usr/local/include/apache and
> > it should not, but instead, seek for /usr/local/apache/include.
> >
> > How may i specify that it should seek into this directory?
> 
> The first thing I would try is to make a symlink in the place where
> embperl is looking, and have the link point to the place where you want
> it to look.
> 
> NB, I have never encountered your situation and this is only a
> suggestion/guess. That is, it may not work.
> 
> Good luck.
> 
> --
> Chris Hill               chris@monochrome.org
> **                     [ Busy expunging <-> ]
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message


Thanks for your time and cooperation.

Now i known where is the problem.

It's related to the patch-aa provided by the author of the module.
This patch forces the building process to seek in
/usr/local/include/apache. The biggest problem is that it brakes
flexibility, i.e., if you have apache installed somewhere not in the
defaults by the apache port, you run into problem.

Take a closer look into the patch-aa:

--- Makefile.PL.orig    Mon Nov 13 10:14:28 2000
+++ Makefile.PL Tue Dec 19 12:09:13 2000
@@ -26,7 +26,7 @@
 %neededmodules =
     (
       'mod_perl.c' => { name       => 'perl_module',
-                       path        =>
['$apache_src/modules/perl/libperl.so', '
$EPBINDIR/modules/libperl.so', '$apache_src/mod_perl.so'],
+                       path        =>
['/usr/local/libexec/apache/libperl.so',
'$EPBINDIR/modules/libperl.so', '$apache_src/mod_perl.so'],
                        win32path   => ['$mpdll',
'$mpdll/apachemoduleperl.dll',
 '$EPBINDIR/modules/apachemoduleperl.dll'],
                        file        => 'libperl.so',
                        win32file   => 'apachemoduleperl.dll',
@@ -468,23 +468,7 @@

     #### look in which subdir the include files resides ####

-    if (-e "$apache_src/httpd.h")
-         {
-         $inc_dir = $apache_src ;
-         }
-    elsif (-e "$apache_src/main/httpd.h")
-         {
-         $inc_dir = "$apache_src/main" ;
-         }
-    elsif (-e "$apache_src/include/httpd.h")
-         {
-         $inc_dir = "$apache_src/include" ;
-         }
-    elsif (-e "$ENV{APACHE_HDR}/httpd.h")
-         {
-         $inc_dir = "$ENV{APACHE_HDR}" ;
-         }
-
+       $inc_dir = "/usr/local/include/apache";

     if ($win32)
        {


The line "$inc_dir = "/usr/local/include/apache";" is the problem. It
should not be there.
IMHO, this patch should not exist, 'cause it is not making thing easier
for those who don't have apache installed by ports, and removing this
patch would be no problem for those who of you whom installed apache
from ports.
In others worlds, by removing this patch, it will be possible to please
greeks and trojans.

Am i correct ?

Who should i ask to "correct" this "bug" ?

Thanks in advance!


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A7AFC5E.4C67914A>