[vox-tech] Binary problems

Doctorcam vox-tech@lists.lugod.org
Thu, 26 Feb 2004 12:02:24 -0800


Thanks, Jeff (& Pete)

* Jeff Newmiller (jdnewmil@dcn.davis.ca.us) wrote:
> On Thu, 26 Feb 2004, Doctorcam wrote:
> 
> > I have downloaded a commercial fax program (free version, for
> > evaluation).  It is in binary (i.e. *.bin).  I have permissions set to
> > execute (100755).  
> > 
> > It will not run, even as "sh primafax_l.bin".
> 
> why would giving a binary executable to bash as an argument improve its
> chances of running?
> 
Because with strace primafax_l.bin, or with primafax_l.bin alone, I
get "command not found".  I wasn't so much trying to get it running as
trying to see why it wouldn't run.  Any port in a storm.

> > 
> > strace gives me the following (in part - hope the wrapping does not confuse):
> > 
> > open("primafax_l.bin", O_RDONLY|O_LARGEFILE) = 4
> > ioctl(4, TCGETS, 0xbffff79c)            = -1 ENOTTY (Inappropriate ioctl for device)
> > _llseek(4, 0, [0], SEEK_CUR)            = 0
> > read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\2\0\3\0\1\0\0\0\260\200"..., 80) = 80
> > write(2, "primafax_l.bin: primafax_l.bin: "..., 59primafax_l.bin: primafax_l.bin: cannot execute binary file
> > ) = 59
> > exit_group(126)
> 
> You are stracing bash... which is simply telling you it cannot run the
> program.  You might want to confirm that it is executable with the
> "file" command.  If it is executable, strace the file itself rather thsn
> bash.
> 

Pete also suggested this.  I did run file, which says it is an ELF
(and I have support compiled into the kernel), thus:

ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically
linked, stripped 

What else would you need to know?

Thanks

Cam

-- 
Cam Ellison
In lovely Roberts Creek
cam (at) ellisonet (dot) ca
H: 604-885-2897
C: 604-802-7928