Re: apxs on Win32?
On Thu, 21 Feb 2008, William A. Rowe, Jr. wrote: Guenter Knauf wrote: Hi (Bill?), another dev just asked me privately about apxs for Win32 does this meanwhile work on Win32? And if so can we perhaps ship it with future distros? I think that would make sense since the include and lib dir is already included Dunno if Randy's package has been updated for trunk, 2.2 etc, but it's been mentioned several times that this should be incorporated back into httpd. (It was dropped with 2.0, after I solved it for 1.3, given the additional complexity behind the autocrap/libfool stuff we introduced into httpd 2.0). So maybe it's time to get cracking ;-) Bill The apxs win32 package does work for 2.2. I'm not sure the best way to incorporate this into the httpd build; as a first step, I've placed at http://people.apache.org/~randyk/ an install_win32_apxs.zip which can be used as nmake -f install_win32_apxs.mak INSTDIR=C:\Path\to\Apache2.x to install apxs, apr-config, and apu-config. This assumes a point in the installation when Apache has been installed (eg, towards the end of httpd's Makefile.win). Compared to the apxs utility at http://perl.apache.org/dist/win32-bin/ this version is more minimalistic (no user prompts, etc.); the modules used are included with modern versions of Perl. One thing it does assume is that Perl is in the PATH; I'm not sure how to check for this in the Makefile. -- best regards, Randy
Re: apxs on Win32?
Guenter Knauf wrote: if the one we have in ./support works already with 3rd-party modules (other than mod_perl) on Win32 then we can just use that; otherwise I'm +1 to add yours. It does not, its crafted from libtool-junk last time I looked, and requires apr similarly provisioned (apr-config script et al). Better that we recraft Randy's work into an apr bit, and apu bit (and submit those over to apr), and either "fix" the libtool-specific crap in apxs.in, or use Randy's httpd bits as well. Bill
Re: apxs on Win32?
Hi Randy, > There's a perl script that emulates apxs on Win32 available > in apxs_win32.tar.gz at > http://perl.apache.org/dist/win32-bin/ perfect answer since the one who asked me did that for mod_perl! > Right now this is installed assuming an already-installed > Apache; if there's interest, I could look at incorporating > this into the build of Apache itself. lets see what Bill says - if the one we have in ./support works already with 3rd-party modules (other than mod_perl) on Win32 then we can just use that; otherwise I'm +1 to add yours. thanks, Guenter.
Re: apxs on Win32?
Randy Kobes wrote: On Thu, 21 Feb 2008, Guenter Knauf wrote: Hi (Bill?), another dev just asked me privately about apxs for Win32 does this meanwhile work on Win32? And if so can we perhaps ship it with future distros? I think that would make sense since the include and lib dir is already included Guenter. There's a perl script that emulates apxs on Win32 available in apxs_win32.tar.gz at http://perl.apache.org/dist/win32-bin/ Right now this is installed assuming an already-installed Apache; if there's interest, I could look at incorporating this into the build of Apache itself. +1
Re: apxs on Win32?
Guenter Knauf wrote: Hi (Bill?), another dev just asked me privately about apxs for Win32 does this meanwhile work on Win32? And if so can we perhaps ship it with future distros? I think that would make sense since the include and lib dir is already included Dunno if Randy's package has been updated for trunk, 2.2 etc, but it's been mentioned several times that this should be incorporated back into httpd. (It was dropped with 2.0, after I solved it for 1.3, given the additional complexity behind the autocrap/libfool stuff we introduced into httpd 2.0). So maybe it's time to get cracking ;-) Bill
Re: apxs on Win32?
On Thu, 21 Feb 2008, Guenter Knauf wrote: Hi (Bill?), another dev just asked me privately about apxs for Win32 does this meanwhile work on Win32? And if so can we perhaps ship it with future distros? I think that would make sense since the include and lib dir is already included Guenter. There's a perl script that emulates apxs on Win32 available in apxs_win32.tar.gz at http://perl.apache.org/dist/win32-bin/ Right now this is installed assuming an already-installed Apache; if there's interest, I could look at incorporating this into the build of Apache itself. -- best regards, Randy Kobes
apxs on Win32?
Hi (Bill?), another dev just asked me privately about apxs for Win32 does this meanwhile work on Win32? And if so can we perhaps ship it with future distros? I think that would make sense since the include and lib dir is already included Guenter.
Fwd: apxs on Win32
Something test-dev has kicked around that we should pick back up... >Date: Tue, 29 Jul 2003 09:44:45 -0500 (CDT) >From: Randy Kobes <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] > >I've been looking at getting apxs for Win32 working on Apache 2. >There's a number of changes needed due to the current reliance on >libtool, so initially I've tried just a pure Win32 version - if >anyone wants to try it, I've put up two files - Configure.apxs >and apxs.in - at http://theoryx5.uwinnipeg.ca/. Running > C:\Some\Path> perl Configure.apxs >(in the same directory as apxs.in) will guess at your Apache2 >directory (a --with-apache2=... option can be specified to tell >it explicitly), and then an apxs.bat will be created under >C:\Path\to\Apache2\bin\, along with the associated >C:\Path\to\Apache2\build\config_vars.mk. > >I've tried using this for the c-modules tests of perl-framework, >and it seems to work OK, with the following diff applied to >a couple of files under perl-framework/Apache-Test/lib/Apache: > >=== >Index: TestConfig.pm >=== >RCS file: >/home/cvspublic/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfig.pm,v >retrieving revision 1.165 >diff -u -r1.165 TestConfig.pm >--- TestConfig.pm 7 Jul 2003 18:42:29 - 1.165 >+++ TestConfig.pm 29 Jul 2003 05:51:22 - >@@ -283,7 +283,7 @@ > $self->{APXS} = $self->default_apxs; > > return unless $self->{APXS}; >- >+$self->{APXS} =~ s !/!\\!g if WIN32; > my $vars = $self->{vars}; > > $vars->{bindir} ||= $self->apxs('BINDIR', 1); >Index: TestConfigC.pm >=== >RCS file: >/home/cvspublic/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigC.pm,v >retrieving revision 1.20 >diff -u -r1.20 TestConfigC.pm >--- TestConfigC.pm 31 Mar 2003 06:58:40 - 1.20 >+++ TestConfigC.pm 29 Jul 2003 05:51:22 - >@@ -76,7 +76,8 @@ > EOF > } > >-my %lib_dir = (1 => "", 2 => ".libs/"); >+my %lib_dir = Apache::TestConfig::WIN32 ? (1 => "", 2 => "") : >+(1 => "", 2 => ".libs/"); > > sub cmodules_build_so { > my($self, $name) = @_; >@@ -135,6 +136,9 @@ > > my $lib = $self->cmodules_build_so($name); > >+my $extras; >+$extras = ' -llibhttpd -p ' if Apache::TestConfig::WIN32; >+ > my $fh = Symbol::gensym(); > open $fh, ">$makefile" or die "open $makefile: $!"; > >@@ -143,7 +147,7 @@ > all: $lib > > $lib: $name.c >- \$(APXS) $dversion -I$self->{cmodules_dir} -c $name.c >+ \$(APXS) $dversion -I$self->{cmodules_dir} $extras -c $name.c > > clean: >-rm -rf $name.o $name.lo $name.slo $name.la .libs >=== >(there's a failure in building one of the tests due to a >missing random-ish function). The tests were configured as > C:\perl-framework> Perl Makefile.PL -apxs C:\Apache2\bin\apxs >-httpd C:\Apache2\bin\Apache.exe >The reason for specifying both -apxs and -httpd is related to the >current Apache-Test using the fact that the apxs variable TARGET >specifies the name of the httpd binary (httpd). On Win32 the >binary is Apache.exe, but changing the value of TARGET on Win32 >would break assumptions elsewhere that the Apache configuration >file (httpd.conf on Win32 as well) is TARGET.conf. How to handle >this better should be looked at. > >Merging this Win32 apxs.in and the one in the httpd sources would >possible, if that was desired. > >-- >best regards, >randy kobes
Re: apxs on win32
At 07:54 AM 4/11/2002, William A. Rowe, Jr. wrote: At 06:36 AM 4/11/2002, you wrote: I have succesfully built httpd-2.0.35 on win2k, but there is no apxs program built. so I cannot build modperl2 for instance Because of the change to libtool based builds - the Apache 2.0 apxs will not work on Win32. does anyone know where is apxs for win32 ? You -can- build modperl2 without apxs... but you will have to check the apxs list for details [the args escape my brain without sufficient coffee.] -Way- too little coffee. That would be the modperl mailing list... http://perl.apache.org/#maillists
Re: apxs on win32
At 06:36 AM 4/11/2002, you wrote: I have succesfully built httpd-2.0.35 on win2k, but there is no apxs program built. so I cannot build modperl2 for instance Because of the change to libtool based builds - the Apache 2.0 apxs will not work on Win32. does anyone know where is apxs for win32 ? You -can- build modperl2 without apxs... but you will have to check the apxs list for details [the args escape my brain without sufficient coffee.]
apxs on win32
Hi I have succesfully built httpd-2.0.35 on win2k, but there is no apxs program built. so I cannot build modperl2 for instance does anyone know where is apxs for win32 ? thanks pascal