Re: Compiling mod_perl 1.24 with the Sun Solaris C Compiler

2001-01-24 Thread G.W. Haywood

Hi all,

On Wed, 24 Jan 2001, Matisse Enzer wrote:

> Thanks, I'll try compiling perl with the Solaris compiler, and then 
> Apache + mod_perl .

Check the List archives for stuff about Solaris recently,
I'm sure you'll find some useful pointers.

73,
Ged.





Re: Compiling mod_perl 1.24 with the Sun Solaris C Compiler

2001-01-24 Thread Matisse Enzer

Thanks, I'll try compiling perl with the Solaris compiler, and then 
Apache + mod_perl .


At 2:44 PM +0100 1/24/01, Jens-Uwe Mager wrote:
>On Tue, Jan 23, 2001 at 02:02:57PM -0800, Matisse Enzer wrote:
>>
>>  This is a re-posting with a  bit more information:
>>
>>  I'm having trouble getting mod_perl 1.24 to compile using the 
>>Solaris compiler.
>>
>>
>>  Compiler Version is: Sun WorkShop 6 2000/04/07 C 5.1)
>>  OS is:   Solaris 2.7
>>
>>
>>  Details:
>  >
>>  For various reasons I'm using the Apache 1.3.12 source tree, and I 
>>can compile
>>  fine using gcc, but the Solaris compiler complains:
>>
>>
>>  /opt/SUNWspro/WS6/bin/cc -c  -I../../os/unix -I../../include
>>  -DSOLARIS2=270 -DUSE_EXPAT -I../../lib/expat-lite
>>  `/export/home/matisse/devel/apache/apache_1.3.12/src/apaci`
>>  -I/usr/local/include
>>  -I/usr/local/lib/perl5/5.00503/sun4-solaris/CORE  -I. -I../..
>>  -DUSE_PERL_SSI -DMOD_PERL -KPIC -DSHARED_MODULE mod_include.c && mv
>>  mod_include.o mod_include.lo
>>  "/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line
>>  319: formal parameter lacks name: param #1
>>  "/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line
>>  319: formal parameter lacks name: param #2
>>  "/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line
>>  319: formal parameter lacks name: param #3
>>  "/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line
>>  319: syntax error before or at: __attribute__
>>  "/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line
>>  319: warning: syntax error:  empty declaration
>>  "/usr/include/ctype.h", line 48: cannot recover from previous errors
>>  cc: acomp failed for mod_include.c
>>
>>  Line 319 of 
>>/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h   is:
>>
>>   __attribute__((format 
>>(printf, 3, 4)));
>>
>  >
>
>This probably means that perl is configured using the gcc compiler. As
>with most plug-in systems it is recommended to compile all parts that
>are loaded into one address space using the exactly same compiler, that
>means in the modperl case all of Apache, Apache plug-ins, perl and perl
>plug-ins should be compiled using the Sun Workshop C compiler. Mixing
>compilers arbitrarily is asking for trouble.
>
>--
>Jens-Uwe Mager
>
>HELIOS Software GmbH
>Steinriede 3
>30827 Garbsen
>Germany
>
>Phone: +49 5131 709320
>FAX:   +49 5131 709325
>Internet:  [EMAIL PROTECTED]

-- 
---
Matisse Enzer
TechTv Web Engineering
[EMAIL PROTECTED]
415-355-4364 (desk)
415-225-6703 (cellphone)



Re: Compiling mod_perl 1.24 with the Sun Solaris C Compiler

2001-01-24 Thread Jens-Uwe Mager

On Tue, Jan 23, 2001 at 02:02:57PM -0800, Matisse Enzer wrote:
> 
> This is a re-posting with a  bit more information:
> 
> I'm having trouble getting mod_perl 1.24 to compile using the Solaris compiler.
> 
> 
> Compiler Version is: Sun WorkShop 6 2000/04/07 C 5.1)
> OS is:   Solaris 2.7
> 
> 
> Details:
> 
> For various reasons I'm using the Apache 1.3.12 source tree, and I can compile
> fine using gcc, but the Solaris compiler complains:
> 
> 
> /opt/SUNWspro/WS6/bin/cc -c  -I../../os/unix -I../../include 
> -DSOLARIS2=270 -DUSE_EXPAT -I../../lib/expat-lite 
> `/export/home/matisse/devel/apache/apache_1.3.12/src/apaci` 
> -I/usr/local/include 
> -I/usr/local/lib/perl5/5.00503/sun4-solaris/CORE  -I. -I../.. 
> -DUSE_PERL_SSI -DMOD_PERL -KPIC -DSHARED_MODULE mod_include.c && mv 
> mod_include.o mod_include.lo
> "/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
> 319: formal parameter lacks name: param #1
> "/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
> 319: formal parameter lacks name: param #2
> "/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
> 319: formal parameter lacks name: param #3
> "/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
> 319: syntax error before or at: __attribute__
> "/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
> 319: warning: syntax error:  empty declaration
> "/usr/include/ctype.h", line 48: cannot recover from previous errors
> cc: acomp failed for mod_include.c
> 
> Line 319 of   /usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h   is:
> 
>  __attribute__((format (printf, 3, 4)));
> 
> 

