On 12 March 2009 c. 20:45:12 Constantine Cusulos wrote: > I am trying to run a linux binary on my OpenBSD 4.4/i386 system. The > binary file (let's call it 'fpc') is a static executable. > > So far, i have done the following: > > 1. I have modified /etc/sysctl.conf so that it reads > kern.emul.linux=1 > 2. Reboot > 3. sudo pkg_add -i fedore_base > 4. I have copied the file 'fpc' from /usr/bin of my Ubuntu/i386 system > to /emul/linux/usr/bin/ of my OpenBSD installation. > 5. $ /emul/linux/usr/bin/fpc > Bad system call (core dumped) > 6. $ cp /emul/linux/usr/bin/fpc /emul/linux/fedora/usr/bin/ > 7. $ /emul/linux/fedora/usr/bin/fpc > Bad system call (core dumped) > 8. $ ktrace /emul/linux/usr/bin/fpc > 9. $ kdump -e linux > 4410 ktrace RET brk 0 > 4410 ktrace CALL oldolduname(0xcfbe6107,0xcfbe5fb0,0xcfbe5fb8) > 4410 ktrace NAMI "/emul/linux/usr/bin/fpc" > 4410 fpc EMUL "native" > 4410 fpc RET execve 0 > 4410 fpc CALL pathconf(0xcfbea7d0,0x805918b) > 4410 fpc NAMI "A`(3/4I"+?" > 4410 fpc RET pathconf -1 errno 2 No such file or directory > 4410 fpc CALL #76 (obsolete vhangup)() > 4410 fpc PSIG SIGSYS SIG_DFL code 0 > 4410 fpc NAMI "fpc.core" > > > Is there something i can do to run this binary??
If you really try to run FreePascal then you'd better talk with its developers (they provided OpenBSD binaries a long time ago) or try to bootstrap its build on another OS (cross-compilation is supported), or via another compiler. I tried to do so but then need in FPC was gone, so I had to abort the porting due to lack of time. -- Best wishes, Vadim Zhukov