You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Harry Zhu <ha...@greatlodge.com> on 2003/09/25 18:32:51 UTC
[mp1] Problem install modperl1.28 apache1.3.28perl5.8.1RC5 on MacOSX(10.2.6)
When run
>>/usr/local/bin/perl Makefile.PL APACHE_SRC=../apache_1.3.28/src
DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
got a bunch of messages like
Unknown option: 1
Usage: head [-options] <url>...
and when run "make", it stopped at
ld: warning multiple definitions of symbol _regcomp
regex/libregex.a(regcomp.o) private external definition of _regcomp in
section (__TEXT,__text)
/usr/lib/libm.dylib(regcomp.So) definition of _regcomp
ld: warning multiple definitions of symbol _regexec
regex/libregex.a(regexec.o) private external definition of _regexec in
section (__TEXT,__text)
/usr/lib/libm.dylib(regexec.So) definition of _regexec
ld: warning multiple definitions of symbol _regfree
regex/libregex.a(regfree.o) private external definition of _regfree in
section (__TEXT,__text)
/usr/lib/libm.dylib(regfree.So) definition of _regfree
ld: Undefined symbols:
_actions_module
_include_module
_log_config_module
make[3]: *** [target_static] Error 1
make[2]: *** [build-std] Error 2
make[1]: *** [build] Error 2
make: *** [apaci_httpd] Error 2
Here's the /usr/local/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
Platform:
osname=darwin, osvers=6.6, archname=darwin
uname='darwin harry-zhus-computer.local. 6.6 darwin kernel version
6.6: thu may 1 21:48:54 pdt 2003; root:xnuxnu-344.34.obj~1release_ppc
power macintosh powerpc '
config_args='-de'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
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 -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing',
optimize='-Os',
cppflags='-no-cpp-precomp -pipe -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing'
ccversion='', gccversion='3.1 20020420 (prerelease)',
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 -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib
libs=-lm -lc
perllibs=-lm -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false,
libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -flat_namespace -bundle -undefined
suppress -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Locally applied patches:
RC5
Built under darwin
Compiled at Sep 23 2003 21:56:55
@INC:
/usr/local/lib/perl5/5.8.1/darwin
/usr/local/lib/perl5/5.8.1
/usr/local/lib/perl5/site_perl/5.8.1/darwin
/usr/local/lib/perl5/site_perl/5.8.1
/usr/local/lib/perl5/site_perl
Anybody know what's the problem?
Harry Zhu
GreatLodge.com
Re: [mp1] Problem install modperl1.28 apache1.3.28perl5.8.1RC5 on
MacOSX(10.2.6)
Posted by Geoffrey Young <ge...@modperlcookbook.org>.
Chris Reinhardt wrote:
> On Thu, 25 Sep 2003, Harry Zhu wrote:
>
>
>>When run
>> >>/usr/local/bin/perl Makefile.PL APACHE_SRC=../apache_1.3.28/src
>>DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
>>
>>got a bunch of messages like
>>Unknown option: 1
>>Usage: head [-options] <url>...
>>
>
>
> When you installed LWP, you told it to install the HEAD script. HFS+ is
> case insensitive, so you head binary was overwritten. This may be
> breaking your build.
>
> Then again, it might not be.
if it is, Recipe 1.6, "Building mod_perl on Mac OS X" might help, though I
don't know how much of has changed in the past 2 years...
http://www.modperlcookbook.org/chapters/ch01.pdf
--Geoff
Re: [mp1] Problem install modperl1.28 apache1.3.28perl5.8.1RC5 on
MacOSX(10.2.6)
Posted by Stas Bekman <st...@stason.org>.
Chris Reinhardt wrote:
> On Thu, 25 Sep 2003, Harry Zhu wrote:
>
>
>>When run
>> >>/usr/local/bin/perl Makefile.PL APACHE_SRC=../apache_1.3.28/src
>>DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
>>
>>got a bunch of messages like
>>Unknown option: 1
>>Usage: head [-options] <url>...
>>
>
>
> When you installed LWP, you told it to install the HEAD script. HFS+ is
> case insensitive, so you head binary was overwritten. This may be
> breaking your build.
>
> Then again, it might not be.
I wonder where does it take 'head' from, I don't remember it being used in the
mod_perl build. Unless it's something coming from 'perl -V' or 'apache build'.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Re: [mp1] Problem install modperl1.28 apache1.3.28perl5.8.1RC5 on
MacOSX(10.2.6)
Posted by Chris Reinhardt <ct...@dyndns.org>.
On Thu, 25 Sep 2003, Harry Zhu wrote:
> When run
> >>/usr/local/bin/perl Makefile.PL APACHE_SRC=../apache_1.3.28/src
> DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
>
> got a bunch of messages like
> Unknown option: 1
> Usage: head [-options] <url>...
>
When you installed LWP, you told it to install the HEAD script. HFS+ is
case insensitive, so you head binary was overwritten. This may be
breaking your build.
Then again, it might not be.
--
Chris Reinhardt -- ctriv@dyndns.org -- http://www.dyndns.org/
I cordially dislike allegory in all its manifestations, and always have done
since I grew old and wary enough to detect its presence.
--J.R.R. Tolkien
Re: [mp1] Problem install modperl1.28 apache1.3.28perl5.8.1RC5 on
MacOSX(10.2.6)
Posted by Stas Bekman <st...@stason.org>.
Harry Zhu wrote:
> On Thursday, September 25, 2003, at 09:32 AM, Harry Zhu wrote:
>
>> When run
>> >>/usr/local/bin/perl Makefile.PL APACHE_SRC=../apache_1.3.28/src
>> DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
>>
>> got a bunch of messages like
>> Unknown option: 1
>> Usage: head [-options] <url>...
>>
>> and when run "make", it stopped at
>> ld: warning multiple definitions of symbol _regcomp
>> regex/libregex.a(regcomp.o) private external definition of _regcomp in
>> section (__TEXT,__text)
>> /usr/lib/libm.dylib(regcomp.So) definition of _regcomp
>> ld: warning multiple definitions of symbol _regexec
>> regex/libregex.a(regexec.o) private external definition of _regexec in
>> section (__TEXT,__text)
>> /usr/lib/libm.dylib(regexec.So) definition of _regexec
>> ld: warning multiple definitions of symbol _regfree
>> regex/libregex.a(regfree.o) private external definition of _regfree in
>> section (__TEXT,__text)
>> /usr/lib/libm.dylib(regfree.So) definition of _regfree
>> ld: Undefined symbols:
>> _actions_module
>> _include_module
>> _log_config_module
>> make[3]: *** [target_static] Error 1
>> make[2]: *** [build-std] Error 2
>> make[1]: *** [build] Error 2
>> make: *** [apaci_httpd] Error 2
Someone on 'Mac OS X 10.2.6 (6L60) on PowerPC G3, Darwin Kernel Version 6.6'
or similar needs to resolve this. This is not the first time this problem is
reported. I'm not sure whether the _regcomp redefinition warnings are related
or not. I'm surprised no one on macosX has sent a fix in yet, it seems that
everybody and their mom own an imac nowadays ;).
> Same problem with Perl5.8.1 release.
> On the other hand,
> modperl1.99.10dev apache2.0.47 on perl5.8.1 builds and runs OK seemingly.
That's a good news ;)
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Re: [mp1] Problem install modperl1.28 apache1.3.28perl5.8.1RC5 on MacOSX(10.2.6)
Posted by Harry Zhu <ha...@greatlodge.com>.
On Thursday, September 25, 2003, at 09:32 AM, Harry Zhu wrote:
> When run
> >>/usr/local/bin/perl Makefile.PL APACHE_SRC=../apache_1.3.28/src
> DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
>
> got a bunch of messages like
> Unknown option: 1
> Usage: head [-options] <url>...
>
> and when run "make", it stopped at
> ld: warning multiple definitions of symbol _regcomp
> regex/libregex.a(regcomp.o) private external definition of _regcomp in
> section (__TEXT,__text)
> /usr/lib/libm.dylib(regcomp.So) definition of _regcomp
> ld: warning multiple definitions of symbol _regexec
> regex/libregex.a(regexec.o) private external definition of _regexec in
> section (__TEXT,__text)
> /usr/lib/libm.dylib(regexec.So) definition of _regexec
> ld: warning multiple definitions of symbol _regfree
> regex/libregex.a(regfree.o) private external definition of _regfree in
> section (__TEXT,__text)
> /usr/lib/libm.dylib(regfree.So) definition of _regfree
> ld: Undefined symbols:
> _actions_module
> _include_module
> _log_config_module
> make[3]: *** [target_static] Error 1
> make[2]: *** [build-std] Error 2
> make[1]: *** [build] Error 2
> make: *** [apaci_httpd] Error 2
>
Same problem with Perl5.8.1 release. On the other hand,
modperl1.99.10dev apache2.0.47 on perl5.8.1 builds and runs OK
seemingly.
Mac OS X 10.2.6 (6L60) on PowerPC G3, Darwin Kernel Version 6.6
gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1175, based on gcc version 3.1
20020420 (prerelease)
Is it the C - compiler not a good one? Or do I missing some source
files? Any ideas?
make -v
GNU Make version 3.79, by Richard Stallman and Roland McGrath.
Built for powerpc-apple-darwin6.0
/usr/local/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
Platform:
osname=darwin, osvers=6.6, archname=darwin
uname='darwin harry-zhus-computer.local. 6.6 darwin kernel version
6.6: thu may 1 21:48:54 pdt 2003; root:xnuxnu-344.34.obj~1release_ppc
power macintosh powerpc '
config_args='-des'
hint=previous, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
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 -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing',
optimize='-Os',
cppflags='-no-cpp-precomp -pipe -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing -pipe -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing -pipe -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing'
ccversion='', gccversion='3.1 20020420 (prerelease)',
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 -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib
libs=-lm -lc
perllibs=-lm -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false,
libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -flat_namespace -bundle -undefined
suppress -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under darwin
Compiled at Sep 25 2003 11:29:54
@INC:
/usr/local/lib/perl5/5.8.1/darwin
/usr/local/lib/perl5/5.8.1
/usr/local/lib/perl5/site_perl/5.8.1/darwin
/usr/local/lib/perl5/site_perl/5.8.1
/usr/local/lib/perl5/site_perl
Harry Zhu