This probably means that perl is configured using the gcc compiler. As
with most plug-in systems it is recommended to compile all parts that
are loaded into one address space using the exactly same compiler, that
means in the modperl case all of Apache, Apache plug-ins, perl and perl
plug-ins should be compiled using the Sun Workshop C compiler. Mixing
compilers arbitrarily is asking for trouble.

-- 
Jens-Uwe Mager

HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany

Phone:  +49 5131 709320
FAX:+49 5131 709325
Internet:   [EMAIL PROTECTED]



Compiling mod_perl 1.24 with the Sun Solaris C Compiler

2001-01-23 Thread Matisse Enzer


This is a re-posting with a  bit more information:

I'm having trouble getting mod_perl 1.24 to compile using the Solaris compiler.


Compiler Version is: Sun WorkShop 6 2000/04/07 C 5.1)
OS is:   Solaris 2.7


Details:

For various reasons I'm using the Apache 1.3.12 source tree, and I can compile
fine using gcc, but the Solaris compiler complains:


/opt/SUNWspro/WS6/bin/cc -c  -I../../os/unix -I../../include 
-DSOLARIS2=270 -DUSE_EXPAT -I../../lib/expat-lite 
`/export/home/matisse/devel/apache/apache_1.3.12/src/apaci` 
-I/usr/local/include 
-I/usr/local/lib/perl5/5.00503/sun4-solaris/CORE  -I. -I../.. 
-DUSE_PERL_SSI -DMOD_PERL -KPIC -DSHARED_MODULE mod_include.c && mv 
mod_include.o mod_include.lo
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: formal parameter lacks name: param #1
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: formal parameter lacks name: param #2
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: formal parameter lacks name: param #3
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: syntax error before or at: __attribute__
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: warning: syntax error:  empty declaration
"/usr/include/ctype.h", line 48: cannot recover from previous errors
cc: acomp failed for mod_include.c

Line 319 of   /usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h   is:

 __attribute__((format (printf, 3, 4)));


which is part of:



#ifndef PerlIO_sprintf
extern int  PerlIO_sprintf  _((char *, int, const char *,...))
 __attribute__((format (printf, 3, 4)));
#endif


Steven Lembark <[EMAIL PROTECTED]> suggested:
>
>yup, a macro expansion.  thou art getting bit by the way in which
>the compiler on Solaris is hacking up the token replacement in
>this C macro.


Any ideas on how I can get this to compile with the Solaris compiler??

PS: I need to use this compiler because i want to compile in another 
module, mod_curl.c (StoryServer)
which requires the Solaris compiler.
-- 
---
Matisse Enzer
TechTv Web Engineering
[EMAIL PROTECTED]
415-355-4364 (desk)
415-225-6703 (cellphone)



Compiling mod_perl 1.24 with the Sun Solaris C Compiler

2001-01-19 Thread Matisse Enzer

I'm having trouble getting mod_perl 1.24 to compile using the Solaris compiler
(Version is: Sun WorkShop 6 2000/04/07 C 5.1)

Any ideas?

For various reasons I'm using the Apache 1.3.12 source tree, and I can compile
fine using gcc, but the Solaris compiler complains:


