You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by allan <la...@inet.uni2.dk> on 2001/08/05 00:58:03 UTC
mod_perl-1.26 - apache_1.3.20 - mac osX
hello
i have now installed perl 5.6.1.
(something is definetely broken somewhere but im not sure whether this
problem is actually macintosh specific, hence post to both lists)
note the error lines in the first make which all point to source
code-lines looking
exactly like this:
dTHR;
?/allan
###############
@INC contains:
/System/Library/Perl/darwin
/System/Library/Perl
/Local/Library/Perl/darwin
/Local/Library/Perl
/Local/Library/Perl
/Network/Library/Perl/darwin
/Network/Library/Perl
/Network/Library/Perl
###############
%> perl Makefile.PL APACHE_SRC=../apache_1.3.20/src DO_HTTPD=1
USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1 PERL_TRACE=1
%> make
%> sudo make install
%> cd ..
%> ./configure --enable-module=rewrite --enable-shared=rewrite --activate-module=src/modules/perl/libperl.a
(or: %> ./configure --enable-rule=SHARED_CORE --enable-module=rewrite
--enable-shared=rewrite --activate-module=src/modules/perl/libperl.a)
%> make
...
mod_perl.c:385: syntax error, missing `;' after `)'
mod_perl.c:740: syntax error, missing `;' after `)'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
perl -MExtUtils::Embed -e xsinit -- -o perlxsi.c -std Apache
Apache::Constants Apache::ModuleConfig Apache::Log Apache::URI
Apache::Util Apache::Connection Apache::Server Apache::File
Apache::Table
cc -O3 -I/System/Library/Perl/darwin/CORE -g -pipe -pipe -fno-common
-DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -I/usr/local/include
-DMOD_PERL_VERSION=\"1.26\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.26\"
-DPERL_TRACE=1 -I../.. -I/System/Library/Perl/darwin/CORE
-I../../os/unix -I../../include -DDARWIN -DMOD_PERL -DUSE_PERL_SSI -g
-pipe -pipe -fno-common -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing
-I/usr/local/include -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite
`../../apaci` -c perlxsi.c
...
perl_config.c:597: syntax error, missing `;' after `)'
perl_config.c:598: illegal statement, missing `;' after `STRLEN'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
...
%> sudo make install
%> sudo /usr/sbin/apachectl start
dyld: /usr/sbin/httpd multiple definitions of symbol _config_log_module
/usr/sbin/httpd definition of _config_log_module
/usr/libexec/httpd/mod_log_config.so definition of _config_log_module
/usr/sbin/apachectl start: httpd could not be started
###############
if i instead:
%> ./configure --enable-module=most --enable-shared=max
%> make
%> sudo make install
%> sudo /usr/sbin/apachectl start
httpd starts problemless but also mod_perl_less and if configuring
httpd.conf with the <perl directive> i will get this message:
Invalid command 'PerlModule', perhaps mis-spelled or defined by a module
not included in the server configuration
/usr/sbin/apachectl start: httpd could not be started
Re: mod_perl-1.26 - apache_1.3.20 - mac osX
Posted by Kee Hinckley <na...@somewhere.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
For what it's worth, here is my config.status for Apache 1.3.19. I
built this, and then went to the mod_perl 1.25 folder and built that,
rather than letting mod_perl build Apache. (Actually, there were
lots of other iterations, so the whole thing is confused, but that
was the final thing I did). I'm running it with HTML::Embperl and
Perl 5.6.1 installed. So far I've had no troubles running all of my
Linux-based web sites on my Powerbook Ti, which makes development a
real joy (nothing quite like programming while sipping an iced chai
latte at Starbucks).
For what it's worth, I do all my source builds and run the web server
on a UFS partition so as to avoid case problems. (Especially since,
even with Apple's patch, I believe there are security issues with
running on HFS).
#!/bin/sh
##
## config.status -- APACI auto-generated configuration restore script
##
## Use this shell script to re-run the APACI configure script for
## restoring your configuration. Additional parameters can be supplied.
##
CC="cc" \
LDFLAGS_SHLIB_EXPORT="-rdynamic" \
./configure \
"--enable-module=most" \
"--enable-shared=max" \
"--enable-module=so" \
"--with-layout=Apache" \
"--prefix=/usr/local/apache" \
"--activate-module=src/modules/perl/libperl.a" \
"--enable-shared=perl" \
"$@"
Note that --with-layout=Apache was not enough to get things to go
into /usr/local, you also have to do --prefix, it appears that some
code is letting the DARWIN flag override the layout options.
And of course, if you are building Perl 5.6.1 and installing new
versions of the standard modules, make sure you save a copy of
/usr/bin/more for when it gets overwritten.
- --
Kee Hinckley - Somewhere.Com, LLC
http://consulting.somewhere.com/
I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.
-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Security 7.0.3
iQA/AwUBO27IVyZsPfdw+r2CEQIULACeIJhn4XupdEkPkGB50JGihHy4QLwAn3EJ
HfeWtqUvD0jFEwcdtnSZK5vy
=xsO+
-----END PGP SIGNATURE-----
Re: mod_perl-1.26 - apache_1.3.20 - mac osX
Posted by Ken Williams <ke...@forum.swarthmore.edu>.
lambretta@inet.uni2.dk (allan) wrote:
>hello
>i have now installed perl 5.6.1.
>(something is definetely broken somewhere but im not sure whether this
>problem is actually macintosh specific, hence post to both lists)
>
>note the error lines in the first make which all point to source
>code-lines looking
>exactly like this:
>dTHR;
Did you build perl 5.6.1 with threading? I don't know whether anyone's
reported that to work yet. It's still an experimental feature.
>###############
>%> perl Makefile.PL APACHE_SRC=../apache_1.3.20/src DO_HTTPD=1
>USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1 PERL_TRACE=1
Last time I tried, I couldn't get APACI to work on OS X when building
mod_perl. Try with just:
perl Makefile.PL APACHE_SRC=../apache_1.3.20/src EVERYTHING=1 PERL_TRACE=1
------------------- -------------------
Ken Williams Last Bastion of Euclidity
ken@forum.swarthmore.edu The Math Forum