Re: mod_perl 1.26 build under Cygwin fails

2002-05-11 Thread Alexander Solovey

Per Einar Ellefsen wrote:

 Thanks a lot for your help. Now, for some more problems :)
[skipped]
 make[3]: Leaving directory `/usr/src/apache_1.3.24/src'
 
 I'm not so sure what's happening, but re-running make will re-execute this 
 section over and over again, so something must have gone wrong :( I tried 
 playing around a little with options to dllwrap, but without much luck.

It is not a problem. If this step is completed, you have httpd executable
in apache_1.3.24/src directory. Note that buildmark.c is recompiled every
time you run make and then httpd is relinked; that's why the last step is
re-executed.

Just run 'make install' from mod_perl directory, then change dir to
apache and run 'make install' there too.

Alexander Solovey




Re: mod_perl 1.26 build under Cygwin fails

2002-05-10 Thread Per Einar Ellefsen

At 21:43 01.05.2002, Alexander Solovey wrote:
Per Einar Ellefsen wrote:
  Try to apply patch (attached) and then build using these options:
  
  perl Makefile.PL APACHE_SRC=../apache_1.3.24/src USE_APACI=1 EVERYTHING=1
  PERL_EXTRA_CFLAGS=-DUSEIMPORTLIB DO_HTTPD=1
  APACI_ARGS='--enable-rule=SHARED_CORE --enable-module=so'
 
  Thanks a lot for that patch, atleast it fixed the initial problem. 
 However,
  when mod_perl.config.sh is called, it reports Note (probably 
 harmless): No
  library found for -lperl.
 
  Well, it is harmful :) I get tons of linking errors at compilation time
  (undefined references). How do I get it to find the perl library, if any?
  Or, how do I compile one if I have to?

Oh, I forgot to tell you that one more step is required:

 cd /lib/perl5/5.6.1/cygwin-multi/CORE  ln -s libperl5_6_1.a libperl.a

mod_perl requires libperl.a to be present but cygwin doesn't provide it
by default. So, here is a symbolic link and it works.

Thanks a lot for your help. Now, for some more problems :)

=== src/modules
gcc -c  -I./os/cygwin -I./include   -DCYGWIN -DMOD_PERL 
-DUSE_HSREGEX  -DSHARED_CORE -DUSEIMPORTLIB -DPERL_USE_SAFE_PUTENV 
-fno-strict-aliasing -I/usr/local/include `./apaci` modules.c
gcc -c  -I./os/cygwin -I./include   -DCYGWIN -DMOD_PERL 
-DUSE_HSREGEX  -DSHARED_CORE -DUSEIMPORTLIB -DPERL_USE_SAFE_PUTENV 
-fno-strict-aliasing -I/usr/local/include `./apaci` buildmark.c
dllwrap --export-all -o libhttpd.dll buildmark.o modules.o 
modules/standard/libstandard.a modules/perl/libperl.a main/libmain.a 
./os/cygwin/libos.a ap/libap.a regex/libregex.a   -lcrypt -lgdbm  -s  -s 
-L/usr/local/lib 
/usr/lib/perl5/5.6.1/cygwin-multi/auto/DynaLoader/DynaLoader.a 
-L/usr/lib/perl5/5.6.1/cygwin-multi/CORE -lperl -lcrypt
dllwrap: no export definition file provided
dllwrap: creating one, but that may not be what you want
gcc  -I./os/cygwin -I./include   -DCYGWIN -DMOD_PERL 
-DUSE_HSREGEX  -DSHARED_CORE -DUSEIMPORTLIB -DPERL_USE_SAFE_PUTENV 
-fno-strict-aliasing -I/usr/local/include `./apaci`\
   -o libhttpd.ep -DSHARED_CORE_TIESTATIC main/http_main.c \
   -L. -lhttpd  -lcrypt -lgdbm  -s  -s -L/usr/local/lib 
/usr/lib/perl5/5.6.1/cygwin-multi/auto/DynaLoader/DynaLoader.a 
-L/usr/lib/perl5/5.6.1/cygwin-multi/CORE -lperl -lcrypt
gcc  -I./os/cygwin -I./include   -DCYGWIN -DMOD_PERL 
-DUSE_HSREGEX  -DSHARED_CORE -DUSEIMPORTLIB -DPERL_USE_SAFE_PUTENV 
-fno-strict-aliasing -I/usr/local/include `./apaci`\
   -o httpd -DSHARED_CORE_BOOTSTRAP main/http_main.c \
   ap/libap.a  -lcrypt -lgdbm  -s  -s -L/usr/local/lib 
/usr/lib/perl5/5.6.1/cygwin-multi/auto/DynaLoader/DynaLoader.a 
-L/usr/lib/perl5/5.6.1/cygwin-multi/CORE -lperl -lcrypt  libhttpd.dll
make[3]: Leaving directory `/usr/src/apache_1.3.24/src'

