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

AIX5.2 compiler issue

Status
Not open for further replies.

nyck

Technical User
Mar 10, 2004
447
GB
hello,

I have an AIX5.2 server and I'm attempting a compile and for both compilers it fails with the following error:-

/usr/vac/bin/xlc t.c
1506-507 (W) No licenses available. Contact your program supplier to add additional users. Compilation will proceed shortly.

# /usr/vacpp/bin/xlC t.cpp
1540-5215 (W) No licenses available. Contact your program supplier to add additional users. Compilation will proceed shortly

The versions of the compilers are as follows:-

lslpp -l vac.C
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
vac.C 6.0.0.7 COMMITTED C for AIX Compiler

Path: /etc/objrepos
vac.C 6.0.0.7 COMMITTED C for AIX Compiler
# lslpp -l vacpp.cmp.core
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
vacpp.cmp.core 6.0.0.8 COMMITTED VisualAge C++ Compiler

Path: /etc/objrepos
vacpp.cmp.core 6.0.0.0 COMMITTED VisualAge C++ Compiler

Is there anything i'm missing here such as do I need some sort of license manager process running in the background?

I have looked in the compiler directories and the license files are in there and they are valid until 2037.

Cheers

Nyck
 
your compile is not failing, it just thinks you don't have a valid license to run it... tells you that, and then compiles your program.
 
if you have the compiler media, there are license files on it you can use to get rid of this message...

do you need help with this?
 
is the i4ls ( AIX license manager used for C, cobol,... )running on your machine?

rgds,


R.
 
hello,

yes the compile does work but it takes about one min or so, this is only taking a couple of seconds on one of our solaris servers. I was just wondering if this was due to the licensing issue?

I'm afraid that i do not have the compiler media as this was a server that was built before my time and the person who built it has left, so any help on this would be great!

i ran the following command:-

lssrc -g iforls

and from the output i discovered that i4llmd was not running, so i started this. Then i run the following to start the license manager gui:-

/usr/opt/ifor/ls/os/aix/bin/i4bit

is this what i should be doing?
 
Well, it's not the compiling that takes a long time, it's just the fact that it takes a minute or so for xlc/xlC to timeout on the license request before it goes ahead and compiles anyway. I would have thought that unlicensed, compilation would simply fail, but apparently IBM just nags to you about the missing license and only expects you to be patient a bit.

If you just need to copile a program occasionally you can leave it like this I guess...


HTH,

p5wizard
 
depends on your environment.

if you have multiple AIX boxes, and they share compiler licenses, then you need to make sure the host that is having the problem can talk to the license server. i believe that i4tv (script) will tell you what your box thinks should be going on in that regard.

on the other hand, if the previous admin set up the host to have 'node locked' compiler licenses (license tied to a single host, not shareable amoungst machines), then maybe just starting the license manager will be enough.

one thing you can do since you dont't have media is see if the last admin left the license file(s) on you host, search for a file ending in .lic

you could always purchase a newer compiler, there is at least 1 revision higher for 5.2 than you are using, or go the free route and download the gcc rpm from IBM. or just live with the annoying message... and the the drag it places on a compile.
 
hello,

i have run the i4tv script and below is the output:-

./i4tv
i4tv Version 4.6.8 AIX -- LUM Test and Verification Tool
(c) Copyright 1995-2004, IBM Corporation, All Rights Reserved
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
(c) Copyright 1991-1998 Gradient Technologies Inc., All Rights Reserved
(c) Copyright 1991,1992,1993, Hewlett-Packard Company, All Rights Reserved

?(ls_tv) request_license: No servers available for this vendor.
Active License Servers:
No servers found
Active Central Registry License Server:
No servers found

i have run a search on the server and there are a few .lic files in the compiler directories.

 
Ok, here's what you can do. run i4config. select number 2 to define the host as a nodelock server and follow the prompts.

verify that you have the server up with i4tv again.

when you get that done, locate the license file that corresponds to the compiler you have. you can check the first line of the file, there is some text that describes which product it's for. it's been a long time, but i think the nodelock license file will have an 'n' in the filename.

next, take the file and move it to the same dir as i4blt and edit it with your favourite editor. remove everthing past the first line. change the '-T' parameter to reflect how many licenses were bought for this compiler (assume 1) and change the '-R' param to root. save and run the file as a script. this will enroll the license.

you should be good to go then.. someone else please chime in if i missed anything.
 
hello,

i ended up downloading the install guide for this product and it was just a case of running i4blt and from that i was able to enroll the licenses for both compilers, did that and then run the compile and it worked very quickly with no errors what so ever!

The only bit that i was unsure about was the bit about the number of valid purchased licenses, i looked in the license file and entered the following:-

LicenseCount=65535

cheers for all the help on this wonderful issue!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top