....
> on our HP machines running HP-UX 9.0.1
....
> /bin/ld: Unsatisfied symbols:
> getwd (code)
> sigvec (code)
> *** Error code 1
As others have suggested, '-lc -lBSD' should work. Like many others,
I have a horror of the BSD library, which is full of bugs, and I tend
to link my HP AFS programs with the following:
#include <limits.h>
#include <stdlib.h>
#include <signal.h>
extern char *getcwd();
char *getwd(a)
char *a;
{
return getcwd(a, 255);
}
int sigvec(a, b, c)
int a;
struct sigvec *b, *c;
{
return sigvector(a, b, c);
}
The getwd has the same 255-character limit for the path name as the libBSD.a
one, I think. Sigvector is a potential problem, but I think the libBSD.a
one is buggy anyway; I don't remember exactly what problems we found with
it, though, and they might have been fixed long ago.
-- Owen
[EMAIL PROTECTED]