/opt/SUNWspro/WS6/bin/cc -c  -I../../os/unix -I../../include 
-DSOLARIS2=270 -DUSE_EXPAT -I../../lib/expat-lite 
`/export/home/matisse/devel/apache/apache_1.3.12/src/apaci` 
-I/usr/local/include 
-I/usr/local/lib/perl5/5.00503/sun4-solaris/CORE  -I. -I../.. 
-DUSE_PERL_SSI -DMOD_PERL -KPIC -DSHARED_MODULE mod_include.c && mv 
mod_include.o mod_include.lo
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: formal parameter lacks name: param #1
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: formal parameter lacks name: param #2
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: formal parameter lacks name: param #3
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: syntax error before or at: __attribute__
"/usr/local/lib/perl5/5.00503/sun4-solaris/CORE/iperlsys.h", line 
319: warning: syntax error:  empty declaration
"/usr/include/ctype.h", line 48: cannot recover from previous errors
cc: acomp failed for mod_include.c



PS: I need to use this compiler becaue i want to compile in another 
module, mod_curl.c (StoryServer)
which require the Solaris compiler.


-- 
---
Matisse Enzer
TechTv Web Engineering
[EMAIL PROTECTED]
415-355-4364 (desk)
415-225-6703 (cellphone)



RE: compiling mod_perl-1.24

2000-11-28 Thread Lakshmanan, Srikrishnan

I ran into this problem a week ago on both Solaris 2.6 and 2.7 , and I was
using gnu cc 2.7.2.3 . I upgraded to gnu cc 2.95.2 . I had to recompile my
perl 5.6.0 from stable.tar at www.cpan.org using this compiler and rebuilt
Apache and mod_perl without any problems . 

You will find a pre-built binary for gnu cc 2.95.2 at www.sunfreeware.com
for your Solaris version.

Sri Lakshmanan

Koch Petroleum Group
[EMAIL PROTECTED]
"A doctor can bury his mistakes, an architect can only advise his client to
plant vines" -Frank Lloyd Wright