I'm not so sure what's happening, but re-running make will re-execute this 
section over and over again, so something must have gone wrong :( I tried 
playing around a little with options to dllwrap, but without much luck.


-- 
Per Einar Ellefsen
[EMAIL PROTECTED]





mod_perl 1.26 build under Cygwin fails

2002-05-01 Thread Per Einar Ellefsen


Hi,

I have been trying to get mod_perl 1.26 to build on Cygwin. With no luck. 
Has anyone else been successful in this?

Build options for mod_perl:

perl Makefile.PL APACHE_SRC=../apache_1.3.24/src DO_HTTPD=1 USE_APACI=1 
EVERYTHING=1

When running make, it fails in the apache_1.3.24/src/modules/perl/ 
directory (here is the output of re-running make only in that directory:)


--
I-I../../os/cygwin -I../../include-DCYGWIN -DMOD_PERL -DUSE_HSREGEX 
-DNO_DL_NEEDED -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing 
-I/usr/local/include `../../apaci` -c mod_perl.c
I: not found
make: [mod_perl.o] Error 127 (ignored)
o perlxsi.c -std
o: not found
make: [perlxsi.c] Error 127 (ignored)
I-I../../os/cygwin -I../../include-DCYGWIN -DMOD_PERL -DUSE_HSREGEX 
-DNO_DL_NEEDED -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing 
-I/usr/local/include `../../apaci` -c perlxsi.c
I: not found
make: [perlxsi.o] Error 127 (ignored)
I-I../../os/cygwin -I../../include-DCYGWIN -DMOD_PERL -DUSE_HSREGEX 
-DNO_DL_NEEDED -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing 
-I/usr/local/include `../../apaci` -c perl_config.c
I: not found
make: [perl_config.o] Error 127 (ignored)
I-I../../os/cygwin -I../../include-DCYGWIN -DMOD_PERL -DUSE_HSREGEX 
-DNO_DL_NEEDED -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing 
-I/usr/local/include `../../apaci` -c perl_util.c
I: not found
make: [perl_util.o] Error 127 (ignored)
I-I../../os/cygwin -I../../include-DCYGWIN -DMOD_PERL -DUSE_HSREGEX 
-DNO_DL_NEEDED -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing 
-I/usr/local/include `../../apaci` -c perlio.c
I: not found
make: [perlio.o] Error 127 (ignored)
I-I../../os/cygwin -I../../include-DCYGWIN -DMOD_PERL -DUSE_HSREGEX 
-DNO_DL_NEEDED -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing 
-I/usr/local/include `../../apaci` -c mod_perl_opmask.c
I: not found
make: [mod_perl_opmask.o] Error 127 (ignored)
rm -f libperl.a
crv libperl.a mod_perl.o perlxsi.o perl_config.o perl_util.o perlio.o 
mod_perl_opmask.o
crv: not found
make: *** [libperl.a] Error 127

--

It seems weird to me that the Makefile is trying to call I... But I don't 
know more than that.

A normal Apache build works fine, so that isn't the problem here.

Actually, after having explored a little, I found out that the reason for 
this is that many make variablesa are undefined: all the PERL_ ones it 
seems. Running
PERL_CC=gcc make
actually gets me past the I: not found error, but then it complains about 
some Perl includes not being found (which is probably related to another 
variable missing; however there are so many that I won't start trying to 
add them all by hand). Does anyone know why these aren't included correctly?

-

Here is my version information:
Apache 1.3.24
mod_perl 1.26

perl -V

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
   Platform:
 osname=cygwin, osvers=1.3.2(0.3932), archname=cygwin-multi
 uname='cygwin_nt-4.0 loreley 1.3.2(0.3932) 2001-05-20 23:28 i686 unknown '
 config_args='-de -Dusemultiplicity'
 hint=recommended, useposix=true, d_sigaction=define
 usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=define
 useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
 use64bitint=undef use64bitall=undef uselongdouble=undef
   Compiler:
 cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing 
-I/usr/local/include',
 optimize='-O2',
 cppflags='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing 
-I/usr/local/include'
 ccversion='', gccversion='2.95.3-5 (cygwin special)', gccosandvers=''
 intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=4
 alignbytes=8, usemymalloc=y, prototype=define
   Linker and Libraries:
 ld='ld2', ldflags =' -s -L/usr/local/lib'
 libpth=/usr/local/lib /usr/lib /lib
 libs=-lgdbm -lcrypt
 perllibs=-lcrypt
 libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=libperl5_6_1.a
   Dynamic Linking:
 dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' -s'
 cccdlflags=' ', lddlflags=' -s -L/usr/local/lib'


Characteristics of this binary (from libperl):
   Compile-time options: MULTIPLICITY USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
   Built under cygwin
   Compiled at Aug 22 2001 01:05:05
   @INC:
 /usr/lib/perl5/5.6.1/cygwin-multi
 /usr/lib/perl5/5.6.1
 /usr/lib/perl5/site_perl/5.6.1/cygwin-multi
 /usr/lib/perl5/site_perl/5.6.1
 /usr/lib/perl5/site_perl
 .



-- 
Per Einar Ellefsen
[EMAIL PROTECTED]





Re: mod_perl 1.26 build under Cygwin fails

2002-05-01 Thread Alexander Solovey

Per Einar Ellefsen wrote:
 I have been trying to get mod_perl 1.26 to build on Cygwin. With no luck.
 Has anyone else been successful in this?

 Build options for mod_perl:

 perl Makefile.PL APACHE_SRC=../apache_1.3.24/src DO_HTTPD=1 USE_APACI=1
 EVERYTHING=1

Try to apply patch (attached) and then build using these options:

perl Makefile.PL APACHE_SRC=../apache_1.3.24/src USE_APACI=1 EVERYTHING=1 
PERL_EXTRA_CFLAGS=-DUSEIMPORTLIB DO_HTTPD=1
APACI_ARGS='--enable-rule=SHARED_CORE --enable-module=so'

-
Alexander Solovey



mod_perl-1.26.patch
Description: Binary data


Re: mod_perl 1.26 build under Cygwin fails

2002-05-01 Thread Per Einar Ellefsen

At 13:56 01.05.2002, Alexander Solovey wrote:
Per Einar Ellefsen wrote:
  I have been trying to get mod_perl 1.26 to build on Cygwin. With no luck.
  Has anyone else been successful in this?
 
  Build options for mod_perl:
 
  perl Makefile.PL APACHE_SRC=../apache_1.3.24/src DO_HTTPD=1 USE_APACI=1
  EVERYTHING=1

Try to apply patch (attached) and then build using these options:

perl Makefile.PL APACHE_SRC=../apache_1.3.24/src USE_APACI=1 EVERYTHING=1 
PERL_EXTRA_CFLAGS=-DUSEIMPORTLIB DO_HTTPD=1
APACI_ARGS='--enable-rule=SHARED_CORE --enable-module=so'

Thanks a lot for that patch, atleast it fixed the initial problem. However, 
when mod_perl.config.sh is called, it reports Note (probably harmless): No 
library found for -lperl.

Well, it is harmful :) I get tons of linking errors at compilation time 
(undefined references). How do I get it to find the perl library, if any? 
Or, how do I compile one if I have to?


-- 
Per Einar Ellefsen
[EMAIL PROTECTED]





Re: mod_perl 1.26 build under Cygwin fails

2002-05-01 Thread Alexander Solovey

Per Einar Ellefsen wrote:
 Try to apply patch (attached) and then build using these options:
 
 perl Makefile.PL APACHE_SRC=../apache_1.3.24/src USE_APACI=1 EVERYTHING=1 
 PERL_EXTRA_CFLAGS=-DUSEIMPORTLIB DO_HTTPD=1
 APACI_ARGS='--enable-rule=SHARED_CORE --enable-module=so'
 
 Thanks a lot for that patch, atleast it fixed the initial problem. However, 
 when mod_perl.config.sh is called, it reports Note (probably harmless): No 
 library found for -lperl.
 
 Well, it is harmful :) I get tons of linking errors at compilation time 
 (undefined references). How do I get it to find the perl library, if any? 
 Or, how do I compile one if I have to?

Oh, I forgot to tell you that one more step is required:

cd /lib/perl5/5.6.1/cygwin-multi/CORE  ln -s libperl5_6_1.a libperl.a

mod_perl requires libperl.a to be present but cygwin doesn't provide it
by default. So, here is a symbolic link and it works.

-
Alexander Solovey