-
-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined symbol "Stat@FBSD_1.5" #57
Comments
I'm not intimately familiar with Missing a system call name is kind of interesting though, I guess it's likely that (that capital letter in if you have a C compiler on the target system, can you compile and run a small program like this? (it works on Linux, hopefully on FreeBSD) #include <sys/stat.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <errno.h>
#include <stdio.h>
int main (int argc, char** argv) {
struct stat s;
if (stat(argv[0], &s)) {
perror("stat #1");
return 1;
}
if (syscall(SYS_stat, argv[0], &s)) {
perror("stat #2");
return 1;
}
} if it compiles and runs and (if it attempted to actually compile a call to a symbol named |
Can you test with the last version with the flag 'H' |
Yes, this was a user error on my part. Once I ran with -r this issue disappeared. |
I'm getting this error when moving compiled binaries to another similar system. The program in question just runs a single ping command, applies a regular expression to the output and echoes a result back to the console.
First system is a TrueOS FreeBSD install, second is a minimal FreeBSD install.
I've tried compiling for sh, csh and tcsh. The binary runs fine on the TrueOS system, just won't run on the target system.
I'm guessing there's an unmet dependency or library on the minimal system but was hoping someone could point me in the right direction on installing. Haven't had any luck with Google on figuring that out.
Thanks!
The text was updated successfully, but these errors were encountered: