Definition Not Found for Symbol

Discussions related to HTTPAPI (An HTTP Client Package for RPG programming.) http://www.scottklement.com/httpapi/
Post Reply
emhill
Posts: 43
Joined: Thu Jul 29, 2021 1:15 pm

Definition Not Found for Symbol

Post 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
brianjgarland
Posts: 14
Joined: Wed Jul 28, 2021 11:04 am
Location: Vermont, USA
Contact:

Re: Definition Not Found for Symbol

Post 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?
emhill
Posts: 43
Joined: Thu Jul 29, 2021 1:15 pm

Re: Definition Not Found for Symbol

Post 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.
brianjgarland
Posts: 14
Joined: Wed Jul 28, 2021 11:04 am
Location: Vermont, USA
Contact:

Re: Definition Not Found for Symbol

Post 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.
emhill
Posts: 43
Joined: Thu Jul 29, 2021 1:15 pm

Re: Definition Not Found for Symbol

Post 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.
emhill
Posts: 43
Joined: Thu Jul 29, 2021 1:15 pm

Re: Definition Not Found for Symbol

Post 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!!!!
Post Reply