[vox-tech] Binary problems

Jeff Newmiller vox-tech@lists.lugod.org
Thu, 26 Feb 2004 10:22:30 -0800 (PST)


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?

> 
> 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.

> I presume it cannot find the proper tty.  At the moment I have ttyS0
> and ttyS1 designated elsewhere, so this may be the problem.  I tried
> to set them to mgetty through inittab, but this had no impact.

I don't think I can be much more help, given the information available to
me.

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k
---------------------------------------------------------------------------