Compiler matter

  • Follow


Hi,

I tried to compile a simple hello world C program but the compiler looked 
for the old host name. How to overcome this problem?

 /usr/ucb/cc -o try try.c
ucbcc: Warning: 
Option -YP,:/usr/ucblib:/opt/SUNWspro/WS6U2/bin/../lib:/opt/SUNWspro/WS6U2/bin:/usr/ccs/lib:/usr/lib 
passed to ld, if ld is invoked, ignored otherwise



License Error : Cannot find the license server (libalephprd)

        in the network database for product(Sun WorkShop Compiler C SPARC)

Cannot find SERVER hostname in network database

 The lookup for the hostname on the SERVER line in the

 license file failed.  This often happens when NIS or DNS

 or the hosts file is incorrect.  Workaround: Use IP-Address

 (e.g., 123.456.789.123) instead of hostname

Feature:workshop.c.sparc

Hostname:skywalker ------------------------------------------------------------------------------------>This 
is the old host name (current hostname is libalephprd)

FLEXlm error:-14,7.  System Error: 146    Connection refused



Thanks in advance for any advice.


0
Reply NewBie 1/6/2006 7:29:59 AM

NewBie wrote:
> Hi,
>
> I tried to compile a simple hello world C program but the compiler looked
> for the old host name. How to overcome this problem?
>
>  /usr/ucb/cc -o try try.c
> ucbcc: Warning:
> Option -YP,:/usr/ucblib:/opt/SUNWspro/WS6U2/bin/../lib:/opt/SUNWspro/WS6U2/bin:/usr/ccs/lib:/usr/lib
> passed to ld, if ld is invoked, ignored otherwise
>
>
>
> License Error : Cannot find the license server (libalephprd)
>
>         in the network database for product(Sun WorkShop Compiler C SPARC)
>
> Cannot find SERVER hostname in network database
>
>  The lookup for the hostname on the SERVER line in the
>
>  license file failed.  This often happens when NIS or DNS
>
>  or the hosts file is incorrect.  Workaround: Use IP-Address
>
>  (e.g., 123.456.789.123) instead of hostname
>
> Feature:workshop.c.sparc
>
> Hostname:skywalker ------------------------------------------------------------------------------------>This
> is the old host name (current hostname is libalephprd)
>
> FLEXlm error:-14,7.  System Error: 146    Connection refused
>
>
>
> Thanks in advance for any advice.

My impression  here is that  the stuff you ar using is just plain old.
( version 6.2 of the compiler is 5 years old )
Sun Studio 11  does not need a license server .

You should  not  use /usr/ucb/cc    that is just a script  that calls
/opt/SUNWspro/bin/cc    with some BSD  dependant options.

Got to     http://www.sun.com/software/products/studio/index.xml

Download and install  the latest  C compiler

put /opt/SUNWspro/bin  in your PATH  before  /usr/ucb   or delete
/usr/ucb from you PATH completely.

Then  try to compile  Your ALEPH   system

//Lars

0
Reply tunla 1/6/2006 9:38:49 AM


NewBie wrote:
> Hi,
> 
> I tried to compile a simple hello world C program but the compiler looked 
> for the old host name. How to overcome this problem?
> 
>  /usr/ucb/cc -o try try.c
> ucbcc: Warning: 
> Option -YP,:/usr/ucblib:/opt/SUNWspro/WS6U2/bin/../lib:/opt/SUNWspro/WS6U2/bin:/usr/ccs/lib:/usr/lib 
> passed to ld, if ld is invoked, ignored otherwise
> 
> 
> 
> License Error : Cannot find the license server (libalephprd)

I'm sure it can be solved (update license file, get another code etc) 
but why bother? Why not download Sun's Studio 11, which is the latest 
version of the compiler, but now completely free?

-- 
Dave K

http://www.southminster-branch-line.org.uk/

Please note my email address changes periodically to avoid spam.
It is always of the form: month-year@domain. Hitting reply will work
for a couple of months only. Later set it manually. The month is
always written in 3 letters (e.g. Jan, not January etc)
0
Reply Dave 1/6/2006 9:51:07 AM

On 6/1/06 9:51, in article 43be3d89@212.67.96.135, "Dave"
<INVALID-see-signature-for-how-to-determine@southminster-branch-line.org.uk>
wrote:

> NewBie wrote:
>> Hi,
>> 
>> I tried to compile a simple hello world C program but the compiler looked
>> for the old host name. How to overcome this problem?
>> 
>>  /usr/ucb/cc -o try try.c
>> ucbcc: Warning: 
>> Option 
>> -YP,:/usr/ucblib:/opt/SUNWspro/WS6U2/bin/../lib:/opt/SUNWspro/WS6U2/bin:/usr/
>> ccs/lib:/usr/lib
>> passed to ld, if ld is invoked, ignored otherwise
>> 
>> 
>> 
>> License Error : Cannot find the license server (libalephprd)
> 
> I'm sure it can be solved (update license file, get another code etc)
> but why bother? Why not download Sun's Studio 11, which is the latest
> version of the compiler, but now completely free?

