> I'm trying to get Mathematica to run on OpenBSD via Linux emulation, but 
> I am getting the following error:
> 
>  error while loading shared libraries: libvml.so: cannot enable executable 
> stack as shared object requires: Premission denied.

Note that libvml.so is the Intel Vector Math Library at
 http://www.intel.com/cd/software/products/asmo-na/eng/307757.htm

When I run ktrace on Mathematica, I'm getting the following:

 20188 ktrace   RET   ktrace 0
 20188 ktrace   CALL  execve(0xcfbc4337,0xcfbc41f0,0xcfbc41f8)
 20188 ktrace   NAMI  
"/usr/local/emul/fedora/usr/local/Wolfram/Mathematica/6.0/SystemFiles/Kernel/Binaries/Linux/MathKernel"
 20188 ktrace   NAMI  "/emul/svr4/lib/ld-linux.so.2"
 20188 ktrace   NAMI  "/emul/linux/lib/ld-linux.so.2"
 20188 ktrace   NAMI  "/emul/linux"
 20188 MathKernel NAMI  "/emul/linux/lib/ld-linux.so.2"
 20188 MathKernel EMUL  "linux"
 20188 MathKernel RET   oldolduname 0
 20188 MathKernel CALL  getuid()
 20188 MathKernel RET   getuid 1000/0x3e8
 20188 MathKernel CALL  geteuid()
 20188 MathKernel RET   geteuid 1000/0x3e8
 20188 MathKernel CALL  getgid()
 20188 MathKernel RET   getgid 1000/0x3e8
 20188 MathKernel CALL  getegid()
 20188 MathKernel RET   getegid 1000/0x3e8
 20188 MathKernel CALL  brk(0)
 20188 MathKernel RET   brk 154390528/0x933d000
 20188 MathKernel CALL  uname(0xcfbc1a3e)
 20188 MathKernel RET   uname 0
 20188 MathKernel CALL  access(0x56e82564,0x4)
 20188 MathKernel NAMI  "/emul/linux/etc/ld.so.preload"
 20188 MathKernel NAMI  "/etc/ld.so.preload"
 20188 MathKernel RET   access -1 errno 2 No such file or directory
 20188 MathKernel CALL  open(0x56e84603,0,0x1)
 20188 MathKernel NAMI  "/emul/linux/etc/ld.so.cache"
 20188 MathKernel NAMI  "/emul/linux"
 20188 MathKernel NAMI  "/emul/linux/etc/ld.so.cache"
 20188 MathKernel RET   open 3
 20188 MathKernel CALL  fstat64(0x3,0xcfbc1320)
 20188 MathKernel RET   fstat64 0
 20188 MathKernel CALL  mmap(0xcfbc1304)
 20188 MathKernel RET   mmap 1422512128/0x54c9d000
 20188 MathKernel CALL  close(0x3)
 20188 MathKernel RET   close 0
 20188 MathKernel CALL  open(0xcfbc1330,0,0)
 20188 MathKernel NAMI  "/emul/linux/lib/tls/libML32i3.so"
 20188 MathKernel NAMI  "/emul/linux"
 20188 MathKernel NAMI  "/emul/linux/lib/tls/libML32i3.so"
 20188 MathKernel RET   open 3
 20188 MathKernel CALL  read(0x3,0xcfbc144c,0x200)
 20188 MathKernel GIO   fd 3 read 512 bytes
       "\^?ELF\^A\^A\^A\0\0\0\0\0\0\0\0\0\^C\0\^C\0\^A\0\0\0pT\^A\0004\0\0\0\
        \M-<\M-+\a\0\0\0\0\0004\0 \0\^D\0(\0\^Y\0\^V\0\^A\0\0\0\0\0\0\0\0\0\0\
        [EMAIL PROTECTED]@\a\0\
        [EMAIL PROTECTED](\M^F\a\0(\M^F\
        \a\0([EMAIL PROTECTED]@\0\0\0\^F\0\0\0\^D\0\0\0Q\M-etd\0\0\0\0\0\0\
        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\^F\0\0\0\^D\0\0\0\a\^D\0\0\M-V\^E\0\0\^E\
        \^E\0\0\M-d\^C\0\0\M-R\^E\0\0\M^\\^D\0\0\M-{\0\0\0\0\0\0\0\M^K\^E\0\0*\
        \0\0\0E\^E\0\0K\^C\0\0/\^D\0\0\0\0\0\0\M-K\^E\0\0o\^E\0\0\M-i\^A\0\0r\
        \^B\0\0\0\0\0\0004\0\0\0\M-0\^D\0\0\M-p\^C\0\0]\^D\0\0\^B\^C\0\0[\^E\0\
        \0\M^C\^B\0\0\M-H\^D\0\0\M-`\^D\0\0\0\0\0\0\M-E\^A\0\0\0\0\0\0\0\0\0\0\
        [EMAIL PROTECTED]"\
        \^C\0\0\^C\^E\0\0?\^B\0\0\M^^\^D\0\0\M^E\^D\0\0\0\0\0\0p\^B\0\0\0\0\0\
        \0A\^C\0\0\0\0\0\0S\^B\0\0\0\0\0\0\0\0\0\0\0\0\0\0\M-y\^C\0\0\0\0\0\0\
        \^D\^D\0\0k\^C\0\0\f\^C\0\0\0\0\0\0.\^E\0\0\^Q\^D\0\0F\^D\0\0\M^Z\^C\0\
        \0\0\0\0\0\M^\\^C\0\0\0\0\0\0\M^T\^E\0\0(\^E\0\0\M-7\^A\0\0r\^D\0\0z\
        \^E\0\0.\^C\0\0\M-T\0\0\0\M-e\^D\0\0\0\0\0\0\M-P\^E\0\0\^S\^B\0\0\0\0\
        \0\0\0\0\0\0\0\0\0\0\^C\^D\0\0\M-N\^C\0\0\0\0\0\0"
 20188 MathKernel RET   read 512/0x200
 20188 MathKernel CALL  fstat64(0x3,0xcfbc137c)
 20188 MathKernel RET   fstat64 0
 20188 MathKernel CALL  mmap(0xcfbc1264)
 20188 MathKernel RET   mmap 1287680000/0x4cc07000
 20188 MathKernel CALL  mmap(0xcfbc1264)
 20188 MathKernel RET   mmap 1288171520/0x4cc7f000
 20188 MathKernel CALL  close(0x3)
 20188 MathKernel RET   close 0
 20188 MathKernel CALL  open(0xcfbc1320,0,0x3)
 20188 MathKernel NAMI  "/emul/linux/lib/tls/libvml.so"
 20188 MathKernel NAMI  "/emul/linux"
 20188 MathKernel NAMI  "/emul/linux/lib/tls/libvml.so"
 20188 MathKernel RET   open 3
 20188 MathKernel CALL  read(0x3,0xcfbc1430,0x200)
 20188 MathKernel GIO   fd 3 read 512 bytes
       "\^?ELF\^A\^A\^A\0\0\0\0\0\0\0\0\0\^C\0\^C\0\^A\0\0\0\M-8s\^A\0004\0\0\
        \0\M-d\M-E\^C\0\0\0\0\0004\0 \0\^C\0(\0\^S\0\^P\0\^A\0\0\0\0\0\0\0\0\0\
        \0\0\0\0\0\0\M-TL\^C\0\M-TL\^C\0\^E\0\0\0\0\^P\0\0\^A\0\0\0\0P\^C\0\0P\
        \^C\0\0P\^C\0\M-D\^X\0\0|3\0\0\^F\0\0\0\0\^P\0\0\^B\0\0\0\^Xh\^C\0\^Xh\
        \^C\0\^Xh\^C\0\240\0\0\0\240\0\0\0\^F\0\0\0\^D\0\0\0    \^B\0\0#\^B\0\
        \0\0\0\0\0\M-E\^A\0\0\0\0\0\0\0\0\0\0\M^Y\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
        \0\M-F\0\0\0\M-5\^A\0\0"\^B\0\0/\^A\0\0\M-W\0\0\0\^V\^B\0\0p\^A\0\0\^[\
        \^B\0\0\0\0\0\0\M-=\0\0\0?\^A\0\0\M-`\0\0\0\0\0\0\0\0\0\0\0\M-?\^A\0\0\
        \0\0\0\0\M-|\^A\0\0&\^A\0\0\0\0\0\0D\^A\0\0\0\0\0\0\^D\^A\0\0\M-(\^A\0\
        \0\M-=\^A\0\0s\0\0\0\0\0\0\0\0\0\0\0\M^I\0\0\0\M-<\^A\0\0\^Z\^A\0\0\0\
        \0\0\0\0\0\0\0\0\0\0\0\M^S\0\0\0\M-z\^A\0\0W\^A\0\0\M-4\0\0\0\0\0\0\0\
        \M^H\^A\0\0\0\0\0\0\0\0\0\0K\^A\0\0\0\0\0\0\0\0\0\0\M^A\0\0\0\M^K\^A\0\
        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0006\0\0\0\0\0\0\0M\^A\0\0\0\0\0\0\
        \M-H\0\0\0\0\0\0\0\0\0\0\08\^A\0\0\0\0\0\0\0\0\0\0\M-c\^A\0\0\0\0\0\0\
        \M^?\^A\0\0\0\0\0\0\M-R\0\0\0\M^Y\^A\0\0\^^\^A\0\0\M^P\0\0\0I\^A\0\0\0\
        \0\0\0\M-q\^A\0\0\0\0\0\0\M-Y\^A\0\0S\^A\0\0\^S\^A\0\0\0\0\0\0\M-4\^A\
        \0\0\M-x\^A\0\0\M^C\0\0\0\0\0\0\0\^C\^B\0\0"
 20188 MathKernel RET   read 512/0x200
 20188 MathKernel CALL  fstat64(0x3,0xcfbc1360)
 20188 MathKernel RET   fstat64 0
 20188 MathKernel CALL  mmap(0xcfbc1234)
 20188 MathKernel RET   mmap 1402888192/0x539e6000
 20188 MathKernel CALL  mmap(0xcfbc1260)
 20188 MathKernel RET   mmap 1396985856/0x53445000
 20188 MathKernel CALL  mmap(0xcfbc1260)
 20188 MathKernel RET   mmap 1397202944/0x5347a000
 20188 MathKernel CALL  mmap(0xcfbc1260)
 20188 MathKernel RET   mmap 1397211136/0x5347c000
 20188 MathKernel CALL  mprotect(0xcfbc1000,0x1000,0x1000007)
 20188 MathKernel RET   mprotect -1 errno 22 Invalid argument
 20188 MathKernel CALL  mprotect(0xcfbba000,0x8000,0x7)
 20188 MathKernel RET   mprotect 0
 20188 MathKernel CALL  mprotect(0xcfbb2000,0x8000,0x7)
 20188 MathKernel RET   mprotect 0

The ktrace continues for 133830 lines calling mprotect, then the following 
happens:
 
 20188 MathKernel CALL  mprotect(0x4d092000,0x8000,0x7)
 20188 MathKernel RET   mprotect 0
 20188 MathKernel CALL  mprotect(0x4d08a000,0x8000,0x7)
 20188 MathKernel RET   mprotect -1 errno 13 Permission denied
 20188 MathKernel CALL  close(0x3)
 20188 MathKernel RET   close 0
 20188 MathKernel CALL  writev(0x2,0xcfbc1068,0xa)
 20188 MathKernel GIO   fd 2 wrote 101 bytes
       "/usr/local/emul/fedora/usr/local/Wolfram/Mathematica/6.0/SystemFiles/K\
        ernel/Binaries/Linux/MathKernel"
 20188 MathKernel GIO   fd 2 wrote 2 bytes
       ": "
 20188 MathKernel GIO   fd 2 wrote 36 bytes
       "error while loading shared libraries"
 20188 MathKernel GIO   fd 2 wrote 2 bytes
       ": "
 20188 MathKernel GIO   fd 2 wrote 9 bytes
       "libvml.so"
 20188 MathKernel GIO   fd 2 wrote 2 bytes
       ": "
 20188 MathKernel GIO   fd 2 wrote 56 bytes
       "cannot enable executable stack as shared object requires"
 20188 MathKernel GIO   fd 2 wrote 2 bytes
       ": "
 20188 MathKernel GIO   fd 2 wrote 17 bytes
       "Permission denied"
 20188 MathKernel GIO   fd 2 wrote 1 bytes
       "
       "
 20188 MathKernel RET   writev 228/0xe4
 20188 MathKernel CALL  linux_exit_group(0x7f)

Reply via email to