Hello,

The binary definitely runs on gentoo linux.

scp a.out [EMAIL PROTECTED]:~
[EMAIL PROTECTED]'s password:
a.out
   100% 1149KB   1.1MB/s   00:01
[EMAIL PROTECTED] ~/ctest $ uname -a
Linux alpha 2.6.17-gentoo-r8 #15 SMP Tue Nov 28 00:48:08 GMT 2006
x86_64 AMD Atlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD
GNU/Linux
[EMAIL PROTECTED] ~/ctest $ ./a.out
Hello World!
[EMAIL PROTECTED] ~/ctest $ ssh [EMAIL PROTECTED]
[EMAIL PROTECTED]'s password:
Last login: Sun May 27 23:48:55 2007 from 192.168.0.9
OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007
$ uname -a
OpenBSD my.bsd.box 4.1 GENERIC#1435 i386
$ ./a.out
ksh: ./a.out: Operation not permitted

The program was built like so:
g++ -static -m32 -Wall bsdtest.cpp

Yes, thats cross-compilation. Is this a problem?

Linux emulation is certainly on.

$ sysctl -a | grep linux
kern.emul.linux=1

But I knew this as acroread and opera run fine.

With regards to Tylers suggestion (recompiling kernel):
OpenBSD aims to work out of the box using the GENERIC kernel.

--
Best Regards

Edd

---------------------------------------------------
http://students.dec.bournemouth.ac.uk/ebarrett

Reply via email to