I'd also suggest that trying to run the cc in /usr/ucb is not a good idea in
itself.

Cheers,

Chris 

0
Reply Chris 1/6/2006 11:11:57 AM

Dave wrote:

> I'm sure it can be solved (update license file, get another code etc) 
> but why bother? Why not download Sun's Studio 11, which is the latest 
> version of the compiler, but now completely free?
> 

My comment would not be valid unless you have a supported machine of 
course. You will need an UltraSPARC processor and the minimum 
recommeneded is a U60 with 512 MB and a 450 MHz CPU. But if you don't 
use the GUI, you can get away with a lot less, but it must be an 
UltraSPARC. I've found it quite acceptable using the GUI on a 360 MHz 
Ultra 60.

-- 
Dave K

http://www.southminster-branch-line.org.uk/

Please note my email address changes periodically to avoid spam.
It is always of the form: month-year@domain. Hitting reply will work
for a couple of months only. Later set it manually. The month is
always written in 3 letters (e.g. Jan, not January etc)
0
Reply Dave 1/6/2006 11:25:31 AM

"NewBie" <leongyc@tp.edu.sg> writes:

>I tried to compile a simple hello world C program but the compiler looked 
>for the old host name. How to overcome this problem?

>License Error : Cannot find the license server (libalephprd)

>        in the network database for product(Sun WorkShop Compiler C SPARC)

Edit the license file to reflect the proper server name.

Casper
-- 
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
0
Reply Casper 1/6/2006 12:09:48 PM

Casper H.S. Dik wrote:
> "NewBie" <leongyc@tp.edu.sg> writes:
>
> >I tried to compile a simple hello world C program but the compiler looked
> >for the old host name. How to overcome this problem?
>
> >License Error : Cannot find the license server (libalephprd)
>
> >        in the network database for product(Sun WorkShop Compiler C SPARC)
>
> Edit the license file to reflect the proper server name.
>
> Casper

I don't know where is the license file located. Could you give me a
pointer? Is the license file editable using vi?

0
Reply NewBie 1/6/2006 1:23:23 PM

Hi Casper,

Where can I locate the license file? Is it editable using vi?

Any pointer is appreciated.

0
Reply NewBie 1/7/2006 4:29:47 AM

"NewBie" <yc282004@yahoo.com.sg> writes:


>Casper H.S. Dik wrote:
>> "NewBie" <leongyc@tp.edu.sg> writes:
>>
>> >I tried to compile a simple hello world C program but the compiler looked
>> >for the old host name. How to overcome this problem?
>>
>> >License Error : Cannot find the license server (libalephprd)
>>
>> >        in the network database for product(Sun WorkShop Compiler C SPARC)
>>
>> Edit the license file to reflect the proper server name.
>>
>> Casper

>I don't know where is the license file located. Could you give me a
>pointer? Is the license file editable using vi?

Depends; run "truss -f" and the C compiler and look for a file with
"license" in the name.

Casper
-- 
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
0
Reply Casper 1/7/2006 9:38:28 AM

"NewBie" <yc282004@yahoo.com.sg> writes in comp.unix.solaris:
|I don't know where is the license file located. Could you give me a
|pointer?

cc -xlicinfo should tell you

-- 
Alan Coopersmith * alanc@alum.calberkeley.org * Alan.Coopersmith@Sun.COM
  http://blogs.sun.com/alanc/ *  http://people.freedesktop.org/~alanc/
   http://del.icio.us/alanc/  *  http://www.csua.berkeley.edu/~alanc/
  Working for, but definitely not speaking for, Sun Microsystems, Inc.
0
Reply Alan 1/7/2006 7:11:48 PM

On 6 Jan 2006 20:29:47 -0800, NewBie <yc282004@yahoo.com.sg> wrote:
> Hi Casper,
>
> Where can I locate the license file? Is it editable using vi?

Normally, the licence file is pointed to by the LM_LICENSE_FILE
environment variable.

It is editable with vi.

The licence file itself contains the name of the machine where the
licence server should be running, the licence daemons and the licence keys.
There are a set of tools that are part of the licence package that you
can use to diagnose licence problems (lmstat, lmdiag etc).

A bientot
Paul
-- 
Paul Floyd                 http://paulf.free.fr (for what it's worth)
Surgery: ennobled Gerald.
0
Reply Paul 1/8/2006 9:20:13 PM

Hi,

Thanks everyone.

Problem solved by fixing the licence issue and re-run the daemon
"lmgrd.ste".

0
Reply NewBie 1/9/2006 5:53:44 AM

11 Replies
421 Views

(page loaded in 0.146 seconds)

Similiar Articles:


















7/24/2012 4:10:08 PM


Reply: