You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Charlie Smith <Sm...@ldschurch.org> on 2003/02/25 23:01:30 UTC

Re: sanity check problem: Help installing mod_perl1.27andapache1.3.27

Ged,
 
attached are the source files I had to modify to get the mod_perl stuff to
compile with Apache.
TestCompile
ldopts
 
The TestCompile routine had to be modified to remove the LIBS1 on line 248.
This goes into the apache 1.3.27 distribution under src/helpers/TestCompile. 
Maybe you or someone else could help 
code the test for an OS in this shell file. I left this out, so the user will
have to use the modified file rather than
the original.
 
I modified ldopts file, which is included in both the mod_perl distribution and
the apache distribution, under 
.../src/modules/perl/ldopts
I modified this file to check the OS before removing the -Wl  parameter from
the returned opts.
 
What is procedure to get these put in as patch?
 
Thanks,
Charlie Smith

>>> "Ged Haywood" <ge...@www2.jubileegroup.co.uk> 02/24/03 04:57PM >>>
Hi Charlie,

On Mon, 24 Feb 2003, Charlie Smith wrote:

> Ok.  I'll give it a whack or hack or whatever you want to call it.  Where
are
> the Wl flags loaded from for the mod_perl stuff?

Actually they're from the Apache source, the mod_perl configuration may hack
them.
The tool I use most for poking around in sources is 'grep'...

hurricane:~$ >>> grep -r Wl /home/ged/src/apache_1.3.27/*
[snip,snip]
/home/ged/src/apache_1.3.27/htdocs/manual/programs/apxs.html:    
-<strong>Wc,</strong><em>compiler</em>-<em>flags</em> ] [
-<strong>Wl,</strong><em>linker</em>-<em>flags</em> ] <em>files</em> ...
/home/ged/src/apache_1.3.27/htdocs/manual/programs/apxs.html:    
-<strong>Wl,</strong><em>linker</em>-<em>flags</em>
/home/ged/src/apache_1.3.27/src/CHANGES:  *) Allow special options -Wc,xxx and
-Wl,xxx on APXS compile/link command.
/home/ged/src/apache_1.3.27/src/Configure:   
LDFLAGS_SHLIB_EXPORT="-Zlink=dynamic -Wl,-Bexport"
/home/ged/src/apache_1.3.27/src/Configure:       
LDFLAGS_SHLIB_EXPORT="-Wl,-E"
/home/ged/src/apache_1.3.27/src/Configure:            
LDFLAGS_SHLIB_EXPORT="-Wl,-E"
/home/ged/src/apache_1.3.27/src/Configure:       
LDFLAGS_SHLIB_EXPORT="-Wl,-E"
/home/ged/src/apache_1.3.27/src/Configure:       
LDFLAGS_SHLIB_EXPORT="-Wl,-Bexport"
/home/ged/src/apache_1.3.27/src/Configure:       
LDFLAGS_SHLIB_EXPORT="-Wl,-Bexport"
/home/ged/src/apache_1.3.27/src/Configure:        
LDFLAGS_SHLIB_EXPORT="-Wl,-Bexport"
/home/ged/src/apache_1.3.27/src/Configure:              
LDFLAGS_SHLIB_EXPORT="-Wl,-Bexport"
/home/ged/src/apache_1.3.27/src/Configure:       
LDFLAGS_SHLIB_EXPORT="-Wl,-Blargedynsym"
/home/ged/src/apache_1.3.27/src/Configure:        LDFLAGS_SHLIB_EXPORT="-Wl,-E
-Wl,-B,deferred"
/home/ged/src/apache_1.3.27/src/Configure:        LDFLAGS_SHLIB_EXPORT="-Wl,-E
-Wl,-B,deferred -Wl,+s"
/home/ged/src/apache_1.3.27/src/Configure:          
LDFLAGS_SHLIB_EXPORT="-Wl,-Bexport:\$(SRCDIR)/support/httpd.exp"
/home/ged/src/apache_1.3.27/src/Configure:       
LDFLAGS_SHLIB_EXPORT="-Wl,-bE:\$(SRCDIR)/support/httpd.exp"
/home/ged/src/apache_1.3.27/src/Configure:       
LDFLAGS_SHLIB_EXPORT="-Zlink=dynamic -Wl,-Bexport"
/home/ged/src/apache_1.3.27/src/modules/perl/mod_perl.config.sh:#replace -Wl
args meant for cc with args for ld
/home/ged/src/apache_1.3.27/src/modules/perl/mod_perl.config.sh:    while
($ldopts =~ s/-Wl,(\S+)/$1/) {
/home/ged/src/apache_1.3.27/src/support/apxs.8:.BI \-Wl, "linker-flags"
/home/ged/src/apache_1.3.27/src/support/apxs.8:.BI \-Wl, "linker-flags"
/home/ged/src/apache_1.3.27/src/support/apxs.pl:    print STDERR "             
 [-Wl,<flags>] <files> ...\n";
/home/ged/src/apache_1.3.27/src/support/apxs.pl:    my ($opt_Wl, $opt_L,
$opt_l);
/home/ged/src/apache_1.3.27/src/support/apxs.pl:    foreach $opt_Wl (@opt_W) {
/home/ged/src/apache_1.3.27/src/support/apxs.pl:            $opt .= " $1" if
($opt_Wl =~ m|^\s*l,(.*)$|);
/home/ged/src/apache_1.3.27/src/support/apxs.pl:            $opt .= "
-W$opt_Wl";
/home/ged/src/apache_1.3.27/src/support/apxs:    print STDERR "              
[-Wl,<flags>] <files> ...\n";
/home/ged/src/apache_1.3.27/src/support/apxs:    my ($opt_Wl, $opt_L, $opt_l);
/home/ged/src/apache_1.3.27/src/support/apxs:    foreach $opt_Wl (@opt_W) {
/home/ged/src/apache_1.3.27/src/support/apxs:            $opt .= " $1" if
($opt_Wl =~ m|^\s*l,(.*)$|);
/home/ged/src/apache_1.3.27/src/support/apxs:            $opt .= " -W$opt_Wl";

hurricane:~$ >>> grep -r Wl /home/ged/src/mod_perl-1.27/*
/home/ged/src/mod_perl-1.27/apaci/mod_perl.config.sh:#replace -Wl args meant
for cc with args for ld
/home/ged/src/mod_perl-1.27/apaci/mod_perl.config.sh:    while ($ldopts =~
s/-Wl,(\S+)/$1/) {

73,
Ged.




------------------------------------------------------------------------------
This message may contain confidential information, and is intended only for the use of the individual(s) to whom it is addressed.


==============================================================================