Date: Thu, 14 Jul 2005 00:05:18 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 582 ************************************************** Wednesday 13 July 2005 Number 582 ************************************************** Subjects for today 1 Re: make produces exec of unknown type : Dave Yeo" 2 Re: make produces exec of unknown type : Pete Milne **= Email 1 ==========================** Date: Tue, 12 Jul 2005 20:26:19 -0800 From: "Dave Yeo" Subject: Re: make produces exec of unknown type On Tue, 12 Jul 2005 13:59:40 +0100, Pete Milne wrote: >I'm trying to build ncftp 3.1.9. The build process completes and leaves >me with five .exe files in the ./bin directory. However, none of these >will run - they are all of 'unknown' type. I have made no changes to the >source except to move the contents of ./autoconf into the top level >directory. >Then went: >autoconf (v2.13, as this had been used to generate the supplied configure) >configure --without-curses --disable-ccdv >make > >Can anyone help? What version of GCC? What exactly is the error when run from a command prompt? Looking in a hex editor do they start the same as other OS/2 programs (first line or so) Dave **= Email 2 ==========================** Date: Wed, 13 Jul 2005 10:59:00 +0100 From: Pete Milne Subject: Re: make produces exec of unknown type Dave Yeo wrote: > >What version of GCC? What exactly is the error when run from a command prompt? Looking in a hex editor do they start the same as other OS/2 programs (first line or so) >Dave > > > Thanks, Dave, for taking an interest. I am using pgcc 2.95.2. The error I get is SYS0191: J:\dev\ncftp-3.1.9\bin\ncftp.exe cannot be run in an OS/2 session. In case this was an a.out file I tried using emxbind. The resulting exe terminates immediately with a segmentaion fault. The *.exe files produced all start with 0B 01. I forgot to mention I did have to make one change to the source, namely to add #ifdef __EMX__ # define S_ISLNK(m) (0) #endif to ncftp/syshdrs.h and libncftp/syshdrs.h Pete