Hi there,
On Thu, 27 Jan 2000, Jeff Beard wrote:
> running make test fails and produces the errors listed at the end of
> this message. I searched the list archives and found a posting that
> suggested rebuilding Perl with the same compiler and tools that I
> use for apache and mod_perl. So I did but it didn't fix the
> problem. I did in fact build Perl the first time with gcc 2.8.1,
> then built gcc 2.95.2 from source. But I rebuilt Perl with the new
> compiler and get the same results.
I think the bit about using the same compiler means don't use gcc and
ztcpp, you ought to get away with 2.8 and 2.95, but it's good advice.
You're obviously comfortable with compiling your tools, so you could
try a few more recompilations. My first try would be a static build.
It seems dynamic linking is responsible for all kinds of problems. I
built mySQL for a customer yesterday and the Perl interface wouldn't
run with dynamic linking of Msql-Mysql-modules, no matter what I did.
No problems at all with --static.
If that fails I'd try with a minimum set of modules (just mod_perl to
start with, leave out php/mod_ssl) and work up from there to see what
(if anything) triggers it. There have been questions about Apache
1.3.11 with mod_perl. Try Apache 1.3.9?
There are several other possibilities. Where is apache_1.3.11? I
found I had to put both the mod_perl and Apache directories in
/usr/local, i.e. /usr/local/apache_1.3.9 and /usr/local/mod_perl-1.21.
Did you delete everything before recompiling? You should. Have you
tried `make distclean'?
Let me know how you get on.
73,
Ged.
> The environment, etc. is:
>
> Solaris 2.6 on an Ultra 1
> gcc 2.95.2
> Sun's build tools (ld, nm, ar, etc.)
> Perl 5.005_03
> apache 1.3.11
> mod_perl 1.21
>
> Other "3rd party" mods I'm including:
> php 4.0b3
> mod_ssl 2.5.0-1.3.11
>
> Appended are perl -V output and the errors from make test
>
> Thanks for your help.
>
> --Jeff
>
> Perl Version:
>
> Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
> Platform:
> osname=solaris, osvers=2.6, archname=sun4-solaris
> uname='sunos wiggy 5.6 generic sun4u sparc sunw,ultra-1 '
> hint=recommended, useposix=true, d_sigaction=define
> usethreads=undef useperlio=undef d_sfio=undef
> Compiler:
> cc='gcc -B/usr/ccs/bin/ -B/usr/ccs/bin/', optimize='-O',
> gccversion=2.95.2 19991024 (release)
> cppflags='-I/usr/local/include'
> ccflags ='-I/usr/local/include'
> stdchar='unsigned char', d_stdstdio=define, usevfork=false
> intsize=4, longsize=4, ptrsize=4, doublesize=8
> d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
> alignbytes=8, usemymalloc=y, prototype=define
> Linker and Libraries:
> ld='gcc -B/usr/ccs/bin/ -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib'
> libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
> libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
> libc=, so=so, useshrplib=false, libperl=libperl.a
> Dynamic Linking:
> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
> cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'
>
>
> Characteristics of this binary (from libperl):
> Built under solaris
> Compiled at Jan 23 2000 14:15:33
> @INC:
> /usr/local/lib/perl5/5.00503/sun4-solaris
> /usr/local/lib/perl5/5.00503
> /usr/local/lib/perl5/site_perl/5.005/sun4-solaris
> /usr/local/lib/perl5/site_perl/5.005
>
>
> make test errors:
>
> [Thu Jan 27 13:51:41 2000] [error] Can't load
> '/usr/local/lib/perl5/5.00503/sun4-solaris/auto/IO/IO.so' for module IO:
> ld.so.1: ../apache_1.3.11/src/httpd: fatal: relocation error: file
> /usr/local/lib/perl5/5.00503/sun4-solaris/auto/IO/IO.so: symbol main:
> referenced symbol not found at
> /usr/local/lib/perl5/5.00503/sun4-solaris/DynaLoader.pm line 169.
>
>
>
> Jeff Beard
> _______________________________
> Web: www.cyberxape.com
> Phone: 303.443.9339
> Location: Boulder, CO, USA
>