Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing gcc on AIX 5.1.0.3 questions??

Status
Not open for further replies.

BobMCT

IS-IT--Management
Sep 11, 2000
756
US
AIX/Open guru's;

I am building a spare box with AIX 5.1.0.3 which so far has gone successfully. I do not have the IBM c suites and I need to compile perl 5.8.0; apache 1.3.27; php 4.x, etc. to make a new working webserver w/SSL.

Therefore, as I have done before, I downloaded the latest copy of gcc from the BullFreeware site and installp'ed it successfully.

Then, after downloading the various tarballs and trying to compile them I get numerous errors about missing things from the compiler right at the very start.

Now, I know I don't have the exact error message(s) but my questions is: Are there any tricks to getting a working gcc installed on this box? Other than Bull and UCLA, where should one obtain a gcc binary installable?

Has anyone successfully installed gcc and then compiled the above mentioned apps?

Any pointers/guidance will be greatly appreciated.

Signed - Frustrated Bob
 

I have installed gcc from the Bull site plenty of times.
What does the configure script say about gcc??

Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Henrik -
As of this morning I've got the IBM supplied gcc binary. gcc -v shows "gcc version 2.9-aix51-020209".

I've untar'ed my perl download into /usr/local/lib/perl-5.8.0 and from there run the ./Configure script which seemed to run successfully. Next step is to run make. Here's what just happened:
=========================================================
make
cc -O av.c -o av
ld: 0711-317 ERROR: Undefined symbol: .main
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make: 1254-004 The error code from the last command is 1.

Stop.
=========================================================
Obviously it is not finding certain modules and as I am not a C programmer or that familiar with the cc/gcc compilers I don't know where to turn now.

BTW - I had to create a symbolic link of /usr/bin/cc to point to the gcc compiler.

Does this help?
 

Your configure script doesn't run succesfully.
Somewhere in the output it checks for 'cc' and 'gcc' and probably stops because it can't find it. You have to make sure the script can find gcc.

Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
It would be helpful to see the linker errors, but most likely you need to set CC, LIBPATH, LDFLAGS for configure.
 
Well guys, here's the update. After researching your recommendations (which were good ones) and realizing that we were trying to setup apache on a 5.1 PreP box (which is no longer being supported anyway), we decided to abandon this approach and elected to setup a new AMD box with Red Hat 8.0 Pro with gcc, apache, perl, php, ssl, ssh, etc., etc., etc. already installed. Makes life a lot easier.

I've got to believe that the 2.0+ GHz AMD with RH is as least as fast and the 43P-140 we were using.

If interested I'll post my comparisons upon completion.

Thanks again.

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top