Date: Fri, 5 Aug 2005 00:05:16 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 596 ************************************************** Thursday 04 August 2005 Number 596 ************************************************** Subjects for today 1 Re: make produces exec of unknown type : Pete Milne 2 Re: make produces exec of unknown type : Stefan.Neis at t-online.de **= Email 1 ==========================** Date: Wed, 03 Aug 2005 13:52:21 +0100 From: Pete Milne Subject: Re: make produces exec of unknown type Csaba Raduly wrote: > 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. > > > What was the exact GCC commandline in the final link steps ? (the ones > without -c) > > > > This is the last invocation of gcc. Make of it what you will! gcc -D_REENTRANT -D_LARGEFILE64_SOURCE -D__EMX__ -DOS2 -Zmtd -D__ST_MT_ERRNO__ -Zexe -O2 -fomit-frame-pointer -Wno-format-y2k -Dsh_util -DO_S=\"os/2\" -DSYSCONFDIR=\"/usr/local/etc\" -DHAVE_CONFIG_H -IJ:/dev/ncftp-3.1.9 -I../libncftp -I../Strn -I../sio -IJ:/dev/ncftp-3.1.9 -IJ:/dev/ncftp-3.1.9/libncftp -IJ:/dev/ncftp-3.1.9/sio -IJ:/dev/ncftp-3.1.9/Strn gpshare.o preffw.o util.o gl_getline.o version.o ncftpls.c -o ../bin/ncftpls.exe -L../libncftp -L../Strn -L../sio -LJ:/dev/ncftp-3.1.9/libncftp -LJ:/dev/ncftp-3.1.9/sio -LJ:/dev/ncftp-3.1.9/Strn -Zmtd -D__ST_MT_ERRNO__ -O2 -s -Zsysv-signals -Zstack 512 -lcExt -lstcExt -lncftp -lStrn -lsio -lsocket According to the makefile, CFLAGS=-D_REENTRANT -D_LARGEFILE64_SOURCE -D__EMX__ -DOS2 -Zmtd -D__ST_MT_ERRNO__ -Zexe -O2 -fomit-frame-pointer -Wno-format-y2k There is nothing there for LDFLAGS. Thanks, Pete PS I think the .exe file produced _is_ an a.out file. **= Email 2 ==========================** Date: Wed, 3 Aug 2005 23:30:42 +0100 From: Stefan.Neis at t-online.de Subject: Re: make produces exec of unknown type Hi, > gcc -D_REENTRANT -D_LARGEFILE64_SOURCE -D__EMX__ -DOS2 -Zmtd > -D__ST_MT_ERRNO__ -Zexe -O2 -fomit-frame-pointer -Wno-format-y2k ^^^^^ > -Dsh_util -DO_S=\"os/2\" -DSYSCONFDIR=\"/usr/local/etc\" -DHAVE_CONFIG_H > -IJ:/dev/ncftp-3.1.9 -I../libncftp -I../Strn -I../sio > -IJ:/dev/ncftp-3.1.9 -IJ:/dev/ncftp-3.1.9/libncftp > -IJ:/dev/ncftp-3.1.9/sio -IJ:/dev/ncftp-3.1.9/Strn gpshare.o preffw.o > util.o gl_getline.o version.o ncftpls.c -o ../bin/ncftpls.exe ^^^^^^^^^^^^^^^^^^^^^ > -L../libncftp -L../Strn -L../sio -LJ:/dev/ncftp-3.1.9/libncftp > -LJ:/dev/ncftp-3.1.9/sio -LJ:/dev/ncftp-3.1.9/Strn -Zmtd > -D__ST_MT_ERRNO__ -O2 -s -Zsysv-signals -Zstack 512 -lcExt -lstcExt > -lncftp -lStrn -lsio -lsocket IIRC, one should not combine "-Zexe" with "-o something.exe". Either use "-Zexe -o blub" (and you'll get an empty "blub" and an executable "blub.exe") _or_ "-o blub.exe", but never "-Zexe -o blub.exe". > According to the makefile, > CFLAGS=-D_REENTRANT -D_LARGEFILE64_SOURCE -D__EMX__ -DOS2 -Zmtd > -D__ST_MT_ERRNO__ -Zexe -O2 -fomit-frame-pointer -Wno-format-y2k Try, if removing -Zexe does help. HTH, Stefan