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/06/01 02:25:11 UTC

tracked down BUS ERROR: MODPERL-2 build on MacOSX (Apache/2.0.36 mod_perl/1.99_02-dev Perl/v5.6.1)

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.
--------------------------------------

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
> --------------------------------------