perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John P. Gibbons" <>
Subject Problems with Embperl and AIX 5.2
Date Thu, 08 Jul 2004 19:58:40 GMT
Recently we've been upgrading our servers from AIX 4.3.3 to AIX 5.2 and 
one of the casualties has been Embperl. I've been wrestling with trying 
to make this work for some time now, and not being a C programmer I 
think I might have hit a wall.

Here's what I'm using:

AIX 5.2
IBM HTTPServer 1.3.28
mod_perl 1.29
Embperl 1.3.6 (and I've tried 2.0 with the same result, although I had 
to fix some syntax issues with // comments)
IBM's Visual Age compiler 6.0

First things first, I have only been able to make mod_perl work when 
using Perl 5.8.4. Any other version, including 5.8.1 will cause a 
segfault in Apache. This happens both with IBM HTTPServer (which is what 
we want to use) and a compiled Apache. We're using APXS to configure 
mod_perl because we don't want to have to roll our own Apache (so we can 
get support from IBM) so even if a statically compiled version did work, 
we couldn't use.

Anyhow, once Apache and mod_perl are happy I am now stuck with Embperl 
not working. It compiles flawlessly with no errors but running a make 
test returns:

 make test
        PERL_DL_NONLAZY=0 /appl/web/perl/bin/perl "-Iblib/lib" 

loading...                    Can't load 
for module HTML::Embperl: Cannot run a file that does not have a valid 
format. at /appl/web/perl/lib/5.8.4/aix/ line 230.
 at line 1525
Compilation failed in require at line 1525.
BEGIN failed--compilation aborted at line 1525.

Test terminated with fatal error
Use of uninitialized value in string ne at line 966.
make: 1254-004 The error code from the last command is 1.



I've tried this with 2.0 as well and it has the same problem.

I think it might have something to do with missing libraries as ldd on returns:

./blib/arch/auto/HTML/Embperl/ needs:
Cannot findCannot find   /unix
I think it's saying that it can't find two libraries, but it isn't 
telling me which ones these are.Curiously, ldd on has these 
errors as well. needs:
Cannot findCannot find   /unix

Again, I'm not a C programmer so I might be way off here, but after 
reading through the mailing list archives ldd output is often requested 
when diagnosing problems so I'm including it. Here are the ldd outputs 
for httpd and the perl binary, in case they are of any use.

../bin/httpd needs:

/appl/web/perl/bin/perl needs:

And here's the output of perl -V:
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
    osname=aix, osvers=, archname=aix
    uname='aix intranet1 2 5 000121674c00 '
    config_args='-Uuselargefiles -Dprefix=/appl/web/perl'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef 
    useperlio=define d_sfio=undef uselargefiles=undef usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    cc='cc', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE 
-qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -I/usr/local/include',
    cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 
-qnoansialias -DUSE_NATIVE_DLOPEN -I/usr/local/include'
    ccversion='', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -brtl -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lbind -lnsl -ldbm -ldl -lld -lm -lcrypt -lc -lbsd
    perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lc -lbsd
    libc=/lib/libc.a, so=a, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='  
    cccdlflags=' ', lddlflags=' -bhalt:4 -bM:SRE 
-bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -bnoentry -lc -L/usr/local/lib'

Characteristics of this binary (from libperl):
  Compile-time options:
  Built under aix
  Compiled at Apr 28 2004 13:20:00

Does anyone have any idea what's going on and what I can do to fix it?

Thanks in advance!


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message