* Call of executables under LINUX
@ 1997-09-11 15:47 lebrun
1997-09-11 17:50 ` Harald Koenig
0 siblings, 1 reply; 9+ messages in thread
From: lebrun @ 1997-09-11 15:47 UTC (permalink / raw)
Dear all,
I am currently trying to port some binaries from DEC-UNIX to alpha-linux. I have
ftp'd the binary, and put the correct protections for execution. However, the
systems answers for example:
./pi: Command not found.
whan a 'ls' command gives :
> ls pi
-rwxr-xr-x pi
>
This is a very simple 2 lines C++ program, whithout any external calls.
Do you have any idea of what's happenning here ?
Many thanks
Vincent Le Brun
|----------------------------------------------------------------|
| Vincent LE BRUN |
| L.A.S du C.N.R.S. |
| B.P. 8 |
| 13376 MARSEILLE CEDEX 12 |
| Tel: (33-4) 91 05 69 78 |
| Fax: (33-4) 91 66 18 55 |
| email: lebrun@lasa13.astrsp-mrs.fr |
| http://www.astrsp-mrs.fr/www_root/private/vlebrun/vlebrun.html |
|----------------------------------------------------------------|
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Call of executables under LINUX
1997-09-11 15:47 lebrun
@ 1997-09-11 17:50 ` Harald Koenig
0 siblings, 0 replies; 9+ messages in thread
From: Harald Koenig @ 1997-09-11 17:50 UTC (permalink / raw)
On Sep 11, lebrun@lasa13.astrsp-mrs.fr wrote:
> Dear all,
> I am currently trying to port some binaries from DEC-UNIX to alpha-linux. I have
> ftp'd the binary, and put the correct protections for execution. However, the
> systems answers for example:
> ./pi: Command not found.
> whan a 'ls' command gives :
> > ls pi
> -rwxr-xr-x pi
> >
> This is a very simple 2 lines C++ program, whithout any external calls.
>
> Do you have any idea of what's happenning here ?
it can't load the shared library loader (/lib/ld.so for Linux binaries,
/sbin/loader or similar for DU).
strace ./pi
should be able to show what's missing...
either you have to copy all the shared library stuff from DU (but of course
only if you have a DU license for this CPU...) or link your program static
with DU's cc (using "cc -static" or similar, RTFM), then you can run them
with no problem on Linux...
Harald
--
All SCSI disks will from now on ___ _____
be required to send an email notice 0--,| /OOOOOOO\
24 hours prior to complete hardware failure! <_/ / /OOOOOOOOOOO\
\ \/OOOOOOOOOOOOOOO\
\ OOOOOOOOOOOOOOOOO|//
Harald Koenig, \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik // / \\ \
koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Call of executables under LINUX
@ 1997-09-11 18:06 Przemek Klosowski
0 siblings, 0 replies; 9+ messages in thread
From: Przemek Klosowski @ 1997-09-11 18:06 UTC (permalink / raw)
ftp'd the binary, and put the correct protections for execution. However, the
systems answers for example:
./pi: Command not found.
whan a 'ls' command gives :
> ls pi
-rwxr-xr-x pi
>
This is a very simple 2 lines C++ program, whithout any external calls.
I assume that you are typing './pi'; the error message is the same as
if you had a file with a first line saying '#!/nosuchinterpreter'.
I suspect that the kernel can't recognize this file as a binary executable
for some reason. What does 'file ./pi' say?
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Call of executables under LINUX
[not found] <19970911195037.22381@tat.physik.uni-tuebingen.de>
@ 1997-09-11 23:21 ` Andreas Johansson
1997-09-12 10:21 ` lebrun
1 sibling, 0 replies; 9+ messages in thread
From: Andreas Johansson @ 1997-09-11 23:21 UTC (permalink / raw)
On Thu, 11 Sep 1997, Harald Koenig wrote:
> On Sep 11, lebrun@lasa13.astrsp-mrs.fr wrote:
>
> > Dear all,
> > I am currently trying to port some binaries from DEC-UNIX to alpha-linux. I have
> > ftp'd the binary, and put the correct protections for execution. However, the
> > systems answers for example:
> > ./pi: Command not found.
> > whan a 'ls' command gives :
> > > ls pi
> > -rwxr-xr-x pi
> > >
> > This is a very simple 2 lines C++ program, whithout any external calls.
> >
> > Do you have any idea of what's happenning here ?
>
> it can't load the shared library loader (/lib/ld.so for Linux binaries,
> /sbin/loader or similar for DU).
>
> strace ./pi
>
> should be able to show what's missing...
>
> either you have to copy all the shared library stuff from DU (but of course
> only if you have a DU license for this CPU...) or link your program static
> with DU's cc (using "cc -static" or similar, RTFM), then you can run them
> with no problem on Linux...
Given that his kernel supports the ecoff binary format or that he has a
module for ecoff. I think this would be the first thing to check.
--
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
: E-mail: ajo@wopr.campus.luth.se :
: S-mail: Andreas Johansson, Karhusvagen 5 6:618, 977 54 Lulea, SWEDEN :
: Have you had your dose of 261.62 BogoMIPS today? - Run Alpha! :
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Call of executables under LINUX
@ 1997-09-12 9:04 Stefan Bund
0 siblings, 0 replies; 9+ messages in thread
From: Stefan Bund @ 1997-09-12 9:04 UTC (permalink / raw)
> ftp'd the binary, and put the correct protections for execution. However, the
> systems answers for example:
> ./pi: Command not found.
> whan a 'ls' command gives :
> > ls pi
> -rwxr-xr-x pi
> >
> This is a very simple 2 lines C++ program, whithout any external calls.
>
> I assume that you are typing './pi'; the error message is the same as
> if you had a file with a first line saying '#!/nosuchinterpreter'.
> I suspect that the kernel can't recognize this file as a binary executable
> for some reason. What does 'file ./pi' say?
Or it may be, he can't find the dynamic linker/loader. I had this
problem once, when I build a Linux X-Installation from scratch (only
40MB HD) until I installd the correct dynamic linker/loader.
Stefan.
--
\|/
@ @
-------------------------------oOO-(_)-OOo---------------------------
Stefan Bund, student of physics at Freie Universitaet Berlin, Germany
email: bund@zedat.fu-berlin.de ( or bund@omega.physik.fu-berlin.de )
phone: +49 30 325 42 99
---------------------------------------------------------------------
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Call of executables under LINUX
[not found] <9709121024.AA20845@lasa13.astrsp-mrs.fr>
@ 1997-09-12 10:06 ` Andreas Johansson
0 siblings, 0 replies; 9+ messages in thread
From: Andreas Johansson @ 1997-09-12 10:06 UTC (permalink / raw)
On Fri, 12 Sep 1997 lebrun@lasa13.astrsp-mrs.fr wrote:
> Hi,
> thanks for your prompt answer,
> excuse my ignorance, but how do I check the 'ecoff' compatibility of my system ?
I must say I was hoping for a file in /proc which contained a list of
supported binformats, but apparently there is no such file :(
On the other hand, it seems you have already found out with strace that
this is not your problem. If I strace an ecoff binary without the ecoff
support this happens:
execve("./linpack_dp_roll", ["./linpack_dp_roll"], [/* 21 vars */]) = 0
strace: exec: Exec format error
This was not your error with strace so I guess you have ecoff support.
ecoff support (or a.out support) is by the way configured when the kernel
is compiled.
Good luck!
/Andreas
--
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
: E-mail: ajo@wopr.campus.luth.se :
: S-mail: Andreas Johansson, Karhusvagen 5 6:618, 977 54 Lulea, SWEDEN :
: Have you had your dose of 261.62 BogoMIPS today? - Run Alpha! :
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Call of executables under LINUX
[not found] <19970911195037.22381@tat.physik.uni-tuebingen.de>
1997-09-11 23:21 ` Andreas Johansson
@ 1997-09-12 10:21 ` lebrun
1 sibling, 0 replies; 9+ messages in thread
From: lebrun @ 1997-09-12 10:21 UTC (permalink / raw)
Hi,
thanks for your prompt answer,
strace ./pi answers :
execve("./pi", ["./pi"], [/* 18 vars */]) = 0
strace: exec: No such file or directory
In fact, following your suggestion, I checked that the sbin/loader was not
present on the LINUX system ...
I'll get all the libraries and check again.
Many thanks,
Vincent Le Brun
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Call of executables under LINUX
[not found] <199709111806.OAA08883@rrdjazz.nist.gov>
@ 1997-09-12 10:22 ` lebrun
0 siblings, 0 replies; 9+ messages in thread
From: lebrun @ 1997-09-12 10:22 UTC (permalink / raw)
Hi,
Thanks for your answer,
file ./pi says :
./pi: COFF format alpha executable paged dynamically linked not stripped -
version 3.11-8
Following other suggestions, I checked that the DU libraries (like /sbin/loader)
were not present on the LINUX system... I'll get them and try again.
Thanks,
Vincent Le Brun
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Call of executables under LINUX
[not found] <Pine.LNX.3.95L01at.970912011941.9153B-100000@wopr.campus.luth.se>
@ 1997-09-12 10:24 ` lebrun
0 siblings, 0 replies; 9+ messages in thread
From: lebrun @ 1997-09-12 10:24 UTC (permalink / raw)
Hi,
thanks for your prompt answer,
excuse my ignorance, but how do I check the 'ecoff' compatibility of my system ?
Thanks,
Vincent Le Brun
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~1997-09-12 10:24 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-09-12 9:04 Call of executables under LINUX Stefan Bund
[not found] <Pine.LNX.3.95L01at.970912011941.9153B-100000@wopr.campus.luth.se>
1997-09-12 10:24 ` lebrun
[not found] <199709111806.OAA08883@rrdjazz.nist.gov>
1997-09-12 10:22 ` lebrun
[not found] <19970911195037.22381@tat.physik.uni-tuebingen.de>
1997-09-11 23:21 ` Andreas Johansson
1997-09-12 10:21 ` lebrun
[not found] <9709121024.AA20845@lasa13.astrsp-mrs.fr>
1997-09-12 10:06 ` Andreas Johansson
-- strict thread matches above, loose matches on Subject: below --
1997-09-11 18:06 Przemek Klosowski
1997-09-11 15:47 lebrun
1997-09-11 17:50 ` Harald Koenig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox