You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by R Blake <bl...@mac.com> on 2002/05/25 22:13:45 UTC
failed MODPERL-2 build on MacOSX (Apache/2.0.36
mod_perl/1.99_02-dev Perl/v5.6.1)
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
Re: failed MODPERL-2 build on MacOSX (Apache/2.0.36
mod_perl/1.99_02-dev Perl/v5.6.1)
Posted by Per Einar Ellefsen <pe...@skynet.be>.
At 20:43 27.05.2002, Doug MacEachern wrote:
>i'd like to find a macosx box i can build on (i think the asf has one?),
>looks like there are a bunch of compile warnings that could be fatal at
>runtime.
Maybe you should try getting a Sourceforge account for mod_perl, just to
use their Compile Farm? I think they have an OS X box.
--
Per Einar Ellefsen
per.einar@skynet.be
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
follow-up: failed MODPERL-2 build on MacOSX (Apache/2.0.36
mod_perl/1.99_02-dev Perl/v5.6.1)
Posted by "Richard S. Blake" <bl...@presence-group.com>.
doug,
fyi, perl will not successfully complete a build on MacOSX *without*
"undefined suppress" ...... so modperl *will* pick it up in the compile
flags .........
richard
--On Tuesday, May 28, 2002 12:14 AM -0700 R Blake <bl...@mac.com> wrote:
> doug,
>
> i've made the change to '#if 0' in modperl_perl.c, as per your suggestion.
>
> unfortunately, make got no farther. on a whim i updated to dev-perl
> 5.7.3 -- same problem; make quits with:
>
> 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.7.3/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.7.3/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:135: `environ' undeclared (first use in this function)
> modperl_perl.c:135: (Each undeclared identifier is reported only once
> modperl_perl.c:135: for each function it appears in.)
> make[1]: *** [modperl_perl.lo] Error 1
> make[1]: Leaving directory
> `/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl' make: ***
> [modperl_lib] Error 2
>
> i then commented out (naively, i admit ......) the following lines at
> modper_perl.c:135:
>
> /* if (orig_environ) {
> environ = orig_environ;
> }*/
>
> and re-ran make ......
>
> the process now gets further, but still chokes 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.7.3/darwin/CORE
> -DMOD_PERL -O3 \ -c modperl_xsinit.c && mv modperl_xsinit.o
> modperl_xsinit.lo
> rm -f mod_perl.so
> cc -flat_namespace -bundle -undefined suppress -L/usr/lib
> -L/usr/local/lib -L/usr/local/BerkeleyDB/lib -L/usr/X11R6/lib \ \
> mod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo
> modperl_config.lo modperl_cmd.lo modperl_options.lo modperl_callback.lo
> modperl_handler.lo modperl_gtop.lo modperl_util.lo modperl_io.lo
> modperl_filter.lo modperl_bucket.lo modperl_mgv.lo modperl_pcw.lo
> modperl_global.lo modperl_env.lo modperl_cgi.lo modperl_perl.lo
> modperl_perl_global.lo modperl_hooks.lo modperl_directives.lo
> modperl_flags.lo modperl_xsinit.lo -flat_namespace -undefined suppress
> -L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib -L/usr/local/BerkeleyDB/lib
> /usr/local/perl/lib/5.7.3/darwin/auto/DynaLoader/DynaLoader.a
> -L/usr/local/perl/lib/5.7.3/darwin/CORE -lperl -lbind -ldl -lm -lc
> -liconv \ -o mod_perl.so
> /usr/bin/ld: -undefined: unknown argument: -undefined
> make[1]: *** [mod_perl.so] Error 1
> make[1]: Leaving directory
> `/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl' make: ***
> [modperl_lib] Error 2
>
>
> it looks like it doesn't like the "-undefined suppress" assigned in
> LDFLAGS in the perl-5.7.3 config. for reference, here's the myconfig
> from perl ....
>
> ----- FOR REFERENCE: /usr/ports/perl-5.7.3/myconfig -------------- <br>
># !/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 7 subversion 3) configuration:
> Platform:
> osname=darwin, osvers=5.4, archname=darwin-64int-thread-multi
> uname='darwin server.internal.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
> -Dusedevel -des'
> hint=previous, useposix=true, d_sigaction=define
> usethreads=define use5005threads=undef useithreads=define
> usemultiplicity=define useperlio=define d_sfio=undef
> uselargefiles=define usesocks=undef use64bitint=define
> use64bitall=undef uselongdouble=undef
> usemymalloc=n, bincompat5005=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=ffff 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, 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!
>
> ------------------------------------------------------------------
>
> should i recompile perl WITHOUT the "-undefined suppress" (can't remember
> if it'll work without it ....), or is there something to change here in
> modper?
>
> richard
>
>>>
>>> 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.
>>
>> you can try changing '#ifdef USE_ENVIRON_ARRAY' to '#if 0' in
>> modperl_perl.c for the moment, to see if it'll get further.
>> i'd like to find a macosx box i can build on (i think the asf has one?),
>> looks like there are a bunch of compile warnings that could be fatal at
>> runtime.
>>
>
> --------------------------------------
> R Blake
> blakers@mac.com
> http://homepage.mac.com/blakers
> --------------------------------------
__________________________________
Richard S. Blake
Foster City, CA
ph 650 571 0225
fx 240 525 2666
blakers@presence-group.com
__________________________________
Re: failed MODPERL-2 build on MacOSX (Apache/2.0.36
mod_perl/1.99_02-dev Perl/v5.6.1)
Posted by Per Einar Ellefsen <pe...@skynet.be>.
At 00:27 02.06.2002, Doug MacEachern wrote:
>On Sat, 1 Jun 2002, Per Einar Ellefsen wrote:
>
> > You'll have to register a project... But why don't you just go ahead and
> > register mod_perl? That doesn't imply anything, you can remove the CVS
> > repository and point everything to the mod_perl website. Then you can take
> > advantage of the compile farm :)
>
>ask added me to the perl-qa group so i'll have access. but since 'dougm'
>was already taken, my id is 'dmaceachern' and i forgot to ssh -l
>dmaceachern, 3 failed logins, seems to have shut me out:
>% ssh -l dmaceachern cf.sourceforge.net
>Connection closed by 198.186.203.53
Hehehe :-) Try asking SourceForge QA. They'll handle it I guess.
--
Per Einar Ellefsen
per.einar@skynet.be
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: failed MODPERL-2 build on MacOSX (Apache/2.0.36 mod_perl/1.99_02-dev
Perl/v5.6.1)
Posted by Doug MacEachern <do...@covalent.net>.
On Sat, 1 Jun 2002, Per Einar Ellefsen wrote:
> You'll have to register a project... But why don't you just go ahead and
> register mod_perl? That doesn't imply anything, you can remove the CVS
> repository and point everything to the mod_perl website. Then you can take
> advantage of the compile farm :)
ask added me to the perl-qa group so i'll have access. but since 'dougm'
was already taken, my id is 'dmaceachern' and i forgot to ssh -l
dmaceachern, 3 failed logins, seems to have shut me out:
% ssh -l dmaceachern cf.sourceforge.net
Connection closed by 198.186.203.53
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: failed MODPERL-2 build on MacOSX (Apache/2.0.36
mod_perl/1.99_02-dev Perl/v5.6.1)
Posted by Per Einar Ellefsen <pe...@skynet.be>.
At 05:32 01.06.2002, Doug MacEachern wrote:
>i registered with sourceforge to try a different darwin version, but can't
>figure out how to access the compile farm without registering a project.
You'll have to register a project... But why don't you just go ahead and
register mod_perl? That doesn't imply anything, you can remove the CVS
repository and point everything to the mod_perl website. Then you can take
advantage of the compile farm :)
>--
Per Einar Ellefsen
per.einar@skynet.be
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: Stacktrace for BusError: failed MODPERL-2 build on MacOSX
(Apache/2.0.36 mod_perl/1.99_02-dev Perl/v5.6.1)
Posted by Doug MacEachern <do...@covalent.net>.
On Sat, 1 Jun 2002, R Blake wrote:
> [root@server]perl test.pl
> Bus error
ok, you should report this as a perlbug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: Stacktrace for BusError: failed MODPERL-2 build on MacOSX
(Apache/2.0.36 mod_perl/1.99_02-dev Perl/v5.6.1)
Posted by R Blake <bl...@mac.com>.
doug,
[root@server]cat test.pl (your test script ....)
use strict;
use Socket;
my $localhost_addr = pack('C4', 127, 0, 0, 1);
my $default_localhost =
gethostbyaddr($localhost_addr, Socket::AF_INET()) || 'localhost';
print "localhost=$default_localhost\n";
[root@server]perl test.pl
Bus error
and, here's the stack trace:
**********
Date/Time: 2002-06-01 18:40:32 -0700
OS Version: 10.1.4 (Build 5Q125)
Host: server.internal.net
Command: perl
PID: 24782
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x700c92fc
Thread 0 Crashed:
#0 0x70003b08 in memmove
#1 0x00008540 in __res_vinit
#2 0x00007624 in gen_res_get
#3 0x000058f0 in net_data_create
#4 0x0000582c in __net_data_init
#5 0x00004340 in init
#6 0x00003254 in gethostbyaddr
#7 0x004658b8 in Perl_pp_ghostent
#8 0x004656e4 in Perl_pp_ghbyaddr
#9 0x003f8120 in Perl_runops_standard
#10 0x00373eb8 in S_run_body
#11 0x003739c4 in perl_run
#12 0x00001c20 in main
#13 0x00001a54 in _start
#14 0x00001884 in start
PPC Thread State:
srr0: 0x70003b08 srr1: 0x0000f030 vrsave: 0x00000000
xer: 0x00000020 lr: 0x00008540 ctr: 0x70003a00 mq: 0x00000000
r0: 0x10020035 r1: 0xbfffe650 r2: 0x700c930c r3: 0x700c92fc
r4: 0x000fe740 r5: 0x00000000 r6: 0xac1e0a02 r7: 0x00000000
r8: 0x00000000 r9: 0x000fe720 r10: 0x00000000 r11: 0x0003350c
r12: 0x70003a00 r13: 0x00000000 r14: 0x80008a98 r15: 0x8000219c
r16: 0xbfffea88 r17: 0xbfffeaa8 r18: 0x8000214c r19: 0x00000000
r20: 0x00000001 r21: 0x87859393 r22: 0xc24bc195 r23: 0x87859393
r24: 0x8000213c r25: 0x00000000 r26: 0xbffff2a0 r27: 0x00000000
r28: 0x00000000 r29: 0x00000000 r30: 0xbfffe693 r31: 0x00007f90
**********
--On Saturday, June 1, 2002 6:26 PM -0700 Doug MacEachern
<do...@covalent.net> wrote:
> On Sat, 1 Jun 2002, R Blake wrote:
>
>> # 7 0x004658b8 in Perl_pp_ghostent
>
> we call this in Apache::TestConfig::default_localhost, does the script
> below work for you or cause the same bus error?
>
> use strict;
> use Socket;
>
> my $localhost_addr = pack('C4', 127, 0, 0, 1);
> my $default_localhost =
> gethostbyaddr($localhost_addr, Socket::AF_INET()) || 'localhost';
>
> print "localhost=$default_localhost\n";
>
>
--------------------------------------
R Blake
blakers <at> mac.com
http://homepage.mac.com/blakers
--------------------------------------
Re: Stacktrace for BusError: failed MODPERL-2 build on MacOSX
(Apache/2.0.36 mod_perl/1.99_02-dev Perl/v5.6.1)
Posted by Doug MacEachern <do...@covalent.net>.
On Sat, 1 Jun 2002, R Blake wrote:
> #7 0x004658b8 in Perl_pp_ghostent
we call this in Apache::TestConfig::default_localhost, does the script
below work for you or cause the same bus error?
use strict;
use Socket;
my $localhost_addr = pack('C4', 127, 0, 0, 1);
my $default_localhost =
gethostbyaddr($localhost_addr, Socket::AF_INET()) || 'localhost';
print "localhost=$default_localhost\n";
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Stacktrace for BusError: failed MODPERL-2 build on MacOSX
(Apache/2.0.36 mod_perl/1.99_02-dev Perl/v5.6.1)
Posted by R Blake <bl...@mac.com>.
doug,
>> just curious, any comments re: the "bus error" i'd rec'd and the code i
>> commented out (previous msg ....)?
>
> no ideas unless i can reproduce or you can post a stacktrace.
>
here's the invoke & resulting stack trace ......
[root@server]perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2 MP_USE_DSO=1
MP_USE_STATIC=0 MP_STATIC_EXTS=0
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.8.0
Bus error
[root@server]
**********
Date/Time: 2002-06-01 17:39:38 -0700
OS Version: 10.1.4 (Build 5Q125)
Host: server.internal.presence-group.net
Command: perl
PID: 20193
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x700c92fc
Thread 0 Crashed:
#0 0x70003b08 in memmove
#1 0x00008540 in __res_vinit
#2 0x00007624 in gen_res_get
#3 0x000058f0 in net_data_create
#4 0x0000582c in __net_data_init
#5 0x00004340 in init
#6 0x00003254 in gethostbyaddr
#7 0x004658b8 in Perl_pp_ghostent
#8 0x004656e4 in Perl_pp_ghbyaddr
#9 0x003f8120 in Perl_runops_standard
#10 0x00373e7c in S_run_body
#11 0x003739c4 in perl_run
#12 0x00001c20 in main
#13 0x00001a54 in _start
#14 0x00001884 in start
PPC Thread State:
srr0: 0x70003b08 srr1: 0x0000f030 vrsave: 0x00000000
xer: 0x00000020 lr: 0x00008540 ctr: 0x70003a00 mq: 0x00000000
r0: 0x10020035 r1: 0xbfffe7f0 r2: 0x700c930c r3: 0x700c92fc
r4: 0x00a57230 r5: 0x00000000 r6: 0xac1e0a02 r7: 0x00000000
r8: 0x00000000 r9: 0x00a57210 r10: 0x00000000 r11: 0x0003350c
r12: 0x70003a00 r13: 0x00000000 r14: 0x80008a98 r15: 0x8000219c
r16: 0xbfffec28 r17: 0xbfffec48 r18: 0x8000214c r19: 0x00000000
r20: 0x00000001 r21: 0x87859393 r22: 0xc24bc195 r23: 0x87859393
r24: 0x8000213c r25: 0x00000000 r26: 0xbffff424 r27: 0x00000000
r28: 0x00000000 r29: 0x00000000 r30: 0xbfffe833 r31: 0x00007f90
**********
commenting out --
# for my $util (qw(Report Smoke)) {
# my $class = "Apache::Test${util}Perl";
# $class->generate_script;
# }
#
# for my $util (qw(Run)) {
# my $class = "ModPerl::Test${util}";
# $class->generate_script;
# }
in modperl-2.0/Makefile.PL, w/
perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2 MP_USE_DSO=1
MP_USE_STATIC=0 MP_STATIC_EXTS=0
results in a 'successful' result of:
Writing Makefile for ModPerl::XS
Writing Makefile for mod_perl
Note (probably harmless): No library found for -lm
Note (probably harmless): No library found for -lc
Note (probably harmless): No library found for -lm
Note (probably harmless): No library found for -lc
*** 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
Why no -lm or -lc found? (i'm looking ....)
richard
--------------------------------------
R Blake
blakers <at> mac.com
http://homepage.mac.com/blakers
--------------------------------------
MacOSX ..... because Windows sux.
--------------------------------------
Re: fixed -undefined suppress; now trouble with -bundle: failed
MODPERL-2 build on MacOSX (Apache/2.0.36 mod_perl/1.99_02-dev Perl/v5.6.1)
Posted by Doug MacEachern <do...@covalent.net>.
On Sat, 1 Jun 2002, R Blake wrote:
> > ok. have you tried using -des -Dusethreads instead of the interactive
> > Configure dialog?
> >
>
> not yet.
i strongly suggest trying that before going any further. the bus error
for example might be related to use64bitint=define, which i'm pretty sure
is not the default. letting Configure choose defaults might clear up some
of these problems.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
fixed -undefined suppress; now trouble with -bundle: failed
MODPERL-2 build on MacOSX (Apache/2.0.36 mod_perl/1.99_02-dev Perl/v5.6.1)
Posted by R Blake <bl...@mac.com>.
doug,
>
> ok. have you tried using -des -Dusethreads instead of the interactive
> Configure dialog?
>
not yet. just finishing up the -undefined suppress problem in LDFLAGS
.......
unfortunately, although the -undefined suppress problem seems to have gone
away, now make dies at:
cc -flat_namespace -bundle -undefined suppress -L/usr/local/lib
-L/usr/local/BerkeleyDB/lib -L/usr/X11R6/lib \
\
mod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo
modperl_config.lo modperl_cmd.lo modperl_options.lo modperl_callback.lo
modperl_handler.lo modperl_gtop.lo modperl_util.lo modperl_io.lo
modperl_filter.lo modperl_bucket.lo modperl_mgv.lo modperl_pcw.lo
modperl_global.lo modperl_env.lo modperl_cgi.lo modperl_perl.lo
modperl_perl_global.lo modperl_hooks.lo modperl_directives.lo
modperl_flags.lo modperl_xsinit.lo -flat_namespace -L/usr/local/lib
-L/usr/X11R6/lib -L/usr/local/BerkeleyDB/lib
/usr/local/perl/lib/5.8.0/darwin-thread-multi-64all-stdio/auto/DynaLoader/D
ynaLoader.a
-L/usr/local/perl/lib/5.8.0/darwin-thread-multi-64all-stdio/CORE -lperl
-lbind -ldl -liconv \
-o mod_perl.so
/usr/bin/ld: -undefined: unknown argument: -lbundle1.o
make[1]: *** [mod_perl.so] Error 1
make[1]: Leaving directory
`/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl'
make: *** [modperl_lib] Error 2
i looked to our config differences, and the bundle flags seem to be ok
...... (see below)
thoughts?
thx,
richard
FYI,
here were the salient DIFFERENCES between your (@moof.apache.org) & my
"perl -V" configs
dougm: (revision 5.0 version 8 subversion 0 patch 16897)
osvers=5.2
archname=darwin-thread-multi
uname='darwin kernel version 5.2: root:xnuxnu-201.14.obj~1release_ppc power
macintosh powerpc '
config_args='-des -Dprefix=/Users/dougm/perl -Dusethreads -Doptimize=-g'
use64bitint=undef
gccversion='2.95.2 19991024 (release)'
byteorder=4321
ivtype='long'
ivsize=4
ldflags =' -flat_namespace'
libpth=/usr/lib
libs=-lm -lc
perllibs=-lm -lc
lddlflags=' -flat_namespace -bundle -undefined suppress'
======================================================
blakers: (revision 5.0 version 8 subversion 0 patch 16954)
osvers=5.4
archname=darwin-thread-multi-64all-stdio
uname='darwin server.internal.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 -Dusedevel'
use64bitint=define
optimize='-g',
byteorder=87654321
ivtype='long long'
ivsize=8
ldflags ='-flat_namespace -L/usr/local/lib -L/usr/X11R6/lib
-L/usr/local/BerkeleyDB/lib'
libpth=/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
lddlflags='-flat_namespace -bundle -undefined suppress -L/usr/local/lib
-L/usr/local/BerkeleyDB/lib -L/usr/X11R6/lib'
for completeness, here's my complete perl -V:
Summary of my perl5 (revision 5.0 version 8 subversion 0 patch 16954)
configuration:
Platform:
osname=darwin, osvers=5.4, archname=darwin-thread-multi-64all-stdio
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 -Dusedevel -des'
hint=previous, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-pipe -fno-common -DINT32_MIN_BROKEN
-DINT64_MIN_BROKEN -no-cpp-precomp -fno-strict-aliasing
-I/usr/local/include -I/usr/include -I/usr/local/BerkeleyDB/include',
optimize='-g',
cppflags='-pipe -fno-common -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/usr/include
-I/usr/local/BerkeleyDB/include -pipe -fno-common -DINT32_MIN_BROKEN
-DINT64_MIN_BROKEN -no-cpp-precomp -fno-strict-aliasing
-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=87654321
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, prototype=define
Linker and Libraries:
ld='cc', ldflags ='-flat_namespace -L/usr/local/lib -L/usr/X11R6/lib
-L/usr/local/BerkeleyDB/lib'
libpth=/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/local/lib -L/usr/local/BerkeleyDB/lib -L/usr/X11R6/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_64_BIT_INT
USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Locally applied patches:
DEVEL16943
Built under darwin
Compiled at Jun 1 2002 12:48:34
@INC:
/usr/local/perl/lib/5.8.0/darwin-thread-multi-64all-stdio
/usr/local/perl/lib/5.8.0
/usr/local/perl/lib/site_perl/5.8.0/darwin-thread-multi-64all-stdio
/usr/local/perl/lib/site_perl/5.8.0
/usr/local/perl/lib/site_perl
.
--------------------------------------
R Blake
blakers <at> mac.com
http://homepage.mac.com/blakers
--------------------------------------
Re: failed MODPERL-2 build on MacOSX (Apache/2.0.36 mod_perl/1.99_02-dev
Perl/v5.6.1)
Posted by Doug MacEachern <do...@covalent.net>.
On Fri, 31 May 2002, R Blake wrote:
> OSX uses (usually) an HFS partition (read problems with case sensitivity!)
> so
> specifying "-Dfirstmakefile=GNUmakefile" simply sidesteps the problems
> known to occur with "Makefile" vs. "makefile" ......
ok. have you tried using -des -Dusethreads instead of the interactive
Configure dialog?
> just curious, any comments re: the "bus error" i'd rec'd and the code i
> commented out (previous msg ....)?
no ideas unless i can reproduce or you can post a stacktrace.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: failed MODPERL-2 build on MacOSX (Apache/2.0.36
mod_perl/1.99_02-dev Perl/v5.6.1)
Posted by R Blake <bl...@mac.com>.
>> config_args='-Dfirstmakefile=GNUmakefile -Dusedevel'
>
> what is this -Dfirstmakefile=... ?
OSX uses (usually) an HFS partition (read problems with case sensitivity!)
so
specifying "-Dfirstmakefile=GNUmakefile" simply sidesteps the problems
known to occur with "Makefile" vs. "makefile" ......
a quick commentary on the issue can be read at:
http://archive.develooper.com/perl5-porters@perl.org/msg24932.html
> my config_args are:
> perl -V:config_args
> config_args='-des -Dprefix=/Users/dougm/perl -Dusethreads -Doptimize=-g';
my config args are set via the "./Configure" dialog ...... i did it this
way for 'tutorial' purposes on my web-site. u can jump directly to
perl-relevant info via http://homepage.mac.com/blakers/main_frame.html &
click on the "Perl" link in the nav frame .....
>> 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'
>
> here's why i don't have the problem with -undefined suppress:
> perl -V:ldflags
> ldflags=' -flat_namespace';
aha! there's the difference ...... i have "-undefined suppress" in both
LDFLAGS and LDDLFLAGS ..... i'll change & retry .... i'll report when
finished.
just curious, any comments re: the "bus error" i'd rec'd and the code i
commented out (previous msg ....)?
thanks!
richard
> i registered with sourceforge to try a different darwin version, but
> can't figure out how to access the compile farm without registering a
> project.
>
> full perl -V from my build on moof.apache.org below..
>
> Summary of my perl5 (revision 5.0 version 8 subversion 0 patch 16897)
> configuration: Platform:
> osname=darwin, osvers=5.2, archname=darwin-thread-multi
> uname='darwin moof.apache.org 5.2 darwin kernel version 5.2: fri dec
> 7 21:39:35 pst 2001; root:xnuxnu-201.14.obj~1release_ppc power macintosh
> powerpc ' config_args='-des -Dprefix=/Users/dougm/perl -Dusethreads
> -Doptimize=-g' hint=recommended, useposix=true, d_sigaction=define
> usethreads=define use5005threads=undef useithreads=define
> usemultiplicity=define useperlio=define d_sfio=undef
> uselargefiles=define usesocks=undef use64bitint=undef
> use64bitall=undef uselongdouble=undef
> usemymalloc=n, bincompat5005=undef
> Compiler:
> cc='cc', ccflags ='-pipe -fno-common -DINT32_MIN_BROKEN
> -DINT64_MIN_BROKEN -no-cpp-precomp -DDEBUGGING -fno-strict-aliasing',
> optimize='-g',
> cppflags='-no-cpp-precomp -pipe -fno-common -DINT32_MIN_BROKEN
> -DINT64_MIN_BROKEN -no-cpp-precomp -DDEBUGGING -fno-strict-aliasing'
> ccversion='', gccversion='2.95.2 19991024 (release)', gccosandvers=''
> intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
> d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
> ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
> lseeksize=8 alignbytes=8, prototype=define
> Linker and Libraries:
> ld='cc', ldflags =' -flat_namespace'
> libpth=/usr/lib
> libs=-lm -lc
> perllibs=-lm -lc
> libc=/usr/lib/libc.dylib, 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'
>
>
> Characteristics of this binary (from libperl):
> Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS
> USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Locally applied patches:
> DEVEL16892
> Built under darwin
> Compiled at May 30 2002 13:07:18
> @INC:
> /Users/dougm/perl/lib/5.8.0/darwin-thread-multi
> /Users/dougm/perl/lib/5.8.0
> /Users/dougm/perl/lib/site_perl/5.8.0/darwin-thread-multi
> /Users/dougm/perl/lib/site_perl/5.8.0
> /Users/dougm/perl/lib/site_perl
> .
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
>
--------------------------------------
R Blake
blakers <at> mac.com
http://homepage.mac.com/blakers
--------------------------------------
Re: failed MODPERL-2 build on MacOSX (Apache/2.0.36 mod_perl/1.99_02-dev
Perl/v5.6.1)
Posted by Doug MacEachern <do...@covalent.net>.
On Fri, 31 May 2002, R Blake wrote:
> config_args='-Dfirstmakefile=GNUmakefile -Dusedevel'
what is this -Dfirstmakefile=... ?
my config_args are:
perl -V:config_args
config_args='-des -Dprefix=/Users/dougm/perl -Dusethreads -Doptimize=-g';
> 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'
here's why i don't have the problem with -undefined suppress:
perl -V:ldflags
ldflags=' -flat_namespace';
i registered with sourceforge to try a different darwin version, but can't
figure out how to access the compile farm without registering a project.
full perl -V from my build on moof.apache.org below..
Summary of my perl5 (revision 5.0 version 8 subversion 0 patch 16897) configuration:
Platform:
osname=darwin, osvers=5.2, archname=darwin-thread-multi
uname='darwin moof.apache.org 5.2 darwin kernel version 5.2: fri dec 7 21:39:35 pst 2001; root:xnuxnu-201.14.obj~1release_ppc power macintosh powerpc '
config_args='-des -Dprefix=/Users/dougm/perl -Dusethreads -Doptimize=-g'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-pipe -fno-common -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN -no-cpp-precomp -DDEBUGGING -fno-strict-aliasing',
optimize='-g',
cppflags='-no-cpp-precomp -pipe -fno-common -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN -no-cpp-precomp -DDEBUGGING -fno-strict-aliasing'
ccversion='', gccversion='2.95.2 19991024 (release)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -flat_namespace'
libpth=/usr/lib
libs=-lm -lc
perllibs=-lm -lc
libc=/usr/lib/libc.dylib, 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'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Locally applied patches:
DEVEL16892
Built under darwin
Compiled at May 30 2002 13:07:18
@INC:
/Users/dougm/perl/lib/5.8.0/darwin-thread-multi
/Users/dougm/perl/lib/5.8.0
/Users/dougm/perl/lib/site_perl/5.8.0/darwin-thread-multi
/Users/dougm/perl/lib/site_perl/5.8.0
/Users/dougm/perl/lib/site_perl
.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: failed MODPERL-2 build on MacOSX (Apache/2.0.36
mod_perl/1.99_02-dev Perl/v5.6.1)
Posted by R Blake <bl...@mac.com>.
per suggestion, i updated my builds ..........
modperl-2.0_20020531163044.tar.gz
perl5 revision 5.0 version 8 subversion 0 patch 16908
Apache/2.0.36
and tried again with modperl2 ...... surpised me with a simple "bus
error"!
i'll try backing up to 5.6.0 to replicated your results, but ..... any
ideas here?
fyi, i'll keep my latest progress on OSX posted at
http://homepage.mac.com/blakers, as well as replying here, of course.
thanks!
richard
[root@server]wget
http://cvs.apache.org/snapshots/modperl-2.0/modperl-2.0_20020531163044.tar.
gz
--15:18:31--
http://cvs.apache.org/snapshots/modperl-2.0/modperl-2.0_20020531163044.tar.
gz
=> `modperl-2.0_20020531163044.tar.gz'
Resolving cvs.apache.org... done.
Connecting to cvs.apache.org[63.251.56.143]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,429,722 [application/x-tar]
100%[==========================================>] 1,429,722 183.37K/s
ETA 00:00
15:18:39 (183.37 KB/s) - `modperl-2.0_20020531163044.tar.gz' saved
[1429722/1429722]
[root@server]gnutar zxf modperl-2.0_20020531163044.tar.gz
[root@server]cd modperl-2.0/
[root@server]perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2 MP_USE_DSO=1
MP_USE_STATIC=0 MP_STATIC_EXTS=0
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.8.0
Bus error
[root@server]httpd -V
Server version: Apache/2.0.36
Server built: May 30 2002 16:25:23
Server's Module Magic Number: 20020329:1
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/worker"
-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"
[root@server]perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0 patch 16908)
configuration:
Platform:
osname=darwin, osvers=5.4,
archname=darwin-thread-multi-64int-stdio-64all
uname='darwin server.internal.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 -Dusedevel'
hint=previous, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-pipe -fno-common -DINT32_MIN_BROKEN
-DINT64_MIN_BROKEN -no-cpp-precomp -fno-strict-aliasing
-I/usr/local/include -I/usr/include -I/usr/local/BerkeleyDB/include',
optimize='-O3',
cppflags='-pipe -fno-common -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -I/usr/include
-I/usr/local/BerkeleyDB/include -pipe -fno-common -DINT32_MIN_BROKEN
-DINT64_MIN_BROKEN -no-cpp-precomp -fno-strict-aliasing
-I/usr/local/include -I/usr/include -I/usr/local/BerkeleyDB/include -pipe
-fno-common -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN -no-cpp-precomp
-fno-strict-aliasing -I/usr/local/include -I/usr/include
-I/usr/local/BerkeleyDB/include -pipe -fno-common -DINT32_MIN_BROKEN
-DINT64_MIN_BROKEN -no-cpp-precomp -fno-strict-aliasing
-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=87654321
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, 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 -undefined suppress -bundle
-L/usr/lib -L/usr/local/lib -L/usr/local/BerkeleyDB/lib -L/usr/X11R6/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_64_BIT_INT
USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Locally applied patches:
DEVEL16892
Built under darwin
Compiled at May 30 2002 20:52:58
@INC:
/usr/local/perl/lib/5.8.0/darwin-thread-multi-64all-stdio
/usr/local/perl/lib/5.8.0
/usr/local/perl/lib/5.8.0/darwin-thread-multi-64all-stdio
/usr/local/perl/lib/site_perl/5.8.0
/usr/local/perl/lib/site_perl
.
[root@server]
--On Thursday, May 30, 2002 4:56 PM -0700 Doug MacEachern
<do...@covalent.net> wrote:
> try again with modperl-2.0 from cvs, compiles passes all test for me on
> darwin with the stock 5.6.0 installed on the system. and with
> perl-current (5.8.0-tobe) with ithreads enabled. do _not_ use the 5.7.3
> release that is on cpan, for anything. it is way too far out of date.
>
> you can get the current sources with:
> rsync -auvz --delete rsync://ftp.linux.activestate.com/perl-current/
> perl-current
>
> or wait for 5.8.0-RC1 which is supposed to be released on saturday.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
>
--------------------------------------
R Blake
blakers <at> mac.com
http://homepage.mac.com/blakers
--------------------------------------
make still fails: MODPERL-2 build on MacOSX
Posted by R Blake <bl...@mac.com>.
and unfortunately, make still chokes on "-undefined suppress" 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 -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN -no-cpp-precomp
-fno-strict-aliasing -I/usr/local/include -I/usr/include
-I/usr/local/BerkeleyDB/include
-I/usr/local/perl/lib/5.8.0/darwin-thread-multi-64all-stdio/CORE -DMOD_PERL
-O3 \
-c modperl_xsinit.c && mv modperl_xsinit.o modperl_xsinit.lo
rm -f mod_perl.so
cc -flat_namespace -undefined suppress -bundle -L/usr/lib -L/usr/local/lib
-L/usr/local/BerkeleyDB/lib -L/usr/X11R6/lib \
\
mod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo
modperl_config.lo modperl_cmd.lo modperl_options.lo modperl_callback.lo
modperl_handler.lo modperl_gtop.lo modperl_util.lo modperl_io.lo
modperl_filter.lo modperl_bucket.lo modperl_mgv.lo modperl_pcw.lo
modperl_global.lo modperl_env.lo modperl_cgi.lo modperl_perl.lo
modperl_perl_global.lo modperl_hooks.lo modperl_directives.lo
modperl_flags.lo modperl_xsinit.lo -flat_namespace -undefined suppress
-L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib -L/usr/local/BerkeleyDB/lib
/usr/local/perl/lib/5.8.0/darwin-thread-multi-64all-stdio/auto/DynaLoader/D
ynaLoader.a
-L/usr/local/perl/lib/5.8.0/darwin-thread-multi-64all-stdio/CORE -lperl
-lbind -ldl -lm -lc -liconv \
-o mod_perl.so
/usr/bin/ld: -undefined: unknown argument: -undefined
make[1]: *** [mod_perl.so] Error 1
make[1]: Leaving directory
`/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl'
make: *** [modperl_lib] Error 2
i could be wrong here (still new at this ...), but in Perl build, "cc" is
spec'd for dynamic linking, but i note "ld" is invoked here (above) ......
shouldn't modperl pick 'ld'="cc" up from Perl's conifg?
here's the relevant snip from perl -V:
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, 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
thx,
richard
--On Friday, May 31, 2002 5:25 PM -0700 R Blake <bl...@mac.com> wrote:
> doug,
>
> commenting out the following lines in Makefile.PL allow me to get past
> the configure "bus error":
>
> #ModPerl::MM will use Apache::BuildConfig in subdir/Makefile.PL's
> $build->save;
>
># for my $util (qw(Report Smoke)) {
># my $class = "Apache::Test${util}Perl";
># $class->generate_script;
># }
>
># for my $util (qw(Run)) {
># my $class = "ModPerl::Test${util}";
># $class->generate_script;
># }
>
> my $tables_dir = tables_dir($httpd_version);
>
> and complete a successful configure with:
>
> perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2 MP_USE_DSO=1
> MP_USE_STATIC=0 MP_STATIC_EXTS=0
>
> now, on to make, and trying to understand WHY i get a BusError from above
> ....
>
> richard
>
>
>> try again with modperl-2.0 from cvs, compiles passes all test for me on
>> darwin with the stock 5.6.0 installed on the system. and with
>> perl-current (5.8.0-tobe) with ithreads enabled. do _not_ use the 5.7.3
>> release that is on cpan, for anything. it is way too far out of date.
>>
>> you can get the current sources with:
>> rsync -auvz --delete rsync://ftp.linux.activestate.com/perl-current/
>> perl-current
>>
>> or wait for 5.8.0-RC1 which is supposed to be released on saturday.
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
>> For additional commands, e-mail: dev-help@perl.apache.org
>>
>
>
>
>
> --------------------------------------
> R Blake
> blakers <at> mac.com
> http://homepage.mac.com/blakers
> --------------------------------------
tracked down BUS ERROR: MODPERL-2 build on MacOSX (Apache/2.0.36
mod_perl/1.99_02-dev Perl/v5.6.1)
Posted by R Blake <bl...@mac.com>.
doug,
commenting out the following lines in Makefile.PL allow me to get past the
configure "bus error":
#ModPerl::MM will use Apache::BuildConfig in subdir/Makefile.PL's
$build->save;
# for my $util (qw(Report Smoke)) {
# my $class = "Apache::Test${util}Perl";
# $class->generate_script;
# }
# for my $util (qw(Run)) {
# my $class = "ModPerl::Test${util}";
# $class->generate_script;
# }
my $tables_dir = tables_dir($httpd_version);
and complete a successful configure with:
perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2 MP_USE_DSO=1
MP_USE_STATIC=0 MP_STATIC_EXTS=0
now, on to make, and trying to understand WHY i get a BusError from above
....
richard
> try again with modperl-2.0 from cvs, compiles passes all test for me on
> darwin with the stock 5.6.0 installed on the system. and with
> perl-current (5.8.0-tobe) with ithreads enabled. do _not_ use the 5.7.3
> release that is on cpan, for anything. it is way too far out of date.
>
> you can get the current sources with:
> rsync -auvz --delete rsync://ftp.linux.activestate.com/perl-current/
> perl-current
>
> or wait for 5.8.0-RC1 which is supposed to be released on saturday.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
>
--------------------------------------
R Blake
blakers <at> mac.com
http://homepage.mac.com/blakers
--------------------------------------
MacOSX ..... because Windows sux.
--------------------------------------
Re: failed MODPERL-2 build on MacOSX (Apache/2.0.36 mod_perl/1.99_02-dev
Perl/v5.6.1)
Posted by Doug MacEachern <do...@covalent.net>.
try again with modperl-2.0 from cvs, compiles passes all test for me on
darwin with the stock 5.6.0 installed on the system. and with
perl-current (5.8.0-tobe) with ithreads enabled. do _not_ use the 5.7.3
release that is on cpan, for anything. it is way too far out of date.
you can get the current sources with:
rsync -auvz --delete rsync://ftp.linux.activestate.com/perl-current/ perl-current
or wait for 5.8.0-RC1 which is supposed to be released on saturday.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: failed MODPERL-2 build on MacOSX (Apache/2.0.36
mod_perl/1.99_02-dev Perl/v5.6.1)
Posted by R Blake <bl...@mac.com>.
doug,
i've made the change to '#if 0' in modperl_perl.c, as per your suggestion.
unfortunately, make got no farther. on a whim i updated to dev-perl 5.7.3
-- same problem;
make quits with:
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.7.3/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.7.3/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:135: `environ' undeclared (first use in this function)
modperl_perl.c:135: (Each undeclared identifier is reported only once
modperl_perl.c:135: for each function it appears in.)
make[1]: *** [modperl_perl.lo] Error 1
make[1]: Leaving directory
`/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl'
make: *** [modperl_lib] Error 2
i then commented out (naively, i admit ......) the following lines at
modper_perl.c:135:
/* if (orig_environ) {
environ = orig_environ;
}*/
and re-ran make ......
the process now gets further, but still chokes 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.7.3/darwin/CORE
-DMOD_PERL -O3 \
-c modperl_xsinit.c && mv modperl_xsinit.o modperl_xsinit.lo
rm -f mod_perl.so
cc -flat_namespace -bundle -undefined suppress -L/usr/lib -L/usr/local/lib
-L/usr/local/BerkeleyDB/lib -L/usr/X11R6/lib \
\
mod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo
modperl_config.lo modperl_cmd.lo modperl_options.lo modperl_callback.lo
modperl_handler.lo modperl_gtop.lo modperl_util.lo modperl_io.lo
modperl_filter.lo modperl_bucket.lo modperl_mgv.lo modperl_pcw.lo
modperl_global.lo modperl_env.lo modperl_cgi.lo modperl_perl.lo
modperl_perl_global.lo modperl_hooks.lo modperl_directives.lo
modperl_flags.lo modperl_xsinit.lo -flat_namespace -undefined suppress
-L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib -L/usr/local/BerkeleyDB/lib
/usr/local/perl/lib/5.7.3/darwin/auto/DynaLoader/DynaLoader.a
-L/usr/local/perl/lib/5.7.3/darwin/CORE -lperl -lbind -ldl -lm -lc -liconv \
-o mod_perl.so
/usr/bin/ld: -undefined: unknown argument: -undefined
make[1]: *** [mod_perl.so] Error 1
make[1]: Leaving directory
`/Volumes/ServerSystem/ports/modperl-2.0/src/modules/perl'
make: *** [modperl_lib] Error 2
it looks like it doesn't like the "-undefined suppress" assigned in LDFLAGS
in the perl-5.7.3 config. for reference, here's the myconfig from perl ....
----- FOR REFERENCE: /usr/ports/perl-5.7.3/myconfig -------------- <br>
#!/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 7 subversion 3) configuration:
Platform:
osname=darwin, osvers=5.4, archname=darwin-64int-thread-multi
uname='darwin server.internal.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 -Dusedevel -des'
hint=previous, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=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=ffff
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, 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!
------------------------------------------------------------------
should i recompile perl WITHOUT the "-undefined suppress" (can't remember
if it'll work without it ....), or is there something to change here in
modper?
richard
>>
>> 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.
>
> you can try changing '#ifdef USE_ENVIRON_ARRAY' to '#if 0' in
> modperl_perl.c for the moment, to see if it'll get further.
> i'd like to find a macosx box i can build on (i think the asf has one?),
> looks like there are a bunch of compile warnings that could be fatal at
> runtime.
>
--------------------------------------
R Blake
blakers@mac.com
http://homepage.mac.com/blakers
--------------------------------------
Re: failed MODPERL-2 build on MacOSX (Apache/2.0.36 mod_perl/1.99_02-dev Perl/v5.6.1)
Posted by Arthur Bergman <ar...@contiller.se>.
On måndag, maj 27, 2002, at 08:43 , Doug MacEachern wrote:
> you can try changing '#ifdef USE_ENVIRON_ARRAY' to '#if 0' in
> modperl_perl.c for the moment, to see if it'll get further.
> i'd like to find a macosx box i can build on (i think the asf has one?),
> looks like there are a bunch of compile warnings that could be fatal at
> runtime.
>
Sourceforge has macosx machines in their compilefarm.
Arthur
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: failed MODPERL-2 build on MacOSX (Apache/2.0.36 mod_perl/1.99_02-dev
Perl/v5.6.1)
Posted by Doug MacEachern <do...@covalent.net>.
On Sat, 25 May 2002, R Blake wrote:
> 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.
you can try changing '#ifdef USE_ENVIRON_ARRAY' to '#if 0' in
modperl_perl.c for the moment, to see if it'll get further.
i'd like to find a macosx box i can build on (i think the asf has one?),
looks like there are a bunch of compile warnings that could be fatal at
runtime.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org