This means that no matter what you thought was used, the wait library used does not contain these two functions. Thus, you need to track which of the pending libraries will be loaded, and then check if the functions are in it (they are not, but you have to check to determine what is defined).
, , nm -g libexpect.so, . , exp_spawnl exp_expectl .
, , , ..
, , , .