Mia Oreskovic
2021-02-25 09:33:58 UTC
I compiled with C compiler in Guardian environment on NSX-H program that is using following functions connect_nw, recv_nw, send_nw, socket_nw and socket_set_inet_name.
NonStop TCP/IP Programming Manual says to use those functions you need to include "in.h", "netdb.h" and "socket.h" which I did.
For example from manual:
socket_set_inet_name
The socket_set_inet_name function specifies the name of the NonStop TCP/IP or TCP6SAM process that thesocket library is going to open.
C Synopsis
#include "netdb.h"
void socket_set_inet_name (name_ptr);
char *name_ptr;
But after compiling when I try to run it I get this:
External References Not Resolved to Any User/System Library:
Prg: \TANDEM.$CERT.CPMN.HSM002 -> connect_nw (PROC)
Prg: \TANDEM.$CERT.CPMN.HSM002 -> recv_nw (PROC)
Prg: \TANDEM.$CERT.CPMN.HSM002 -> send_nw (PROC)
Prg: \TANDEM.$CERT.CPMN.HSM002 -> socket_nw (PROC)
Prg: \TANDEM.$CERT.CPMN.HSM002 -> socket_set_inet_name (PROC)
and program abends on calling
socket_set_inet_name(ip_process);
\TANDEM.$:1:108:1283121772 - *** Run-time Error 003 ***
\TANDEM.$:1:108:1283121772 - Instruction failure
\TANDEM.$:1:108:1283121772 - From main + %353, UC.00
\TANDEM.$:1:108:1283121772 - _MAIN + %31, UC.00
Has anyone had this problem and idea how to solve it ? I'm new to this and I would appreciate every help I get.
NonStop TCP/IP Programming Manual says to use those functions you need to include "in.h", "netdb.h" and "socket.h" which I did.
For example from manual:
socket_set_inet_name
The socket_set_inet_name function specifies the name of the NonStop TCP/IP or TCP6SAM process that thesocket library is going to open.
C Synopsis
#include "netdb.h"
void socket_set_inet_name (name_ptr);
char *name_ptr;
But after compiling when I try to run it I get this:
External References Not Resolved to Any User/System Library:
Prg: \TANDEM.$CERT.CPMN.HSM002 -> connect_nw (PROC)
Prg: \TANDEM.$CERT.CPMN.HSM002 -> recv_nw (PROC)
Prg: \TANDEM.$CERT.CPMN.HSM002 -> send_nw (PROC)
Prg: \TANDEM.$CERT.CPMN.HSM002 -> socket_nw (PROC)
Prg: \TANDEM.$CERT.CPMN.HSM002 -> socket_set_inet_name (PROC)
and program abends on calling
socket_set_inet_name(ip_process);
\TANDEM.$:1:108:1283121772 - *** Run-time Error 003 ***
\TANDEM.$:1:108:1283121772 - Instruction failure
\TANDEM.$:1:108:1283121772 - From main + %353, UC.00
\TANDEM.$:1:108:1283121772 - _MAIN + %31, UC.00
Has anyone had this problem and idea how to solve it ? I'm new to this and I would appreciate every help I get.