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
> PerlChildInitHandler........enabled
> PerlChildExitHandler........enabled
> PerlPostReadRequestHandler..enabled
> PerlTransHandler............enabled
> PerlHeaderParserHandler.....enabled
> PerlAccessHandler...........enabled
> PerlAuthenHandler...........enabled
> PerlAuthzHandler............enabled
> PerlTypeHandler.............enabled
> PerlFixupHandler............enabled
> PerlHandler.................enabled
> PerlLogHandler..............enabled
> PerlInitHandler.............enabled
> PerlCleanupHandler..........enabled
> PerlRestartHandler..........enabled
> PerlStackedHandlers.........enabled
> PerlMethodHandlers..........enabled
> PerlDirectiveHandlers.......enabled
> PerlTableApi................enabled
> PerlLogApi..................enabled
> PerlUriApi..................enabled
> PerlUtilApi.................enabled
> PerlFileApi.................enabled
> PerlConnectionApi...........enabled
> PerlServerApi...............enabled
> PerlSections................enabled
> PerlSSI.....................enabled
> Will run tests as User: 'nobody' Group: 'other'
> Checking CGI.pm VERSION..........ok
> Checking for LWP::UserAgent......ok
> Checking for HTML::HeadParser....ok
> 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 /usr/include/sys/stream.h:21,
>                  from /usr/include/netinet/in.h:38,
>                  from ../include/ap_config.h:1050,
>                  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 /home/dvlp/jcrotty/apache_1.3.9/src/main
> *** Error code 1
> make: Fatal error: Command failed for target `subdirs'
> Current working directory /home/dvlp/jcrotty/apache_1.3.9/src
> *** Error code 1
> make: Fatal error: Command failed for target `apache_httpd'
> 
> Thanks so much if anyone out there can help.
> 
> Joe Crotty
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to