Page 1 of 1

Definition Not Found for Symbol

Posted: Mon Aug 09, 2021 3:35 pm
by emhill
When trying to compile a program that is using procedure "http_stmf()" I get the following error:

"Definition not found for symbol 'HTTP_STMF'."

The additional message info:

Code: Select all

                         Additional Message Information                        
                                                                               
 Message ID . . . . . . :   CPD5D02       Severity . . . . . . . :   30        
 Message type . . . . . :   Diagnostic                                         
 Date sent  . . . . . . :   08/09/21      Time sent  . . . . . . :   11:18:07  
                                                                               
 Message . . . . :   Definition not found for symbol 'HTTP_STMF'.              
 Cause . . . . . :   No definition was found for reference HTTP_STMF in *MODULE
   object ATD130 in library QTEMP. The definition either does not exist or is  
   not of the same data or procedure type as the reference.                    
 Recovery  . . . :   Try the Create Program (CRTPGM) command again, supplying  
   an object that contains a definition for symbol HTTP_STMF.                  
This program compiles on our machine that is running 7.4 but not on a machine running 7.3. The version of HTTPAPI are identical.

Any clues?

Thanks

Re: Definition Not Found for Symbol

Posted: Mon Aug 09, 2021 3:40 pm
by brianjgarland
A couple of things to check
a) Are you specifying a binding directory and does it have HTTPAPIR4 in it?
b) If using *LIBL in the binding directory does your library list have HTTPAPIR4 in it?

Re: Definition Not Found for Symbol

Posted: Mon Aug 09, 2021 4:21 pm
by emhill
Hey Brian,

Thanks for the reply.

HTTPAPIR4 is not a library. It is a service program so it will not be in the library list. Are you thinking LIBHTTP? That is where service program HTTPAPIR4 resides. I do have that in my library list and have HTTPAPI as a binding directory.

Re: Definition Not Found for Symbol

Posted: Mon Aug 09, 2021 4:48 pm
by brianjgarland
I guess proper grammar would be:

If using *LIBL in the binding directory does your library list have a library that has HTTPAPIR4 in it.



I'm assuming there is some difference in your development environments between the servers. It's unlikely the OS version has anything to do with it.

Re: Definition Not Found for Symbol

Posted: Mon Aug 09, 2021 4:51 pm
by emhill
Gotcha!

Yes. The library list is correct. I'm going to dig a little deeper and see if anyone has messed with HTTPAPI on this site.

Re: Definition Not Found for Symbol

Posted: Mon Aug 09, 2021 5:49 pm
by emhill
Go it corrected. Reloaded the latest version and it seems to have corrected the problem. It must have got corrupted somehow.

Thanks for the assist!!!!