You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by "Richard S. Blake" <bl...@presence-group.com> on 2002/05/29 03:42:07 UTC
follow-up: failed MODPERL-2 build on MacOSX (Apache/2.0.36
mod_perl/1.99_02-dev Perl/v5.6.1)
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
__________________________________