You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Heinrich Götzger <go...@gmx.net> on 2002/06/04 22:45:45 UTC

problems building modules with 2.0.36

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.

However I'm not clear if I did it all correct because I just want to
know how it works basicly.

Furtheron I discovered a typo:
May it be the case that there is a typo in
'srclib/apr-util/include/apr_uri.h'

the line
#include <apr_network_io.h>
should read
#include "apr_network_io.h"



thanks and best regards

Heinrich
--
http://www.xmlBlaster.org


Re: problems building modules with 2.0.36

Posted by Cliff Woolley <jw...@virginia.edu>.
On Wed, 5 Jun 2002, [ISO-8859-1] Heinrich G�tzger wrote:

> thanks, seems as it would work now.

Yep, I was able to reproduce the problem and that does in fact fix it.  I
committed that plus a similar change a few lines up.

Thanks!

--Cliff


Re: problems building modules with 2.0.36

Posted by Heinrich Götzger <go...@gmx.net>.
Stas,

thanks, seems as it would work now.

regards

Heinrich


On Wed, 5 Jun 2002, Stas Bekman wrote:

>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:stas@stason.org http://use.perl.org http://apacheweek.com
>http://modperlbook.org http://apache.org   http://ticketmaster.com
>
--
http://www.xmlBlaster.org


Re: problems building modules with 2.0.36

Posted by Stas Bekman <st...@stason.org>.
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:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com