Hello,

I'm in the process of trying to build mod_perl and apache on an IRIX 6.3 
machine.

I built perl 5.6, and installed it into its own subdirectory (until I can 
verify that I can get apache/mod_perl
working, as this is a production machine), and built and installed the 
apropriate modules from CPAN.

When I try to build mod_perl and apache, I get errors during the Apache 
"sanity check on compiler
and options" phase, where the test fails with an ld32 error "FATAL 9: I/O 
error (1110): No such file or
directory".

When playing around with this some, it appears that the problem is coming 
about due to the inclusion
of the same set of CFLAGS twice.  I'm including the command used in the 
mod_perl directory, as well
as the resultant output.  I searched around on the web, but information 
was rather sparse, and we don't have
any bright ideas here at the moment, so with any luck someone out there 
will have some thoughts on this.

>From the looks of it, it looks like mod_perl might be determining the 
CFLAGS, and then re-using them from
the perl install?

I've broken the lines up as best I can (using Notes, so it's tough to 
figure the best spot for line breaks), and
used a backslash to show the continuations.

-----

msteeves::spiderman [17:16] > /home/spiderman/apache_upgrade/bin/perl 
Makefile.PL \ APACHE_PREFIX=/home/spiderman/apache_upgrade/apache_1.3.20 \
APACHE_SRC=../../APACHE/apache_1.3.20/src \
DO_HTTPD=1 \
USE_APACI=1 \
EVERYTHING=1 \
PERL_TRACE=1
Will configure via APACI
cp apaci/Makefile.libdir 
../../APACHE/apache_1.3.20/src/modules/perl/Makefile.libdir
cp apaci/Makefile.tmpl 
../../APACHE/apache_1.3.20/src/modules/perl/Makefile.tmpl
cp apaci/README ../../APACHE/apache_1.3.20/src/modules/perl/README
cp apaci/configure ../../APACHE/apache_1.3.20/src/modules/perl/configure
cp apaci/libperl.module 
../../APACHE/apache_1.3.20/src/modules/perl/libperl.module
cp apaci/mod_perl.config.sh 
../../APACHE/apache_1.3.20/src/modules/perl/mod_perl.config.sh
cp apaci/load_modules.pl 
../../APACHE/apache_1.3.20/src/modules/perl/load_modules.pl
cp apaci/find_source 
../../APACHE/apache_1.3.20/src/modules/perl/find_source
cp apaci/apxs_cflags 
../../APACHE/apache_1.3.20/src/modules/perl/apxs_cflags
cp apaci/perl_config 
../../APACHE/apache_1.3.20/src/modules/perl/perl_config
cp apaci/mod_perl.exp 
../../APACHE/apache_1.3.20/src/modules/perl/mod_perl.exp
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: 'msteeves' Group: 'is'
(cd ../../APACHE/apache_1.3.20 && CC="cc -n32" CFLAGS=" -D_BSD_TYPES 
-D_BSD_TIME \
 -woff 1009 1110 1174 1184 1552 -OPT:Olimit=0 -I/opt/include -DLANGUAGE_C" 
./configure \
--activate-module=src/modules/perl/libperl.a --disable-rule=EXPAT \
--prefix=/home/spiderman/apache_upgrade/apache_1.3.20)
Configuring for Apache, Version 1.3.20
 + using installation path layout: Apache (config.layout)
 + activated perl module (modules/perl/libperl.a)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
 + configured for SGI IRIX-32 platform
 + setting C pre-processor to cc -n32 -E
 + checking for system header files
 + adding selected modules
    o perl_module uses ConfigStart/End
      + mod_perl build type: OBJ
      + id: mod_perl/1.26
      + id: Perl/v5.6.0 (irix) [/home/spiderman/apache_upgrade/bin/perl]
      + setting up mod_perl build environment
      + adjusting Apache build environment
      + enabling Perl support for SSI (mod_include)
 + checking sizeof various data types
 + doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed.  The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

        cd ..; cc -n32  -DIRIX -DMOD_PERL -DUSE_PERL_SSI -D_BSD_TYPES 
-D_BSD_TIME \
-woff 1009,1110,1174,1184,1552 -OPT:Olimit=0 -I/opt/include -DLANGUAGE_C \
-DUSE_HSREGEX -DNO_DL_NEEDED -D_BSD_TYPES -D_BSD_TIME \
-woff 1009 1110 1174 1184 1552 -OPT:Olimit=0 -I/opt/include -DLANGUAGE_C \
`./apaci` -I. 
-I/home/spiderman/apache_upgrade/lib/perl5/5.6.0/IP32-irix/CORE \
-o helpers/dummy helpers/dummy.c   -L/opt/lib \
-Wl,-woff,84 
/home/spiderman/apache_upgrade/lib/perl5/5.6.0/IP32-irix/auto/DynaLoader/DynaLoader.a 
\ -L/home/spiderman/apache_upgrade/lib/perl5/5.6.0/IP32-irix/CORE -lperl 
-lm -lc
ld32: FATAL 9: I/O error (1110): No such file or directory
*** Error code 2 (bu21)
======== Error Output for sanity check ========
============= End of Error Report =============

 Aborting!
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
msteeves::spiderman [17:17] > /home/spiderman/apache_upgrade/bin/perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=irix, osvers=6.3, archname=IP32-irix
    uname='irix spiderman 6.3 12161207 ip32 '
    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 -n32', optimize='-O3', gccversion=
    cppflags='-D_BSD_TYPES -D_BSD_TIME -OPT:Olimit=0 -I/opt/include 
-DLANGUAGE_C'
    ccflags ='-D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1174,1184,1552 
-OPT:Olimit=0 -I/opt/include -DLANGUAGE_C'
    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=n, prototype=define
  Linker and Libraries:
    ld='cc -n32', ldflags ='-L/opt/lib -Wl,-woff,84'
    libpth=/opt/lib /usr/lib32 /lib32 /lib /usr/lib
    libs=-lm -lc
    libc=/usr/lib32/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-n32 -shared -L/opt/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under irix
  Compiled at Jul 24 2001 15:30:38
  @INC:
    /home/spiderman/apache_upgrade/lib/perl5/5.6.0/IP32-irix
    /home/spiderman/apache_upgrade/lib/perl5/5.6.0
    /home/spiderman/apache_upgrade/lib/perl5/site_perl/5.6.0/IP32-irix
    /home/spiderman/apache_upgrade/lib/perl5/site_perl/5.6.0
    /home/spiderman/apache_upgrade/lib/perl5/site_perl



-Mike
-- 
Michael Steeves                                   |     Phone: 
617-444-6100
[EMAIL PROTECTED]                  |     Fax:       617-444-6105
Senior Network Systems Engineer        |
Vertex Pharmaceuticals                        |

Reply via email to