I don't have a httpd.exp in /usr/local/apache/libexec. I assume that is
because I am not using DSO for any of my apache modules. I
used -bI:<apache-source-dir>/src/support/httpd.exp and got a clean
compile/link.
When I try 'make test', I get:
$ make test
PERL_DL_NONLAZY=0
/usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.6.0/aix
-I/usr/local/lib/perl5/5.6.0 test.pl
loading... Can't load
'blib/arch/auto/HTML/Embperl/Embperl.so
' for module HTML::Embperl: dlopen: blib/arch/auto/HTML/Embperl/Embperl.so:
30
blib/arch/auto/HTML/Embperl/Embperl.so36 ap_get_client_block 131 perl36
ap_log_e
rror 132 perl36 ap_palloc 133 perl36 ap_pstrdup 134 perl36 ap_rflush 135
perl36
ap_rputc 136 perl36 ap_rwrite 137 perl36 ap_send_http_header 138 perl36
ap_set_c
ontent_length 139 perl36 ap_setup_client_block 140 perl36
ap_should_client_block
141 perl36 ap_table_add 142 perl36 ap_table_set 143 perl at
/usr/local/lib/perl
5/5.6.0/aix/DynaLoader.pm line 200.
at test.pl line 557
Compilation failed in require at test.pl line 557.
BEGIN failed--compilation aborted at test.pl line 557.
make: *** [test_dynamic] Error 255
BTW, since I am not using DSO, and am using perl 5.06, I havn't applied the
perl patch mentioned in the mod_perl INSTALL.
-----Original Message-----
From: Jens-Uwe Mager [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 14, 2000 1:25 PM
To: Greg Estep
Cc: Jens-Uwe Mager; [EMAIL PROTECTED]
Subject: Re: non-DSO mod_perl, Embperl, and AIX not working
On Tue, Jun 13, 2000 at 08:36:40PM -0400, Greg Estep wrote:
> When 'make' invokes 'ld' with the following command:
>
> ld -o
>
blib/arch/auto/HTML/Embperl/Embperl.so -bhalt:4 -bM:SRE -bI:/usr/local/lib/
> perl5/5.6.0/aix/CORE/perl.exp -bE:Embperl.exp -b
> noentry -lC -lc -L/usr/local/lib Embperl.o epmain.o epio.o epchar.o
epcmd.o
> eputil.o epeval.o
>
epdbg.o -bI:/usr/local/lib/perl5/site_perl/5.6.0/aix/auto/Apache/mod_perl.ex
> p
>
> These following errors are produced.
>
> ld: 0711-317 ERROR: Undefined symbol: .ap_palloc
> ld: 0711-317 ERROR: Undefined symbol: .ap_rputc
> ld: 0711-317 ERROR: Undefined symbol: .ap_rflush
> ld: 0711-317 ERROR: Undefined symbol: .ap_rwrite
> ld: 0711-317 ERROR: Undefined symbol: .ap_setup_client_block
> ld: 0711-317 ERROR: Undefined symbol: .ap_should_client_block
> ld: 0711-317 ERROR: Undefined symbol: .ap_get_client_block
> ld: 0711-317 ERROR: Undefined symbol: .ap_pstrdup
> ld: 0711-317 ERROR: Undefined symbol: .ap_table_set
> ld: 0711-317 ERROR: Undefined symbol: .ap_table_add
> ld: 0711-317 ERROR: Undefined symbol: .ap_set_content_length
> ld: 0711-317 ERROR: Undefined symbol: .ap_send_http_header
> ld: 0711-317 ERROR: Undefined symbol: .ap_log_error
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
These are the symbols that embperl needs to reference from the main
Apache executable, there is an -bI:/usr/local/apache/libexec/httpd.exp
missing in the above linker command line. I would suspect that the
embperl Makefile.PL could use an overhaul and use the new features of
Apache::src to find the flags needed for linking a plug-in that needs to
link both against perl and httpd.
I also would recommend that you apply the patch to perl mentioned in the
mod_perl INSTALL file.
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX: +49 5131 709325
Internet: [EMAIL PROTECTED]