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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cc -> /usr/vac/bin/xlc 1

Status
Not open for further replies.

dickiebird

Programmer
Feb 14, 2002
758
GB
Hi Guys
At our shop, we've just installed Aix 4.3.3(yes - I know - about 8 years too late)
cc isn't included in the new build, so I've got our Admin boys to install xlc instead.(With links etc - but they don't know much about it - neither do I)
But...When I attempt a make, I get the following error :
cc -c -I. -I/usr/gnbb/include -I/usr/cg-index/include -I/data/build_2.0.9/include lattrd.c -o lattrd.o
cc: cannot retrieve message number 1501-238
make: The error code from the last command is 41.

Anyone any ideas,sites that might help me get compiling again?
(I've already submitted this to the C forum with no luck)
TIA ;-)



Dickie Bird

Honi soit qui mal y pense
 
hi,

probably a long shot but , are you specifying your own make file when doing the make or using the default. Or are you specifying the cc command on command line ?
if using makefile do you have a header indicating its on AIX platform , sun etc..

Have you tried compiling to with -b option dynamic / static
indicating which type of library files are searched

Is your LIBPATH set to /usr/lib

do view options of cc type cc 2>&1 | more

probably long shots but see if any help





 
It seems that not all of the filesets for xlc were installed. The following should be installed:

xlC.aix43.rte 4.0.2.1 C C Set ++ Runtime for AIX 4.3
xlC.cpp 4.3.0.1 C C for AIX Preprocessor
xlC.msg.en_US.rte 4.0.2.0 C C Set ++ Runtime Messages--U.S.
xlC.rte 4.0.2.0 C C Set ++ Runtime
 
Hi
DMARSWAY : I ran cc 2>&1 and got cc: NLSPATH is not set, help not found
So I set NLSPATH with export NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%N
then got my original message: cc: cannot retrieve message number 1501-231
I guess NLSPATH points to /usr/lib/nls/msg then whatever is set in my $LANG env. variable ?
As I'm not sure of the %L/%N convention, I tried NLSPATH as
export NLSPATH=/usr/lib/nls/msg/en_US as $LANG is set to en_US.
Still no joy......
Thanks in advance for any more ideas.

And to AIXSPadmin...
I have none of the afore-mentioned files
In /usr/vac/bin I have
-r-xr-xr-x 1 bin bin 2071 Feb 10 2000 CreateExportList
-r-x------ 1 bin bin 1496 Feb 24 2000 restoreCSET
-r-x------ 1 bin bin 1598 Feb 24 2000 replaceCSET
-r-xr-xr-x 1 bin bin 4423 Feb 24 2000 showpdf
-r-xr-xr-x 1 bin bin 3119 Feb 24 2000 resetpdf
-r-xr-xr-x 1 bin bin 2807 Feb 24 2000 cleanpdf
-r-xr-xr-x 11 bin bin 49927 Oct 18 14:20 xlc_r7
-r-xr-xr-x 11 bin bin 49927 Oct 18 14:20 xlc_r4
-r-xr-xr-x 11 bin bin 49927 Oct 18 14:20 xlc_r
-r-xr-xr-x 11 bin bin 49927 Oct 18 14:20 xlc128
-r-xr-xr-x 11 bin bin 49927 Oct 18 14:20 xlc
-r-xr-xr-x 11 bin bin 49927 Oct 18 14:20 cc_r7
-r-xr-xr-x 11 bin bin 49927 Oct 18 14:20 cc_r4
-r-xr-xr-x 11 bin bin 49927 Oct 18 14:20 cc_r
-r-xr-xr-x 11 bin bin 49927 Oct 18 14:20 cc128
-r-xr-xr-x 11 bin bin 49927 Oct 18 14:20 cc
-r-xr-xr-x 11 bin bin 49927 Oct 18 14:20 c89

and in /usr/vac/exe I have
-r-xr-xr-x 1 bin bin 50006 Feb 23 2000 bolt
drwxr-xr-x 2 bin bin 512 Oct 17 15:41 default_msg
-r-xr-xr-x 1 bin bin 167018 Feb 24 2000 dis
-r-xr-xr-x 1 bin bin 11405106 Feb 23 2000 ipa
-r-xr-xr-x 1 bin bin 6406804 Feb 24 2000 xlCcode
-r-xr-xr-x 1 bin bin 618466 Feb 24 2000 xlCcpp
-r-xr-xr-x 1 bin bin 2432494 Feb 24 2000 xlcentry

Any other thoughts guys ?
TIA ;-)

Dickie Bird

Honi soit qui mal y pense
 
Filesets not files; do an `lslpp -l | grep -i xlc` and check for the filesets. If you are getting a cannot retrieve message then it seems the C message files did not get installed or not installed correctly.
 
Sorry AIXSPadmin - I'm with you now !
I only get this :
lslpp -l | grep -i xlc
xlC.aix43.rte 4.0.2.1 COMMITTED C Set ++ Runtime for AIX4.3
xlC.rte 4.0.2.0 COMMITTED C Set ++ Runtime

I guess this means an incorrect installation ?
I'll get back to the AIX admin guys.
Thanks muchly !
Dickie Bird

Honi soit qui mal y pense
 
I am confused...and for me that isnt saying much...
When you upgraded to 4.3.3, I assume you purchased a c
compiler? or at least upgraded your old compiler? Most
of the new compilers for Aix 4.3.3 were Visual Age compilers
that had to be bought or upgraded, because the older versions
would not work correctly...or might work, but required a
bunch of hoops to be gone through. Many decided to go to the
site and get the free gcc compiler and
use that....others purchased a full version and went from
there...

The C compilers from Visual Age required a LUM set up...
documentation on lum:
ftp://ftp.software.ibm.com/software/lum/aix/doc/
Version 5 of C++
LUM


Some of the filesets that are included on the AIX 4.3.3 cd
are some of the xlC runtime stuff....but not anything that
gives you a C compiler....

so I am not sure what you mean by xlC....maybe
you have it and it is the correct version, and
life is good...maybe you have an old version or don't have LUM (iforls stuff installed) Or maybe it is just my
confusion.....

Anyway.....my two cents.... hope you get it working!
 
Finally up and running - the ifor stuff wasn't running
(whatever ifor is ( apart from a Welsh railway engine))
;-) Dickie Bird
Honi soit qui mal y pense
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top