You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Blake Girardot <gi...@mac.com> on 2002/08/17 00:06:53 UTC

make test fails on mac os x

I have been through the archives and see this problem mentioned a few times,
but only as a side note, and no response I saw dealt with how to fix the
problem. I also went over the included docs and didn't see anything related
so I hope I didn't miss anyting obvious.

Trying to install on the latest version of Mac OS X:
HTML-Embperl-1.3.4] root# uname -a
Darwin 5.5 Darwin Kernel Version 5.5: Thu May 30 14:51:26 PDT 2002;
root:xnu/xnu-201.42.3.obj~1/RELEASE_PPC  Power Macintosh powerpc

Making the makefile seem to go very well after I got all the libraries
installed.

I dont have the Apache source so I had to fill in all those items by hand,
all the files the README told me about are there, in the paths as entered.

[HTML-Embperl-1.3.4] root# perl Makefile.PL

Build with support for Apache mod_perl?(y/n) [y]y
Use /usr/include/httpd as Apache source(y/n) [y]
Will use /usr/include/httpd for Apache Headers
Enter path and file to start as httpd
[/usr/include/httpd/httpd]/usr/sbin/httpd
Apache Version Server version: Apache/1.3.26 (Darwin)
Library for mod_env.c not found, please enter path to mod_env.so
[]/usr/libexec/httpd
 + Load dynamic module mod_env.c
   (/usr/libexec/httpd/mod_env.so)
 + Load dynamic module mod_alias.c
   (/usr/libexec/httpd/mod_alias.so)
 + Load dynamic module mod_cgi.c
   (/usr/libexec/httpd/mod_cgi.so)
 + Load dynamic module mod_dir.c
   (/usr/libexec/httpd/mod_dir.so)
 + Load dynamic module mod_mime.c
   (/usr/libexec/httpd/mod_mime.so)
 + Load dynamic module mod_perl.c
   (/usr/libexec/httpd/libperl.so)
 + Load dynamic module mod_actions.c
   (/usr/libexec/httpd/mod_actions.so)
 + mod_perl was build with USE_DSO
Test start /usr/sbin/httpd
Test httpd will run as user nobody and group wheel
Test httpd will listen on port 8531
Found mod_perl  Version 1.26
Found LWP::UserAgent  Version 2.001
Found HTML::HeadParser  Version 2.17
Found Apache::Session  Version 1.54
Found Apache::SessionX  Version 2.00b3
Found File::Spec  Version 0.8
Found CGI  Version 2.56
Writing Makefile for HTML::Embperl
[photos:local/src/HTML-Embperl-1.3.4] root# make

[ make output snipped, went perfect ]

this is how it dies:

[HTML-Embperl-1.3.4] root# make test
PERL_DL_NONLAZY=0
/usr/bin/perl -Iblib/arch -Iblib/lib -I/System/Library/Perl/darwin -I/System
/Library/Perl test.pl

loading...                    dyld: /usr/bin/perl Undefined symbols:
_ap_add_module
_ap_add_version_component
_ap_get_client_block
_ap_log_error
_ap_make_sub_pool
_ap_palloc
_ap_pstrdup
_ap_register_cleanup
_ap_remove_module
_ap_rflush
_ap_rputc
_ap_rwrite
_ap_send_http_header
_ap_set_content_length
_ap_setup_client_block
_ap_should_client_block
_ap_table_add
_ap_table_get
_ap_table_set
make: *** [test_dynamic] Error 67
[photos:local/src/HTML-Embperl-1.3.4] root#

I have no idea how to get past this point, does anyone have any ideas or
suggestions?

cheers,
blake



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: make test fails on mac os x - fixed

Posted by Blake Girardot <gi...@mac.com>.
> Run perl Makefile.PL and say no to mod_perl support.  Then make test
> will work fine.  But it looks like if you build with mod_perl
> support, the cgi version won't work.  I think it may be looking for
> libperl.a in the wrong place (off in /Library/something or other).

that fixed it great. thank you very much for taking the time to think about
it.

i now have it working basically as a cgi. it doesn't seem to find other
packages installed like DBI, or at rather one of my pages that uses DBI
fails, but I'll make a seperate thread on it if I need to after I work on it
a bit more.

again, thank you very much for the help
cheers,
blake





---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: make test fails on mac os x

Posted by Kee Hinckley <na...@somewhere.com>.
At 7:33 PM -0400 8/16/02, Blake Girardot wrote:
>Thank you very much for the suggestion.
>
>I did as you said and went ahead and did make install and it all seemed to
>go ok, but then I did run into a 500 server error this when I tried to
>access it via embpcgi.pl.

Whoops.  Yes, that makes sense.  I've never used the CGI version, I 
use it under mod_perl.  (I've been meaning to see if that works with 
the standard Apache that ships on the machine--I've always configured 
my own).

Run perl Makefile.PL and say no to mod_perl support.  Then make test 
will work fine.  But it looks like if you build with mod_perl 
support, the cgi version won't work.  I think it may be looking for 
libperl.a in the wrong place (off in /Library/something or other).


-- 

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.

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: make test fails on mac os x

Posted by Blake Girardot <gi...@mac.com>.
Thank you very much for the suggestion.

I did as you said and went ahead and did make install and it all seemed to
go ok, but then I did run into a 500 server error this when I tried to
access it via embpcgi.pl.

the error log shows this:

[Fri Aug 16 17:49:09 2002] [error] System: Connection reset by peer (errno:
54)
dyld: perl Undefined symbols:
_ap_add_module
_ap_add_version_component
_ap_get_client_block
_ap_log_error
_ap_make_sub_pool
_ap_palloc
_ap_pstrdup
_ap_register_cleanup
_ap_remove_module
_ap_rflush
_ap_rputc
_ap_rwrite
_ap_send_http_header
_ap_set_content_length
_ap_setup_client_block
_ap_should_client_block
_ap_table_add
_ap_table_get
_ap_table_set
[Fri Aug 16 19:28:14 2002] [error] [client 64.84.5.228] Premature end of
script headers: /Library/WebServer/Documents/cgi-bin/embpcgi.pl

which is the same as what make test told me i think.

i'm still working on it, i want to get it working and thank you again,
cheers,
blake



----- Original Message -----
From: "Kee Hinckley" <na...@somewhere.com>
To: "Blake Girardot" <gi...@mac.com>
Cc: <em...@perl.apache.org>
Sent: Friday, August 16, 2002 6:54 PM
Subject: Re: make test fails on mac os x


> At 6:06 PM -0400 8/16/02, Blake Girardot wrote:
> >
> >make: *** [test_dynamic] Error 67
> >[photos:local/src/HTML-Embperl-1.3.4] root#
> >
> >I have no idea how to get past this point, does anyone have any ideas or
> >suggestions?
>
> I just did the make install and forgot about it (oops, should have
> reported it).  It does run just fine on OSX.  Not sure what's up with
> the errors.  Probably needs one of the OSX specific link options.
> --
>
> 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.


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: make test fails on mac os x

Posted by Kee Hinckley <na...@somewhere.com>.
At 6:06 PM -0400 8/16/02, Blake Girardot wrote:
>
>make: *** [test_dynamic] Error 67
>[photos:local/src/HTML-Embperl-1.3.4] root#
>
>I have no idea how to get past this point, does anyone have any ideas or
>suggestions?

I just did the make install and forgot about it (oops, should have 
reported it).  It does run just fine on OSX.  Not sure what's up with 
the errors.  Probably needs one of the OSX specific link options.
-- 

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.

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org