On Wed, Mar 21, 2001 at 07:21:21PM +0200, Aivo Kalu wrote:
> Thanks. You seem to know quite everything in this field ?
Actually not.
> I removed old perl and rebuilt perl with patch applied and reinstalled it
> and reinstalled CPAN::Bundle and G/GA/GAAS/libwww-perl-5.5.11.tar.gz. It
> went fine.
>
> Also, patched apache/src/os/unix/os.c and os.h so that AIX versions over
> 4.3.3 isn't detected anymore. I just removed the #if AIX < 43 and #endif
> pairs.
>
> Ran following command in mod_perl directory:
>
> perl Makefile.PL DO_HTTPD=1 USE_APACI=1 USE_DSO=1 EVERYTHING=1 DYNAMIC=1 \
> APACI_ARGS="--enable-rule=SHARED_CORE --with-layout=GNU --enable-shared=max"
>
> make failed. I had to modify apache/src/modules/perl/Makefile to remove
> -Xlinker flags and also to define APACHELIBEXEC=/usr/local/lib. Also in
> PERLLDDFLAGS there were
> -bE:$(BASEEXT).exp flag. However, the BASEXT wasn't assigned a value and
> compile failed. I changed the flag to -bE:$(BASEEXT)libperl.exp. Is that
> correct ?
This suspicially sounds like you had another perl in the path that was
compiled with a different compiler. For the modperl case you must use
the same compiler for everything. The perl delivered with AIX for
example is compiled using the IBM C compiler and will not work if you
attempt to compile modperl with gcc due to the different compiler
options.
> After this make succeeded with tons of warnings (Warning: Duplicate symbol
> PL_* and Warning: Exported symbol not defined PL_*). make test failed with
> message:
>
> Target "all" is up to date.
> cp t/conf/mod_perl_srm.conf t/conf/srm.conf
> ./apaci/load_modules.pl ../apache_1.3.19/src
> ../apache_1.3.19/src/httpd -f pwd/t/conf/httpd.conf
> -X -d pwd/t &
> httpd listening on port 8529
> will write error_log to: t/logs/error_log
> letting apache warm up...Syntax error on line 1 of
> /home/aivo/mod_perl-1.25/t/conf/httpd.conf:
> Cannot load
> /home/aivo/mod_perl-1.25/t/../../apache_1.3.19/src/modules/perl/libperl.so
> into server: dlopen:
> /home/aivo/mod_perl-1.25/t/../../apache_1.3.19/src/modules/perl/libperl.so:
> 30
> /home/aivo/mod_perl-1.25/t/../../apache_1.3.19/src/modules/perl/libperl.so36
> ap_add_cgi_vars 225 httpd36 ap_add_common_vars 226 httpd36 ap_add_file_conf
> 227 httpd36 ap_add_per_dir_conf 228 httpd36 ap_add_per_url_conf 229 httpd36
> ap_add_version_component 230 httpd36 ap_append_arrays 231 httpd36
> ap_cfg_getline 232 httpd36 ap_child_terminate 233 httpd36 ap_cpystrn 234
> httpd36 ap_create_per_dir_config 235 httpd36 ap_destroy_pool 236 httpd36
> ap_error_log2stderr 237 httpd36 ap_find_command_in_modules 238 httpd36
> ap_getword 239 httpd36 ap_getword_conf 240 httpd36 ap_handle_command 241
> httpd36 ap_ind 242 httpd36 ap_init_virtual_host 243 httpd36 ap_is_fnmatch
> 244 httpd36 ap_limit_section 245 httpd36 ap_log_error 246 httpd36
> ap_log_printf 247 httpd36 ap_make_array 248 httpd36 ap_make_sub_pool 249
> httpd36 ap_make_table 250 httpd36 ap_matches_request_vhost 251 httpd36
> ap_null_cleanup 252 httpd36 ap_overlay_tables 253 httpd36 ap_palloc 254
> httpd36 ap_pcalloc 255 httpd36 ap_pcfg_open_custom 256 httpd36 ap_pregcomp
> 257 httpd36 ap_pstrcat 258 httpd36 ap_pstrdup 259 httpd36 ap_push_array 260
> httpd36 ap_register_cleanup 261 httpd36 ap_server_argv0 262 httpd36
> ap_server_root_relative 263 httpd36 ap_set_config_vectors 264 httpd36
> ap_snprintf 265 httpd36 ap_srm_command_loop 266 httpd36 ap_table_add 267
> httpd36 ap_table_get 268 httpd36 ap_table_set 269 httpd36 ap_table_setn 270
> httpd36 core_module 271 httpd36 top_module 272 httpd
> done
>
> There are no messages in test error log file.
The warnings for duplicate symbols are OK, this is due to the build
procedure of perl.
> Should I run perl Makefile.PL with different arguments? Should I use
> different APACI_ARGS? Is there any other patch, what I could apply ?
I have had good results with the following config:
perl Makefile.PL EVERYTHING=1 DO_HTTPD=1 USE_APACI=1 \
APACI_ARGS="--enable-module=most --enable-shared=max \
--disable-shared=perl --disable-shared=include"
--
Jens-Uwe Mager
HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Germany
Phone: +49 5131 709320
FAX: +49 5131 709325
Internet: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]