Re: [Speedycgi-users] Compilation problems...
Brought to you by:
samh
|
From: Sam H. <sa...@da...> - 2002-10-02 17:45:57
|
I think other people have reported AIX problems like this. I don't remember anyone reporting a fix though. The remove_libs command is optional - it reduces the startup time for the speedy binary by removing extraneous shared libs. It's possible it's part of the problem, in which case you can just remove it and run the rest of the command (from "ld" on). Have you tried gcc? Or if you can give me an account on an AIX box I can try to fix it. Sam > Hi all, > =20 > I'm trying to compile PersistentPerl-2.21 (aka speedyCGI) on AIX 4.3 = > (using the native compiler) but seem to be having some problems and am = > wondering if anyone has successfully compiled under AIX...or could help = > me out. > =20 > Here's what's happening: > =20 > When I do the standard 'perl Makefile.PL; make' > =20 > I get the following link error: > =20 > ../util/remove_libs ld -o perperl perperl_main.o perperl_cb.o = > perperl_circ.o perperl_util.o perperl_sig.o perperl_frontend.o = > perperl_backend.o perperl_file.o perperl_slot.o perperl_poll.o = > perperl_ipc.o perperl_group.o perperl_script.o perperl_opt.o = > perperl_optdefs.o = > -bE:/usr/local/lib/perl56/5.6.1/aix-ld/CORE/perl.exp -L/usr/local/lib = > -b32 /usr/local/lib/perl56/5.6.1/aix-ld/auto/DynaLoader/DynaLoader.a = > -L/usr/local/lib/perl56/5.6.1/aix-ld/CORE -lperl -lbind -lnsl -ldl -lld = > -lm -lC -lc -lcrypt -lbsd -lPW -liconv > ld: 0711-327 WARNING: Entry point not found: __start > > However if I edit the perperl/Makefile and add '-bnoentry' to the = > following line: > =20 > ../util/remove_libs $(LD) -o perperl $(OBJECT) = > -bE:/usr/local/lib/perl56/5.6.1/aix-ld/CORE/perl.exp -L/usr/local/lib = > -b32 /usr/local/lib/perl56/5.6.1/aix-ld/auto/DynaLoader/DynaLoader.a = > -L/usr/local/lib/perl56/5.6.1/aix-ld/CORE -lperl -lbind -lnsl -ldl -lld = > -lm -lC -lc -lcrypt -lbsd -lPW -liconv -bnoentry > > I no longer get the link warning, but when I try to run the 'make test' = > I get this: > =20 > No tests defined for perperl_backend extension. > PERL_DL_NONLAZY=3D1 = > PERPERL=3D/weblogs/markh/src/PersistentPerl-2.21/perperl/perperl = > PERPERL_BACKENDPROG=3D/weblogs/markh/src/PersistentPerl-2.21/perperl_back= > end/perperl_backend = > PERPERL_MODULE=3D/weblogs/markh/src/PersistentPerl-2.21// = > PERPERL_TIMEOUT=3D300 /usr/local/bin/perl -I../blib/arch -I../blib/lib = > -I/usr/local/lib/perl56/5.6.1/aix-ld -I/usr/local/lib/perl56/5.6.1 -e = > 'use Test::Harness qw(&runtests $verbose); $verbose=3D0; runtests = > @ARGV;' t/*.t > t/alarm.............exec(): 0509-036 Cannot load program = > /weblogs/markh/src/PersistentPerl-2.21/perperl/perperl because of the = > following errors: > 0509-151 The program does not have an entry point or > the o_snentry field in the auxiliary header is = > invalid. > 0509-194 Examine file headers with the 'dump -ohv' command. > exec(): 0509-036 Cannot load program = > /weblogs/markh/src/PersistentPerl-2.21/perperl/perperl because of the = > following errors: > 0509-151 The program does not have an entry point or > the o_snentry field in the auxiliary header is = > invalid. > > Are there some symbols that still need to be retained (ie. via a -u = > flag) ? > =20 > Any ideas ? > =20 > -Mark Haviland |