> -Original Message-
> From: Joseph Crotty [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday,November 28,2000 12:03 PM
> To:   '[EMAIL PROTECTED]'
> Subject:  compiling mod_perl-1.24
> 
> I am on a sun box:
> 
> uname -a
> 
> SunOS mailroom 5.6 Generic_105181-22 sun4u sparc SUNW,Ultra-5_10
> 
> I built and tested both perl 5.6.0 and apache_1.3.9 against gcc and they
> check out OK:
> 
> gcc -v
> 
> Reading specs from
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.2/specs
> gcc version 2.7.2.2
> 
> perl -V
> 
> Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
>   Platform:
> osname=solaris, osvers=2.6, archname=sun4-solaris
> uname='sunos mailroom 5.6 generic_105181-22 sun4u sparc
> sunw,ultra-5_10
> '
> config_args='-Dcc=gcc'
> hint=previous, useposix=true, d_sigaction=define
> usethreads=undef use5005threads=undef useithreads=undef
> usemultiplicity=undef
> useperlio=undef d_sfio=undef uselargefiles=define 
> use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
>   Compiler:
> cc='gcc', optimize='-O', gccversion=2.7.2.2
> cppflags='-I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64'
> ccflags ='-I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64'
> stdchar='unsigned char', d_stdstdio=define, usevfork=false
> intsize=4, longsize=4, ptrsize=4, doublesize=8
> d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
> ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
> lseeksize=8
> alignbytes=8, usemymalloc=y, prototype=define
>   Linker and Libraries:
> ld='gcc', ldflags =' -L/usr/local/lib '
> libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
> libs=-lsocket -lnsl -lgdbm -ldl -lm -lc -lcrypt -lsec
> libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
>   Dynamic Linking:
> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
> cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'
> 
> 
> Characteristics of this binary (from libperl): 
>   Compile-time options: USE_LARGE_FILES
>   Built under solaris
>   Compiled at Nov 27 2000 16:41:31
>   @INC:
> /usr/local/lib/perl5/5.6.0/sun4-solaris
> /usr/local/lib/perl5/5.6.0
> /usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris
> /usr/local/lib/perl5/site_perl/5.6.0
> /usr/local/lib/perl5/site_perl
> 
> So, I run the Makefile as follows:
> 
> perl Makefile.PL EVERYTHING=1 APACHE_PREFIX=/usr/local/apache
> 
> Configure mod_perl with ../apache_1.3.9/src ? [y] 
> Shall I build httpd in ../apache_1.3.9/src for you? [y] 
> Appending mod_perl to src/Configuration
> Using config file: /home/dvlp/jcrotty/mod_perl-1.24/src/Configuration
> Creating Makefile
>  + configured for Solaris 260 platform
>  + setting C compiler to gcc
>  + setting C pre-processor to gcc -E
>  + checking for system header files
>  + adding selected modules
>  + checking sizeof various data types
>  + doing sanity check on compiler and options
> Creating Makefile in support
> Creating Makefile in os/unix
> Creating Makefile in ap
> Creating Makefile in main
> Creating Makefile in lib/expat-lite
> Creating Makefile in modules/standard
> EXTRA_CFLAGS: -DSOLARIS2=260 -DUSE_EXPAT -I$(SRCDIR)/lib/expat-lite
> PerlDispatchHandler.enabled
> PerlChildInitHandlerenabled
> PerlChildExitHandlerenabled
> PerlPostReadRequestHandler..enabled
> PerlTransHandlerenabled
> PerlHeaderParserHandler.enabled
> PerlAccessHandler...enabled
> PerlAuthenHandler...enabled
> PerlAuthzHandlerenabled
> PerlTypeHandler.enabled
> PerlFixupHandlerenabled
> PerlHandler.enabled
> PerlLogHandler..enabled
> PerlInitHandler.enabled
> PerlCleanupHandler..enabled
> PerlRestartHandler..enabled
> PerlStackedHandlers.enabled
> PerlMethodHandlers...

compiling mod_perl-1.24

2000-11-28 Thread Joseph Crotty

I am on a sun box:

uname -a

SunOS mailroom 5.6 Generic_105181-22 sun4u sparc SUNW,Ultra-5_10

I built and tested both perl 5.6.0 and apache_1.3.9 against gcc and they
check out OK:

gcc -v

Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.7.2.2/specs
gcc version 2.7.2.2

perl -V

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
osname=solaris, osvers=2.6, archname=sun4-solaris
uname='sunos mailroom 5.6 generic_105181-22 sun4u sparc sunw,ultra-5_10
'
config_args='-Dcc=gcc'
hint=previous, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define 
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
cc='gcc', optimize='-O', gccversion=2.7.2.2
cppflags='-I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64'
ccflags ='-I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64'
stdchar='unsigned char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib '
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -lgdbm -ldl -lm -lc -lcrypt -lsec
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: USE_LARGE_FILES
  Built under solaris
  Compiled at Nov 27 2000 16:41:31
  @INC:
/usr/local/lib/perl5/5.6.0/sun4-solaris
/usr/local/lib/perl5/5.6.0
/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris
/usr/local/lib/perl5/site_perl/5.6.0
/usr/local/lib/perl5/site_perl

So, I run the Makefile as follows:

perl Makefile.PL EVERYTHING=1 APACHE_PREFIX=/usr/local/apache

Configure mod_perl with ../apache_1.3.9/src ? [y] 
Shall I build httpd in ../apache_1.3.9/src for you? [y] 
Appending mod_perl to src/Configuration
Using config file: /home/dvlp/jcrotty/mod_perl-1.24/src/Configuration
Creating Makefile
 + configured for Solaris 260 platform
 + setting C compiler to gcc
 + setting C pre-processor to gcc -E
 + checking for system header files
 + adding selected modules
 + checking sizeof various data types
 + doing sanity check on compiler and options
Creating Makefile in support
Creating Makefile in os/unix
Creating Makefile in ap
Creating Makefile in main
Creating Makefile in lib/expat-lite
Creating Makefile in modules/standard
EXTRA_CFLAGS: -DSOLARIS2=260 -DUSE_EXPAT -I$(SRCDIR)/lib/expat-lite
PerlDispatchHandler.enabled
PerlChildInitHandlerenabled
PerlChildExitHandlerenabled
PerlPostReadRequestHandler..enabled
PerlTransHandlerenabled
PerlHeaderParserHandler.enabled
PerlAccessHandler...enabled
PerlAuthenHandler...enabled
PerlAuthzHandlerenabled
PerlTypeHandler.enabled
PerlFixupHandlerenabled
PerlHandler.enabled
PerlLogHandler..enabled
PerlInitHandler.enabled
PerlCleanupHandler..enabled
PerlRestartHandler..enabled
PerlStackedHandlers.enabled
PerlMethodHandlers..enabled
PerlDirectiveHandlers...enabled
PerlTableApienabled
PerlLogApi..enabled
PerlUriApi..enabled
PerlUtilApi.enabled
PerlFileApi.enabled
PerlConnectionApi...enabled
PerlServerApi...enabled
PerlSectionsenabled
PerlSSI.enabled
Will run tests as User: 'nobody' Group: 'other'
Checking CGI.pm VERSION..ok
Checking for LWP::UserAgent..ok
Checking for HTML::HeadParserok
Writing Makefile for Apache
Writing Makefile for Apache::Connection
Writing Makefile for Apache::Constants
Writing Makefile for Apache::File
Writing Makefile for Apache::Leak
Writing Makefile for Apache::Log
Writing Makefile for Apache::ModuleConfig
Writing Makefile for Apache::PerlRunXS
Writing Makefile for Apache::Server
Writing Makefile for Apache::Symbol
Writing Makefile for Apache::Table
Writing Makefile for Apache::URI
Writing Makefile for Apache::Util
Writing Makefile for mod_perl

I run make and get this:

gcc -c  -I../os/unix -I../include   -DSOLARIS2=260 -DUSE_EXPAT
-I../lib/expat-lite -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64  -I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE  -I.
-I../.. -DUSE_PERL_SSI -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DMOD_PERL http_config.c
In file included from /usr/include/sys/vnode.h:41,
 from /

prob compiling mod_perl 1.24/perl 5.6.0/apache 1.3.12?

2000-08-30 Thread Daniel Piczak

can anyone be so kind to point out what i'm doing wrong ;o)

[beast]/home/beast/daniel/src/perl/mod_perl-1.24{139} root : make
(cd ../apache_1.3.12/src &&  make CC="cc";)
===> os/unix
<=== os/unix
===> ap
<=== ap
===> main
cc -c -I.. -I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE -I../os/unix -I../
include   -DSOLARIS2=260 -DMOD_PERL -DUSE_PERL_SSI -I/usr/local/include -D_L
ARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_EXPAT -I../lib/expat-lite -DNO_
DL_NEEDED `perl -MExtUtils::Embed -e
ccopts`   -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -
I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE  -I. -I../.. -DUSE_PERL_SSI -I
/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DMOD_PERL
http_config.c
In file included from /usr/include/sys/vnode.h:41,
 from /usr/include/sys/stream.h:21,
 from /usr/include/netinet/in.h:38,
 from ../include/ap_config.h:1081,
 from ../include/httpd.h:71,
 from http_config.c:75:
/usr/include/sys/resource.h:148: warning: `struct rlimit64' declared inside
parameter list
/usr/include/sys/resource.h:148: warning: its scope is only this definition
or declaration,
/usr/include/sys/resource.h:148: warning: which is probably not what you
want.
/usr/include/sys/resource.h:149: warning: `struct rlimit64' declared inside
parameter list
http_config.c: In function `ap_init_virtual_host':
http_config.c:1296: storage size of `limits' isn't known
*** Error code 1
make: Fatal error: Command failed for target `http_config.o'
Current working directory /ext4/home/daniel/src/perl/apache_1.3.12/src/main
*** Error code 1
make: Fatal error: Command failed for target `subdirs'
Current working directory /ext4/home/daniel/src/perl/apache_1.3.12/src
*** Error code 1
make: Fatal error: Command failed for target `apache_httpd'





Re: Trouble compiling mod_perl 1.24 with Apache 1.3.12

2000-08-09 Thread William R. Ward

Frank D. Cringle writes:
>[EMAIL PROTECTED] (William R. Ward) writes:
>> [EMAIL PROTECTED] writes:
>> >please use the [EMAIL PROTECTED] list for support questions.
>> 
>> Then please put that e-mail address somewhere obvious on the
>> perl.apache.org website.  Yours was the only one I could find.
>> (It was listed as [EMAIL PROTECTED] too, which bounced).
>> 
>> >http://perl.apache.org/guide/ also has good install docs.
>> 
>> I was only able to find a link to this once I knew what to look for.
>> I was looking in the FAQ and found your e-mail address.
>
>Which FAQ was that?
>
>The only addresses in the mod_perl faq are
>[EMAIL PROTECTED], [EMAIL PROTECTED] and my
>own.

Sorry, I remembered wrong.  It wasn't the FAQ, actually, it was the
download page.

http://apache.perl.org/dist/

--Bill.

-- 
William R Ward  Bay View Consulting Services   http://www.bayview.com/~wrw/
[EMAIL PROTECTED]   PMB 339, 1803 Mission Stphone +1 831/423-3295
PGP Key 0x2BD331E5Santa Cruz, CA 95060 USA  fax +1 831/423-6499
Public key at http://www.bayview.com/~wrw/pubkey.txt  pager +1 831/458-8862



Re: Trouble compiling mod_perl 1.24 with Apache 1.3.12

2000-08-09 Thread Frank D. Cringle

[EMAIL PROTECTED] (William R. Ward) writes:
> [EMAIL PROTECTED] writes:
> >please use the [EMAIL PROTECTED] list for support questions.
> 
> Then please put that e-mail address somewhere obvious on the
> perl.apache.org website.  Yours was the only one I could find.
> (It was listed as [EMAIL PROTECTED] too, which bounced).
> 
> >http://perl.apache.org/guide/ also has good install docs.
> 
> I was only able to find a link to this once I knew what to look for.
> I was looking in the FAQ and found your e-mail address.

Which FAQ was that?

The only addresses in the mod_perl faq are
[EMAIL PROTECTED], [EMAIL PROTECTED] and my
own.

-- 
Frank Cringle,  [EMAIL PROTECTED]
voice: (+49 2304) 467101; fax: 943357



Re: Trouble compiling mod_perl 1.24 with Apache 1.3.12

2000-08-08 Thread William R. Ward

[EMAIL PROTECTED] writes:
>On Tue, 1 Aug 2000, William R. Ward wrote:
>
>> 
>> When I try to run "perl Makefile.PL" I get this error:
>> 
>> sh: ./Configure: No such file or directory
>> can't open /Makefile No such file or directory at Makefile.PL line 617,  
>chunk 1.
>> 
>> The "configure" script that comes with Apache is spelled with a
>> lowercase "c".  When I edited Makefile.PL to fix this error and run it
>> again, I get this error:
>
>look again, apache has both a configure script and a src/Configure script.

Right you are.  In that case, I think the Makefile.PL is pretty
stupid.  It should check for the "src" directory and DWIM.

>please use the [EMAIL PROTECTED] list for support questions.

Then please put that e-mail address somewhere obvious on the
perl.apache.org website.  Yours was the only one I could find.
(It was listed as [EMAIL PROTECTED] too, which bounced).

>http://perl.apache.org/guide/ also has good install docs.

I was only able to find a link to this once I knew what to look for.
I was looking in the FAQ and found your e-mail address.

I'd suggest putting a link to this at the very top.  But even that
guide doesn't make the answer very obvious.

--Bill.

-- 
William R Ward  Bay View Consulting Services   http://www.bayview.com/~wrw/
[EMAIL PROTECTED]   PMB 339, 1803 Mission Stphone +1 831/423-3295
PGP Key 0x2BD331E5Santa Cruz, CA 95060 USA  fax +1 831/423-6499
Public key at http://www.bayview.com/~wrw/pubkey.txt  pager +1 831/458-8862



Re: Problem compiling mod_perl 1.24 on Solaris 2.6

2000-06-01 Thread Doug MacEachern

On Fri, 26 May 2000, Fred Miller wrote:
 
> Thank you very much. Sorry for being such a newbie. 

no need to apologize, this sort of problem isn't normal, if anyone should
say sorry, it's sun for their flawed compiler kit.

> I rebuilt Perl with gcc, and then was able to get a build of Apache with
> mod_perl.

great news.




Re: Problem compiling mod_perl 1.24 on Solaris 2.6

2000-05-26 Thread Fred Miller

Doug MacEachern wrote:
> 
> On Wed, 24 May 2000, Fred Miller wrote:
> 
> > Like I said, I'm a bit naive in these matters. I didn't specify using
> > gcc or cc. I used the same path to compile Perl, Apache, and Mod_Perl.
> > When I aaksed which gcc and which cc, my machine does report gcc
> > appearing in my path ahead of cc. Could that be the problem?
> 
> i could try re-building Perl like so:
> 
> % ./Configure -des -Dcc=gcc && make test && make install
> 
> that is, go with all the defaults, but force Perl to use gcc.

Thank you very much. Sorry for being such a newbie. 
I rebuilt Perl with gcc, and then was able to get a build of Apache with
mod_perl.
Now to try and make this puppy learn a few tricks...

I appreciate your help and patience.

Best regards,

Fred Miller
-- 
[EMAIL PROTECTED]
http://titan.iwu.edu/~fmiller/



Re: Problem compiling mod_perl 1.24 on Solaris 2.6

2000-05-25 Thread Doug MacEachern

On Wed, 24 May 2000, Fred Miller wrote:

> Like I said, I'm a bit naive in these matters. I didn't specify using
> gcc or cc. I used the same path to compile Perl, Apache, and Mod_Perl.
> When I aaksed which gcc and which cc, my machine does report gcc
> appearing in my path ahead of cc. Could that be the problem?

i could try re-building Perl like so:

% ./Configure -des -Dcc=gcc && make test && make install

that is, go with all the defaults, but force Perl to use gcc.




Re: Problem compiling mod_perl 1.24 on Solaris 2.6

2000-05-24 Thread Fred Miller

Fred Miller wrote:
> 
> Doug MacEachern wrote: 
> >looking at the line number, i would try replacing any occurance of:
> >
> > perl_eval_sv -> eval_sv
> > perl_call_sv -> call_sv
> > perl_call_pv -> call_pv
> 
> I wish I was experienced enough to know what this means.


Now I think I'm starting to get confused.

I tried building Apache and mod_perl by hand, loosely following some
instructions I found on the web labeled "mod_perl installation".

This part worked
perl Makefile.PL APACHE_SRC=../apache_1.3.12/src NO_HTTPD=1 EVERYTHING=1
make
make install

All looked good

I added to apache_1.3.12/src/Configuration
addModule module/perl/libperl.a

and the following EXTRA_LIBS and EXTRA_CFLAGS
EXTRA_LIBS=`perl -MExtUtils::Embed -l ldopts`
EXTRA_CFLAGS='perl -MExtUtils::Embed -e ccopts`

I checked apache_1.3.12/src/modules/perl and a bunch of stuff had been
put in there from my mod_perl build

I then ran ./Configure form within apache_1.3.12/src - no problem
but when I ran make, I received familiar errors:

gcc -c -I../.. -I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE
-I../../os/unix -I../../include   -DSOLARIS2=260 -DMOD_PERL
-DUSE_PERL_SSI -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED
`perl -MExtUtils::Embed -e ccopts` mod_auth.c
gcc -c -I../.. -I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE
-I../../os/unix -I../../include   -DSOLARIS2=260 -DMOD_PERL
-DUSE_PERL_SSI -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED
`perl -MExtUtils::Embed -e ccopts` mod_setenvif.c
rm -f libstandard.a
ar cr libstandard.a mod_env.o mod_log_config.o mod_mime.o
mod_negotiation.o mod_status.o mod_include.o mod_autoindex.o mod_dir.o
mod_cgi.o mod_asis.o mod_imap.o mod_actions.o mod_userdir.o mod_alias.o
mod_access.o mod_auth.o mod_setenvif.o 
ranlib libstandard.a
<=== modules/standard
===> modules/perl
cc -O -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE
-DMOD_PERL_VERSION=\"1.24\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.24\"
-I../.. -I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE -I../../os/unix
-I../../include   -DSOLARIS2=260 -DMOD_PERL -DUSE_PERL_SSI
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `perl
-MExtUtils::Embed -e ccopts` -c mod_perl.c
"/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE/perl.h", line 1929:
warning: operand treated as unsigned: 0x87654321
"./mod_perl.h", line 584: warning: macro replacement within a string
literal
"./mod_perl.h", line 587: warning: macro replacement within a string
literal
"./mod_perl.h", line 590: warning: macro replacement within a string
literal
"./mod_perl.h", line 593: warning: macro replacement within a string
literal
"mod_perl.c", line 347: fatal: macro recursion
cc: acomp failed for mod_perl.c
make[2]: *** [mod_perl.o] Error 2
make[1]: *** [all] Error 1
make: *** [subdirs] Error 1

Recommendations for how best to proceed?
I find this quite curious, as I have Apache-1.3.12 working without
mod_perl, and mod_perl seemed to build just fine separate from Apache.

Thanks,
Fred

-- 
[EMAIL PROTECTED]
http://titan.iwu.edu/~fmiller/



Re: Problem compiling mod_perl 1.24 on Solaris 2.6

2000-05-24 Thread Fred Miller

Doug MacEachern wrote:
> 
> On Tue, 23 May 2000, Fred Miller wrote:
> > I am experiencing what appears to be a very similar problem, but with
> > more recent modules and OS. I am running mod_perl 1.24, Perl 5.6.0,
> > Apache 1.3.12, Solaris 2.6
> 
> perl -V would help.  is your cc gcc or sun's?

# perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
osname=solaris, osvers=2.6, archname=sun4-solaris
uname='sunos dmci 5.6 generic_105181-03 sun4u sparc sunw,ultra-1 '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define 
use64bitint=undef use64bitall=undef uselongdouble=undef
usesocks=undef
  Compiler:
cc='cc', optimize='-O', gccversion=
cppflags='-I/usr/local/include'
ccflags ='-I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64'
stdchar='unsigned char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib -L/opt/gnu/lib '
libpth=/usr/local/lib /opt/gnu/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc -lcrypt -lsec
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-KPIC', lddlflags='-G -L/usr/local/lib -L/opt/gnu/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: USE_LARGE_FILES
  Built under solaris
  Compiled at May 16 2000 16:01:12
  @INC:
/usr/local/lib/perl5/5.6.0/sun4-solaris
/usr/local/lib/perl5/5.6.0
/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris
/usr/local/lib/perl5/site_perl/5.6.0
/usr/local/lib/perl5/site_perl
.

Like I said, I'm a bit naive in these matters. I didn't specify using
gcc or cc. I used the same path to compile Perl, Apache, and Mod_Perl.
When I aaksed which gcc and which cc, my machine does report gcc
appearing in my path ahead of cc. Could that be the problem?

>looking at the line number, i would try replacing any occurance of:
>
> perl_eval_sv -> eval_sv
> perl_call_sv -> call_sv
> perl_call_pv -> call_pv

I wish I was experienced enough to know what this means.

Thanks for the help.

Fred


-- 
[EMAIL PROTECTED]
http://titan.iwu.edu/~fmiller/



Re: Problem compiling mod_perl 1.24 on Solaris 2.6

2000-05-23 Thread Doug MacEachern

On Tue, 23 May 2000, Fred Miller wrote:

> On 4/26/2000, Steve Hay wrote about "Problem compiling mod_perl 1.23 on
> Solaris 2.4"
> 
> I am experiencing what appears to be a very similar problem, but with
> more recent modules and OS. I am running mod_perl 1.24, Perl 5.6.0,
> Apache 1.3.12, Solaris 2.6

perl -V would help.  is your cc gcc or sun's?
looking at the line number, i would try replacing any occurance of:

perl_eval_sv -> eval_sv
perl_call_sv -> call_sv
perl_call_pv -> call_pv

why your compiler is tripping on those macros, i have no idea.




Problem compiling mod_perl 1.24 on Solaris 2.6

2000-05-23 Thread Fred Miller

On 4/26/2000, Steve Hay wrote about "Problem compiling mod_perl 1.23 on
Solaris 2.4"

I am experiencing what appears to be a very similar problem, but with
more recent modules and OS. I am running mod_perl 1.24, Perl 5.6.0,
Apache 1.3.12, Solaris 2.6

Perl Makefile.PL with options runs successfully.

When I run make, I get output nearly identical to that reported by Steve
Hay. Here are the last few lines output from my make:

 "/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE/perl.h", line 1929:
warning: operand treated as unsigned: 0x87654321
"./mod_perl.h", line 584: warning: macro replacement within a string
literal
"./mod_perl.h", line 587: warning: macro replacement within a string
literal
"./mod_perl.h", line 590: warning: macro replacement within a string
literal
"./mod_perl.h", line 593: warning: macro replacement within a string
literal
"mod_perl.c", line 347: fatal: macro recursion
cc: acomp failed for mod_perl.c
make[5]: *** [mod_perl.o] Error 2
make[4]: *** [all] Error 1
make[3]: *** [subdirs] Error 1
make[3]: Leaving directory `/export/home/fmiller/apache_1.3.12/src'
make[2]: *** [build-std] Error 2
make[2]: Leaving directory `/export/home/fmiller/apache_1.3.12'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/export/home/fmiller/apache_1.3.12'
make: *** [apaci_httpd] Error 2


I have previously successfully installed Apache 1.3.12 on this system
without mod_perl.

Steve Hay reported that he solved his problem by re=compiling
"everything with the -Xa compiler flag".

I confess to being a bit naive when it comes to compiling and
installing.

Are there some simple steps I should follow to proceed?


Thanks for all the support.

Fred Miller
-- 
[EMAIL PROTECTED]
http://titan.iwu.edu/~fmiller/