Heinrich G�tzger wrote:
> Hi,
>
> I discovered problems today with building and compiling some own modules
> for httpd 2.0.36 on a SuSE 7.2 Box.
>
> The Server runs fine.
>
> Using apxs brought some things which I'm not clear on (I'm not a perl
> Guru):
>
> $ echo `./apxs -q CC`
> gcc
> $ echo `./apxs -q TARGET`
> httpd
> ...
>
> it goes wrong for CFLAGS_SHLIB, LD_SHLIB, LDFLAGS_SHLIB, LIBS_SHLIB
> $ echo `./apxs -q CFLAGS_SHLIB`
> Use of uninitialized value in concatenation (.) at ./apxs line 278.
> echo `./apxs -q LD_SHLIB`
> Use of uninitialized value in concatenation (.) at ./apxs line 278.
> $ echo `./apxs -q LDFLAGS_SHLIB`
> Use of uninitialized value in concatenation (.) at ./apxs line 278.
> $ echo `./apxs -q LIBS_SHLIB`
> Use of uninitialized value in concatenation (.) at ./apxs line 278.
if the line is reported correctly here is the fix:
Index: support/apxs.in
===================================================================
RCS file: /home/cvspublic/httpd-2.0/support/apxs.in,v
retrieving revision 1.38
diff -u -r1.38 apxs.in
--- support/apxs.in 13 May 2002 17:16:55 -0000 1.38
+++ support/apxs.in 5 Jun 2002 04:35:24 -0000
@@ -275,7 +275,7 @@
if (exists $internal_vars{$arg} or exists
$internal_vars{lc $arg}) {
my $val = exists $internal_vars{$arg} ? $arg : lc $arg;
$val = eval "\$CFG_$val";
- $result .= eval "qq($val)";
+ $result .= eval "qq($val)" if defined $val;
$result .= ";;";
$ok = 1;
}
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com