Re: Perl 5.8.4 -> AIX Install issues

From: Steve (krippner_at_rincewind.beloit.edu)
Date: 07/25/04


Date: 25 Jul 2004 12:23:29 -0700

Me again-

I'm still having compile problems, and I'm starting to get really
frustrated. Well, at least more than usual. We have a few 5.1 boxes
in the server room as well as a few 4.3.3 boxes, and all of them
attempt to be as similar to eachother as possible. It would seem that
Perl 5.8.4 compiles just fine on our 4.3.3 machines, but seems to fail
on our 5.1 machines. The odd thing is, we left one of our machines
alone (a rather critical one) during these upgrades, and that one
compiles it just fine! The only perceivable difference is that the
working 5.1 box is at maintaince level 3 while the others are at 6
(and the 4.3.3 machines are at 11). Based on the errors I keep
getting, and where it seems to succeed, I want to say it's either an
'ld' problem or a GCC problem. I've tried rolling back the GCC
versions and switching between AIX's and GNU's 'ld' on our testing 5.1
box, as well as use UCLA's version of 3.3.3, all to no avail, same
error (as below). I'm now attempting to compile the newest version of
GCC in the hopes that that may take care of the problem, but asside
from that I have no idea!

HELP!!!! :-)

-Steve

krippner@rincewind.beloit.edu (Steve) wrote in message news:<932c6aad.0407201123.5b28cc8e@posting.google.com>...
> Hey there-
>
> We're attempting to get Perl 5.8.4 installed on our AIX machines, and
> I've hit a wall. We're using mostly GNU utilities, (GCC, ld, ar,
> etc.) running AIX 5.1 and 4.3.3. The configure works just fine, as
> does the make minitest. The error I get is this:
>
> make[1]: Entering directory `/usr/local/src/perl-5.8.4/ext/B'
> make[1]: Leaving directory `/usr/local/src/perl-5.8.4/ext/B'
> make[1]: Entering directory `/usr/local/src/perl-5.8.4/ext/B'
> make[2]: Entering directory `/usr/local/src/perl-5.8.4/ext/B/C'
> rm -f ../../../lib/auto/B/C/C.so
> LD_RUN_PATH="" gcc -Wl,-bhalt:4 -Wl,-bM:SRE -Wl,-bI:../../../perl.exp
> -Wl,-bE:C.exp -Wl,-bnoentry -lc -L/usr/local/lib C.o -o
> ../../../lib/auto/B/C/C.so
> /lib/crt0.o(.pr+0x88): : undefined reference to `.main'
> collect2: ld returned 1 exit status
> make[2]: *** [../../../lib/auto/B/C/C.so] Error 1
> make[2]: Leaving directory `/usr/local/src/perl-5.8.4/ext/B/C'
> make[1]: *** [subdirs] Error 2
> make[1]: Leaving directory `/usr/local/src/perl-5.8.4/ext/B'
> make: *** [lib/auto/B/B.so] Error 2
> bash-2.05b#
>
>
> It looks like it's an LD problem, but I have absolutely no idea what
> could be wrong. If anyone has any ideas, please let me know!
>
> Thanks!
> -Steve



Relevant Pages

  • f7 32bit/64bit compiles.
    ... OK, a dumb question, but Ive always just assumed that all my machines were ... So the dumb question: How do you compile in 64bit mode? ... Im sure its there in the gcc man page, ...
    (Fedora)
  • C program works on 32-bit machine but corresponding mex file doesnt on 64-machine.
    ... work very well on those machines. ... The problem is in my work environment I can access MATLAB on ... in their outputs in MATLAB (though they do compile; ... to use gcc compiler; gcc version on these amchines is 4.1.2). ...
    (comp.soft-sys.matlab)
  • C program works on 32-bit machine but corresponding mex file doesnt on 64-machine
    ... work very well on those machines. ... The problem is in my work environment I can access MATLAB on ... in their outputs in MATLAB (though they do compile; ... to use gcc compiler; gcc version on these amchines is 4.1.2). ...
    (comp.soft-sys.matlab)
  • Re: How do I make my own custom C compiler?
    ... gcc runs in many machines, ... has been taken to ridiculous extremes (the assembler, ... I am not very good at GCC but I vaguely recall that it has a lot of options ... Maybe if you compile ...
    (comp.lang.c)
  • Re: How do I install this missing library?
    ... you really should be carefully following LSTC's installation ... libg2c is part of gcc. ... to tell a newcomer to compile. ... like the source code to GNU tar, and make sure you understand what's ...
    (comp.os.linux.misc)