g_provider.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../src/libstrongswan -I../../../../src/libcharon -I../../../../src/libsimaka -rdynamic -g -O2 -Wall -Wno-format -Wno-format-security -Wno-pointer-sign -include /root/strongswan-epdg/config.h -MT gsup_client.lo -MD -MP -MF .deps/gsup_client.Tpo -c gsup_client.c -fPIC -DPIC -o .libs/gsup_client.o
osmo_epdg_listener.c: In function 'authorize':
osmo_epdg_listener.c:154:40: error: 'OSMO_GSUP_MSGT_EPDG_TUNNEL_ERROR' undeclared (first use in this function); did you mean 'OSMO_GSUP_MSGT_E_ROUTING_ERROR'?
154 | if (resp->gsup.message_type == OSMO_GSUP_MSGT_EPDG_TUNNEL_ERROR)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| OSMO_GSUP_MSGT_E_ROUTING_ERROR
osmo_epdg_listener.c:154:40: note: each undeclared identifier is reported only once for each function it appears in
osmo_epdg_listener.c:159:45: error: 'OSMO_GSUP_MSGT_EPDG_TUNNEL_RESULT' undeclared (first use in this function); did you mean 'OSMO_GSUP_MSGT_READY_FOR_SM_RESULT'?
159 | else if (resp->gsup.message_type != OSMO_GSUP_MSGT_EPDG_TUNNEL_RESULT)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| OSMO_GSUP_MSGT_READY_FOR_SM_RESULT
osmo_epdg_listener.c:168:38: error: 'struct osmo_gsup_pdp_info' has no member named 'pdp_type_org'; did you mean 'pdp_type'?
168 | (resp->gsup.pdp_infos[0].pdp_type_org != PDP_TYPE_ORG_IETF) ||
| ^~~~~~~~~~~~
| pdp_type
osmo_epdg_listener.c:169:38: error: 'struct osmo_gsup_pdp_info' has no member named 'pdp_type_nr'; did you mean 'pdp_type'?
169 | (resp->gsup.pdp_infos[0].pdp_type_nr != PDP_TYPE_N_IETF_IPv4))
| ^~~~~~~~~~~
| pdp_type
osmo_epdg_listener.c:177:21: error: 'struct osmo_gsup_pdp_info' has no member named 'pdp_address'
177 | if (pdp_info->pdp_address[0].u.sa.sa_family != AF_INET)
| ^~
osmo_epdg_listener.c:183:54: error: 'struct osmo_gsup_pdp_info' has no member named 'pdp_address'
183 | address = host_create_from_sockaddr(&pdp_info->pdp_address[0].u.sa);
| ^~
make[5]: *** [Makefile:616: osmo_epdg_listener.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
gsup_client.c: In function 'tunnel_request':
gsup_client.c:340:33: error: 'OSMO_GSUP_MSGT_EPDG_TUNNEL_REQUEST' undeclared (first use in this function); did you mean 'OSMO_GSUP_MSGT_READY_FOR_SM_REQUEST'?
340 | gsup_msg.message_type = OSMO_GSUP_MSGT_EPDG_TUNNEL_REQUEST;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| OSMO_GSUP_MSGT_READY_FOR_SM_REQUEST
gsup_client.c:340:33: note: each undeclared identifier is reported only once for each function it appears in
gsup_client.c:342:34: error: 'OSMO_GSUP_MESSAGE_CLASS_IPSEC_EPDG' undeclared (first use in this function); did you mean 'OSMO_GSUP_MESSAGE_CLASS_INTER_MSC'?
342 | gsup_msg.message_class = OSMO_GSUP_MESSAGE_CLASS_IPSEC_EPDG;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| OSMO_GSUP_MESSAGE_CLASS_INTER_MSC
gsup_client.c:349:17: error: 'struct osmo_gsup_message' has no member named 'pco'
349 | gsup_msg.pco = pco;
| ^
gsup_client.c:350:17: error: 'struct osmo_gsup_message' has no member named 'pco_len'
350 | gsup_msg.pco_len = 7;
| ^
gsup_client.c: In function 'send_auth_request':
gsup_client.c:387:34: error: 'OSMO_GSUP_MESSAGE_CLASS_IPSEC_EPDG' undeclared (first use in this function); did you mean 'OSMO_GSUP_MESSAGE_CLASS_INTER_MSC'?
387 | gsup_msg.message_class = OSMO_GSUP_MESSAGE_CLASS_IPSEC_EPDG;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| OSMO_GSUP_MESSAGE_CLASS_INTER_MSC
gsup_client.c:442:31: error: 'struct osmo_gsup_pdp_info' has no member named 'pdp_type_nr'; did you mean 'pdp_type'?
442 | gsup_msg.pdp_infos[0].pdp_type_nr = pdp_type;
| ^~~~~~~~~~~
| pdp_type
gsup_client.c:443:31: error: 'struct osmo_gsup_pdp_info' has no member named 'pdp_type_org'; did you mean 'pdp_type'?
443 | gsup_msg.pdp_infos[0].pdp_type_org = PDP_TYPE_ORG_IETF;
| ^~~~~~~~~~~~
| pdp_type
gsup_client.c: In function 'update_location':
gsup_client.c:488:34: error: 'OSMO_GSUP_MESSAGE_CLASS_IPSEC_EPDG' undeclared (first use in this function); did you mean 'OSMO_GSUP_MESSAGE_CLASS_INTER_MSC'?
488 | gsup_msg.message_class = OSMO_GSUP_MESSAGE_CLASS_IPSEC_EPDG;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| OSMO_GSUP_MESSAGE_CLASS_INTER_MSC
gsup_client.c: In function 'on_recv_pdu':
gsup_client.c:617:22: error: 'OSMO_GSUP_MSGT_EPDG_TUNNEL_ERROR' undeclared (first use in this function); did you mean 'OSMO_GSUP_MSGT_E_ROUTING_ERROR'?
617 | case OSMO_GSUP_MSGT_EPDG_TUNNEL_ERROR:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| OSMO_GSUP_MSGT_E_ROUTING_ERROR
gsup_client.c:618:22: error: 'OSMO_GSUP_MSGT_EPDG_TUNNEL_RESULT' undeclared (first use in this function); did you mean 'OSMO_GSUP_MSGT_READY_FOR_SM_RESULT'?
618 | case OSMO_GSUP_MSGT_EPDG_TUNNEL_RESULT:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| OSMO_GSUP_MSGT_READY_FOR_SM_RESULT
gsup_client.c: At top level:
gsup_client.c:658:12: warning: 'disconnect_gsup' defined but not used [-Wunused-function]
658 | static int disconnect_gsup(private_osmo_epdg_gsup_client_t *this)
| ^~~~~~~~~~~~~~~
make[5]: *** [Makefile:616: gsup_client.lo] Error 1
make[5]: Leaving directory '/root/strongswan-epdg/src/libcharon/plugins/osmo_epdg'
make[4]: *** [Makefile:2117: all-recursive] Error 1
make[4]: Leaving directory '/root/strongswan-epdg/src/libcharon'
make[3]: *** [Makefile:1407: all] Error 2
make[3]: Leaving directory '/root/strongswan-epdg/src/libcharon'
make[2]: *** [Makefile:540: all-recursive] Error 1
make[2]: Leaving directory '/root/strongswan-epdg/src'
make[1]: *** [Makefile:601: all-recursive] Error 1
make[1]: Leaving directory '/root/strongswan-epdg'
make: *** [Makefile:512: all] Error 2
Once those symbols and the corresponding osmo_gsup_pdp_info fields exist in the installed headers, the make -j$(nproc) failure should move past osmo_epdg_listener.c / gsup_client.c.
The key clue is the compiler suggesting older GSUP symbols such as OSMO_GSUP_MSGT_E_ROUTING_ERROR: the source and libosmocore API are from different generations. (OsmoCom Downloads)