perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From R Blake <blak...@mac.com>
Subject failed MODPERL-2 build on MacOSX (Apache/2.0.36 mod_perl/1.99_02-dev Perl/v5.6.1)
Date Sat, 25 May 2002 20:13:45 GMT
hi all,

i've built httpd-2.0.36 & perl-5.6.1 successfully on MacOSX server 10.1.4. 
everything runs just fine .... however, modperl2 is causing me some grief.

config seems OK, but make dies at--
...
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_perl.c && mv modperl_perl.o modperl_perl.lo
modperl_perl.c: In function `modperl_perl_destruct':
modperl_perl.c:113: `environ' undeclared (first use in this function)
modperl_perl.c:113: (Each undeclared identifier is reported only once
modperl_perl.c:113: for each function it appears in.)
make[1]: *** [modperl_perl.lo] Error 1
make[1]: Leaving directory `/usr/ports/modperl-2.0/src/modules/perl'
make: *** [modperl_lib] Error 2

i've searched the groups for info re: this, with no luck yet ....

anyone have any ideas/suggestion here?

thx,

richard

for reference, i've included relevant environment/build info below .....

===================================================
SHELL ENVIRONMENT
[root@server]env
HOSTTYPE=macintosh
VENDOR=apple
OSTYPE=darwin
MACHTYPE=powerpc
LC_ALL=C
LANG=en_US
LINGUAS=en_US
LOCALEDIR=/usr/X11R6/lib/X11/locale:/usr/local/lib/locale
CC=cc
CXX=cc

===================================================
COMPILER
[root@server]cc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/2.95.2/specs
Apple Computer, Inc. version gcc-934.3, based on gcc version 2.95.2 
19991024 (release)

===================================================
PERL CONFIG
[root@server]cat perl-5.6.1/myconfig
#!/bin/sh

# This script is designed to provide a handy summary of the configuration
# information being used to build perl. This is especially useful if you
# are requesting help from comp.lang.perl.misc on usenet or via mail.

# Note that the text lines /^Summary of/ .. /^\s*$/ are copied into 
Config.pm.
cat <<'!NO!SUBS!'
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=darwin, osvers=5.4, archname=darwin-64all
    uname='darwin server.internal.presence-group.net 5.4 darwin kernel 
version 5.4: wed apr 10 09:27:47 pdt 2002; 
root:xnuxnu-201.19.3.obj~1release_ppc power macintosh powerpc '
    config_args='-Dfirstmakefile=GNUmakefile'
    hint=previous, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=define uselongdouble=undef
  Compiler:
    cc='cc', ccflags ='-pipe -fno-common -no-cpp-precomp 
-fno-strict-aliasing -DHAS_TELLDIR_PROTOTYPE -I/usr/local/include 
-I/usr/include -I/usr/local/BerkeleyDB/include',
    optimize='-O3',
    cppflags='-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include'
    ccversion='', gccversion='2.95.2 19991024 (release)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=0xffff
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags ='-flat_namespace -undefined suppress -L/usr/lib 
-L/usr/local/lib -L/usr/X11R6/lib -L/usr/local/BerkeleyDB/lib'
    libpth=/usr/lib /usr/local/lib /usr/local/BerkeleyDB/lib /usr/X11R6/lib
    libs=-lbind -ldb -ldl -lm -lc -liconv
    perllibs=-lbind -ldl -lm -lc -liconv
    libc=/System/Library/Frameworks/System.framework/System, so=dylib, 
useshrplib=true, libperl=libperl.dylib
  Dynamic Linking:
    dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-flat_namespace -bundle -undefined suppress 
-L/usr/lib -L/usr/local/lib -L/usr/local/BerkeleyDB/lib -L/usr/X11R6/lib'

!NO!SUBS!
===================================================
APACHE COMPILE INFO
[root@server]httpd -V
Server version: Apache/2.0.36
Server built:   May 22 2002 19:33:13
Server's Module Magic Number: 20020329:1
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_MMAP
 -D APR_USE_POSIXSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D SERVER_CONFIG_FILE="/etc/httpd/httpd.conf"

===================================================
MODPERL BUILD
[root@server]gnutar zxf modperl-2.0_20020525042207.tar.gz

[root@server]perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2 MP_USE_DSO=1 
MP_USE_STATIC=0 MP_STATIC_EXTS=0; make
Reading Makefile.PL args from @ARGV
   MP_AP_PREFIX = /usr/local/apache2
   MP_USE_DSO = 1
   MP_USE_STATIC =
   MP_STATIC_EXTS =
Configuring Apache/2.0.36 mod_perl/1.99_02-dev Perl/v5.6.1
    generating script t/TEST
Checking if your kit is complete...
Looks good
Writing Makefile for Apache::Test
    generating script t/TEST
Checking if your kit is complete...
Looks good
Writing Makefile for ModPerl::Registry
Writing Makefile for APR::Base64
Writing Makefile for APR::Brigade
Writing Makefile for APR::Bucket
Writing Makefile for APR::Date
Writing Makefile for APR::NetLib
Writing Makefile for APR::OS
Writing Makefile for APR::Pool
Writing Makefile for APR::SockAddr
Writing Makefile for APR::Socket
Writing Makefile for APR::String
Writing Makefile for APR::Table
Writing Makefile for APR::URI
Writing Makefile for APR::UUID
Writing Makefile for APR::Util
Writing Makefile for APR
Writing Makefile for Apache::Access
Writing Makefile for Apache::CmdParms
Writing Makefile for Apache::Command
Writing Makefile for Apache::Connection
Writing Makefile for Apache::Directive
Writing Makefile for Apache::Filter
Writing Makefile for Apache::FilterRec
Writing Makefile for Apache::HookRun
Writing Makefile for Apache::Log
Writing Makefile for Apache::Module
Writing Makefile for Apache::Process
Writing Makefile for Apache::RequestIO
Writing Makefile for Apache::RequestRec
Writing Makefile for Apache::RequestUtil
Writing Makefile for Apache::Response
Writing Makefile for Apache::Server
Writing Makefile for Apache::ServerUtil
Writing Makefile for Apache::SubProcess
Writing Makefile for Apache::SubRequest
Writing Makefile for Apache::URI
Writing Makefile for Apache::Util
Writing Makefile for Apache
Writing Makefile for ModPerl::Global
Writing Makefile for ModPerl::Util
Writing Makefile for ModPerl
Writing Makefile for ModPerl::WrapXS
Writing Makefile for APR
Writing Makefile for APR::Const
Writing Makefile for APR::PerlIO
Writing Makefile for APR
Writing Makefile for Apache::Const
Writing Makefile for Apache
Writing Makefile for ModPerl::Const
Writing Makefile for ModPerl
Writing Makefile for ModPerl::XS
Writing Makefile for mod_perl
*** mod_perl dso library will be built as mod_perl.so
*** You'll need to add the following to httpd.conf:
***  LoadModule perl_module modules/mod_perl.so


cd "src/modules/perl" && make -f Makefile.modperl
make[1]: Entering directory `/usr/ports/modperl-2.0/src/modules/perl'
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c mod_perl.c && mv mod_perl.o mod_perl.lo
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_interp.c && mv modperl_interp.o modperl_interp.lo
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_tipool.c && mv modperl_tipool.o modperl_tipool.lo
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_log.c && mv modperl_log.o modperl_log.lo
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_config.c && mv modperl_config.o modperl_config.lo
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_cmd.c && mv modperl_cmd.o modperl_cmd.lo
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_options.c && mv modperl_options.o modperl_options.lo
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_callback.c && mv modperl_callback.o modperl_callback.lo
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_handler.c && mv modperl_handler.o modperl_handler.lo
modperl_handler.c: In function `modperl_handler_make_args':
modperl_handler.c:134: warning: cast from pointer to integer of different 
size
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_gtop.c && mv modperl_gtop.o modperl_gtop.lo
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_util.c && mv modperl_util.o modperl_util.lo
modperl_util.c: In function `modperl_sv2server_rec':
modperl_util.c:76: warning: cast to pointer from integer of different size
modperl_util.c: In function `modperl_xs_sv2request_rec':
modperl_util.c:131: warning: cast to pointer from integer of different size
modperl_util.c: In function `modperl_sv2pool':
modperl_util.c:216: warning: cast to pointer from integer of different size
modperl_util.c:228: warning: cast to pointer from integer of different size
modperl_util.c:233: warning: cast to pointer from integer of different size
modperl_util.c:238: warning: cast to pointer from integer of different size
modperl_util.c: In function `modperl_xs_dl_handles_get':
modperl_util.c:335: warning: cast to pointer from integer of different size
modperl_util.c: In function `modperl_hash_tied_object':
modperl_util.c:410: warning: cast to pointer from integer of different size
modperl_util.c:421: warning: cast to pointer from integer of different size
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_io.c && mv modperl_io.o modperl_io.lo
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_filter.c && mv modperl_filter.o modperl_filter.lo
modperl_filter.c: In function `modperl_output_filter_read':
modperl_filter.c:290: warning: passing arg 3 of pointer to function from 
incompatible pointer type
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_bucket.c && mv modperl_bucket.o modperl_bucket.lo
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_mgv.c && mv modperl_mgv.o modperl_mgv.lo
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_pcw.c && mv modperl_pcw.o modperl_pcw.lo
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_global.c && mv modperl_global.o modperl_global.lo
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_env.c && mv modperl_env.o modperl_env.lo
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_cgi.c && mv modperl_cgi.o modperl_cgi.lo
cc -I/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl 
-I/Volumes/ServerSystem/ports/modperl-2.0/xs -I/usr/local/apache2/include 
-pipe -fno-common -no-cpp-precomp -fno-strict-aliasing 
-DHAS_TELLDIR_PROTOTYPE -I/usr/local/include -I/usr/include 
-I/usr/local/BerkeleyDB/include  -I/usr/local/perl/lib/5.6.1/darwin/CORE 
-DMOD_PERL -O3  \
-c modperl_perl.c && mv modperl_perl.o modperl_perl.lo
modperl_perl.c: In function `modperl_perl_destruct':
modperl_perl.c:113: `environ' undeclared (first use in this function)
modperl_perl.c:113: (Each undeclared identifier is reported only once
modperl_perl.c:113: for each function it appears in.)
make[1]: *** [modperl_perl.lo] Error 1
make[1]: Leaving directory `/usr/ports/modperl-2.0/src/modules/perl'
make: *** [modperl_lib] Error 2

--------------------------------------
R Blake
blakers@mac.com
http://homepage.mac.com/blakers
--------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message