Operating System - OpenVMS

error while executing a program in C

 
mi7ssana
Occasional Advisor

error while executing a program in C

hi,
i try to execute my program and i get this error:

Erreur execution SYS$TRNLNM ; code retour : 444
and when i tryed with another program i get a new error:
%DCL-W-ACTIMAGE, error activating image TEST1
-CLI-E-IMGNAME, image file $1$DGA102:[000000.][env.EXE]TEST1.EXE;3
-IMGACT-F-NOT_I64, image is not an HP OpenVMS Industry Standard 64 image

someone could help me?

regards
16 REPLIES 16
Hein van den Heuvel
Honored Contributor

Re: error while executing a program in C


mi7ssana,

"step away from the machine"

But errors suggest a failure to operate the system, not a failure in the system

Please ask your peers and /or superiors how to use system.

To translate the code 444 to meaningful text you can use : $ EXIT 444
It will indicate: %SYSTEM-F-NOLOGNAM, no logical name match.

So there is a logical name (environment variable) not defined. Often those are setup system wide, sometimes for all application users, sometime per user.
You may have to execute a setup or init script before running the program.

The second error message indicates the you are using OpenVMS on Itanium, but try run an Alpha program. This too can be cause by not having the rigth logical names in place.

Ask the folks immediately around you!

Bon courage,
Hein.

Richard Brodie_1
Honored Contributor

Re: error while executing a program in C

Erreur execution SYS$TRNLNM ; code retour : 444

$ exit(444)
%SYSTEM-F-NOLOGNAM, no logical name match

Check that you are passing the logical name parameter correctly, and with correct length and case.

-IMGACT-F-NOT_I64, image is not an HP OpenVMS Industry Standard 64 image

Means what it says, you probably have compiled on another platform (e.g. Alpha). Or maybe it's not really an executable at all.
mi7ssana
Occasional Advisor

Re: error while executing a program in C

the problem that i didn't pass a logical name in my program. the program is just a test which include a simple display. and that gives me the folllowing error:
%DCL-W-ACTIMAGE, error activating image TEST1

but for the first error :
Erreur execution SYS$TRNLNM ; code retour : 444

same thong i have no link or reference to a logical name.

and honestly i dont how to do it.

thanks
mi7ssana
Occasional Advisor

Re: error while executing a program in C

i do the same thong before with a program who display hello world and it works. i try to do the same thing and now it doesn't work.
Hein van den Heuvel
Honored Contributor

Re: error while executing a program in C

To get that IMGACT message, did you just type 'run TEST1' ? That TEST1 may have been interpreted as a logical. $SHOW LOG TEST*
Notice how in the reported file name for the IMGACT message it reads " [env.EXE] "
That suggests to me that there may was been an attempt to create CPU-architecture dependend directories like [I64.EXE] and [ALPHA.EXE] maybe 'env' was supposed to be a variable but used as string? Mind you, apparently this [env.EXE] does exist.

So how did you make your 'hello world'.
Just CC, Link and run or something 'clever'?
Hint: check for the DATEs for the EXE to make sure you are running the intended program


>> but for the first error :
Erreur execution SYS$TRNLNM ; code retour : 444
same thong i have no link or reference to a logical name.

Not the same thing. That is NOT a standard OpenVMS error text. The system is not making that up. So somewhere in the program, directly or indirectly a function was called which 99% sure tried to call SYS$TRNLNM for a logical name which was not defined.
( The remaining 1% is for the case where someone thought if funny to provide a function which just prints "Erreur execution SYS$TRNLNM ; code retour : 444" when called. :-)

Honestly, this will be easy to resolve working with folks who are on the actual system and familiar with the system (mixed cluster). Much too hard to do in this conversation.

Good luck,
Hein
Hoff
Honored Contributor

Re: error while executing a program in C

Know the VMS debugger.

Use the VMS debugger.

Embrace the VMS debugger.

Got errors?

The VMS debugger is your best friend.

Even if you don't have visible errors, use the debugger.

Whatever you might think the source code is doing here and however the source code is constructed, bluntly, you're quite wrong here with your "no logical names", and your code IS translating a logical name somewhere.

Learn and then use the VMS debugger to locate the source code or the call within this application that is very clearly translating a logical name.

The debugger then will allow you to easily identify which source code or source code call translates that logical name.
mi7ssana
Occasional Advisor

Re: error while executing a program in C

thank you for your response :)
this is my program test1:

#include
#include

main()
{
printf("Hello, World!\n" );
exit( EXIT_SUCCESS );
}

actualy i execute the following commands:
cc test1
link test1
in an environnement and after i make a copy of my test1.exe in an another environnement and i execute the program run test1
and the result is
%DCL-W-ACTIMAGE, error activating image TEST1
-CLI-E-IMGNAME, image file $1$DGA102:[000000.][env.EXE]TEST1.EXE;3
-IMGACT-F-NOT_I64, image is not an HP OpenVMS Industry Standard 64 image

the problem is that people who work whith me don't know too much about language C the work with Cobol so i have to find a solution by myself.

and what confusing me is that i do the same thing with the same program before and it works.

and for the second errror i have no idea about how to figure it out.
regards
mi7ssana
Occasional Advisor

Re: error while executing a program in C

i may seem stupid but i don't use a vms debugger before could you show me an example i mean how to use it. thanks

regards
Joseph Huber_1
Honored Contributor

Re: error while executing a program in C

The IMGACT error has nothing to do with the source language at all.

Would You please tell us what copying to and changing the environment means ?
Just make the simplest test, and just RUN TEST1 immediately after the LINK test1, and before "changing environment", whatever that means.
http://www.mpp.mpg.de/~huber