From: myknees AT aol DOT com (Myknees) Newsgroups: comp.os.msdos.djgpp Subject: Re: LD looks at zip drive Date: 31 Dec 1997 06:46:36 GMT Lines: 353 Message-ID: <19971231064601.BAA04206@ladder02.news.aol.com> NNTP-Posting-Host: ladder02.news.aol.com References: <34A92532 DOT 88FD23E5 AT gmx DOT net> Organization: AOL http://www.aol.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article <34A92532 DOT 88FD23E5 AT gmx DOT net>, Robert Hoehne writes: >For all the user which have problems with accessing not wanted drives >when ld.exe is running: > >Please use a simple hello-world program and do the following steps: > >gcc -c hello.c -o hello.o >gcc -o hello.exe hello.o -Xlinker --verbose > log > >Now examine the file ´log´ which contains all the files, >which ld tried to open. If there is somewhere your interested >drive in one of the paths you should try to figure out why ld >tried to access that file. If you have no clue about this, so >please post the file ´log´ together with your djgpp.env and an >output of the set-command. (if you are using RHIDE posting here >a bug-reporte created by RHIDE might be usefull too) OK I tried that. On the first step the phenomenon occured, i.e. upon entering... gcc -c hello.c -o hello.o ...the compilation started, halted, LD was running and everything stopped, after a while my zip drive woke up, and compilation finished. I went ahead and did step two, redirecting output to the log file, but upon examining the log file, I saw only directories on my hard disk and in the c:\elc\utils\djgpp subdirectories, which is as it should be, I guess. I have put the stuff you asked for at the bottom of this post if you care to see it for yourself. > >Normally (as Eli already tried to mention more than once!!) ld >does not access randomly some drives. If it does, there is probably >a misconfiguration of you which you should explain a little bit >more detailed to get a usefull help. Well, together with the previously posted autoexec.bat & config.sys files, the information provided here should make it possible to say whether it is a configuration problem or not. Thanks, --Ed (Myknees) requested stuff follows: =================== LOG file =================== GNU ld version 2.8.1 (with BFD 2.8.1) Supported emulations: i386go32 cannot find script file djgpp.djl opened script file c:/elc/utils/djgpp/lib/djgpp.djl attempt to open c:/elc/utils/djgpp/lib\crt0.o succeeded c:/elc/utils/djgpp/lib\crt0.o attempt to open c:/elc/utils/djgpp/tmp\ccdaaaaa succeeded c:/elc/utils/djgpp/tmp\ccdaaaaa attempt to open c:/elc/utils/djgpp/lib/libgcc.a succeeded attempt to open c:/elc/utils/djgpp/lib/libc.a succeeded (c:/elc/utils/djgpp/lib/libc.a)npxsetup.o (c:/elc/utils/djgpp/lib/libc.a)id_c.o (c:/elc/utils/djgpp/lib/libc.a)crt1.o (c:/elc/utils/djgpp/lib/libc.a)exceptn.o (c:/elc/utils/djgpp/lib/libc.a)infostrc.o (c:/elc/utils/djgpp/lib/libc.a)_main.o (c:/elc/utils/djgpp/lib/libc.a)printf.o (c:/elc/utils/djgpp/lib/libc.a)getenv.o (c:/elc/utils/djgpp/lib/libc.a)ct_lower.o (c:/elc/utils/djgpp/lib/libc.a)d0e01.o (c:/elc/utils/djgpp/lib/libc.a)fpu.o (c:/elc/utils/djgpp/lib/libc.a)_write.o (c:/elc/utils/djgpp/lib/libc.a)cntrl87.o (c:/elc/utils/djgpp/lib/libc.a)strcat.o (c:/elc/utils/djgpp/lib/libc.a)dxeload.o (c:/elc/utils/djgpp/lib/libc.a)dpmiexcp.o (c:/elc/utils/djgpp/lib/libc.a)longjmp.o (c:/elc/utils/djgpp/lib/libc.a)d0000.o (c:/elc/utils/djgpp/lib/libc.a)d0008.o (c:/elc/utils/djgpp/lib/libc.a)d0400.o (c:/elc/utils/djgpp/lib/libc.a)d0006.o (c:/elc/utils/djgpp/lib/libc.a)md.o (c:/elc/utils/djgpp/lib/libc.a)malloc.o (c:/elc/utils/djgpp/lib/libc.a)strcpy.o (c:/elc/utils/djgpp/lib/libc.a)abort.o (c:/elc/utils/djgpp/lib/libc.a)putenv.o (c:/elc/utils/djgpp/lib/libc.a)_use_lfn.o (c:/elc/utils/djgpp/lib/libc.a)c1args.o (c:/elc/utils/djgpp/lib/libc.a)c1loadef.o (c:/elc/utils/djgpp/lib/libc.a)exit.o (c:/elc/utils/djgpp/lib/libc.a)stdout.o (c:/elc/utils/djgpp/lib/libc.a)doprnt.o (c:/elc/utils/djgpp/lib/libc.a)d0200.o (c:/elc/utils/djgpp/lib/libc.a)d0201.o (c:/elc/utils/djgpp/lib/libc.a)d0202.o (c:/elc/utils/djgpp/lib/libc.a)d0203.o (c:/elc/utils/djgpp/lib/libc.a)d0204.o (c:/elc/utils/djgpp/lib/libc.a)d0205.o (c:/elc/utils/djgpp/lib/libc.a)d0300_z.o (c:/elc/utils/djgpp/lib/libc.a)d0303.o (c:/elc/utils/djgpp/lib/libc.a)d0304.o (c:/elc/utils/djgpp/lib/libc.a)d0600.o (c:/elc/utils/djgpp/lib/libc.a)dpmi_lsl.o (c:/elc/utils/djgpp/lib/libc.a)fsext.o (c:/elc/utils/djgpp/lib/libc.a)dmp.o (c:/elc/utils/djgpp/lib/libc.a)errno.o (c:/elc/utils/djgpp/lib/libc.a)doserr2e.o (c:/elc/utils/djgpp/lib/libc.a)_open.o (c:/elc/utils/djgpp/lib/libc.a)_read.o (c:/elc/utils/djgpp/lib/libc.a)_close.o (c:/elc/utils/djgpp/lib/libc.a)write.o (c:/elc/utils/djgpp/lib/libc.a)djmd.o (c:/elc/utils/djgpp/lib/libc.a)memcpy.o (c:/elc/utils/djgpp/lib/libc.a)strchr.o (c:/elc/utils/djgpp/lib/libc.a)strncmp.o (c:/elc/utils/djgpp/lib/libc.a)strcmp.o (c:/elc/utils/djgpp/lib/libc.a)d_getdrv.o (c:/elc/utils/djgpp/lib/libc.a)ct_upper.o (c:/elc/utils/djgpp/lib/libc.a)memset.o (c:/elc/utils/djgpp/lib/libc.a)ct_flags.o (c:/elc/utils/djgpp/lib/libc.a)lseek.o (c:/elc/utils/djgpp/lib/libc.a)c1pglob.o (c:/elc/utils/djgpp/lib/libc.a)calloc.o (c:/elc/utils/djgpp/lib/libc.a)strncpy.o (c:/elc/utils/djgpp/lib/libc.a)strncat.o (c:/elc/utils/djgpp/lib/libc.a)stdiohk.o (c:/elc/utils/djgpp/lib/libc.a)setmode.o (c:/elc/utils/djgpp/lib/libc.a)lconv.o (c:/elc/utils/djgpp/lib/libc.a)putc.o (c:/elc/utils/djgpp/lib/libc.a)memchr.o (c:/elc/utils/djgpp/lib/libc.a)modfl.o (c:/elc/utils/djgpp/lib/libc.a)putpath.o (c:/elc/utils/djgpp/lib/libc.a)fse_open.o (c:/elc/utils/djgpp/lib/libc.a)dosio.o (c:/elc/utils/djgpp/lib/libc.a)dmg.o (c:/elc/utils/djgpp/lib/libc.a)glob.o (c:/elc/utils/djgpp/lib/libc.a)fwalk.o (c:/elc/utils/djgpp/lib/libc.a)fflush.o (c:/elc/utils/djgpp/lib/libc.a)fclose.o (c:/elc/utils/djgpp/lib/libc.a)read.o (c:/elc/utils/djgpp/lib/libc.a)flsbuf.o (c:/elc/utils/djgpp/lib/libc.a)stricmp.o (c:/elc/utils/djgpp/lib/libc.a)fexistp.o (c:/elc/utils/djgpp/lib/libc.a)findfirs.o (c:/elc/utils/djgpp/lib/libc.a)lfnshort.o (c:/elc/utils/djgpp/lib/libc.a)findnext.o (c:/elc/utils/djgpp/lib/libc.a)fnmatch.o (c:/elc/utils/djgpp/lib/libc.a)fncase.o (c:/elc/utils/djgpp/lib/libc.a)qsort.o (c:/elc/utils/djgpp/lib/libc.a)frlist.o (c:/elc/utils/djgpp/lib/libc.a)close.o (c:/elc/utils/djgpp/lib/libc.a)remove.o (c:/elc/utils/djgpp/lib/libc.a)crlf2nl.o (c:/elc/utils/djgpp/lib/libc.a)isatty.o (c:/elc/utils/djgpp/lib/libc.a)_chmod.o (c:/elc/utils/djgpp/lib/libc.a)stdin.o (c:/elc/utils/djgpp/lib/libc.a)stderr.o (c:/elc/utils/djgpp/lib/libc.a)stdprn.o (c:/elc/utils/djgpp/lib/libc.a)stdaux.o attempt to open c:/elc/utils/djgpp/lib/libgcc.a succeeded (c:/elc/utils/djgpp/lib/libgcc.a)_umoddi3.o (c:/elc/utils/djgpp/lib/libgcc.a)_udivdi3.o ============= DJGPP.ENV ============= #= Don't edit this line unless you move djgpp.env outside #= of the djgpp installation directory. If you do move #= it, set DJDIR to the directory you installed DJGPP in. #= DJDIR=%:/>DJGPP% +USER=dosuser +TMPDIR=%DJDIR%/tmp +EMU387=%DJDIR%/bin/emu387.dxe +LFN=n [bison] BISON_HAIRY=%DJDIR%/lib/bison.hai BISON_SIMPLE=%DJDIR%/lib/bison.sim [cpp] CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/lang/cxx;%DJDIR%/include ;%DJDIR%/contrib/grx20/include C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/contrib/grx20/include OBJCPLUS_INCLUDE_PATH=%/>;OBJCPLUS_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/la ng/objc OBJC_INCLUDE_PATH=%/>;OBJC_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc [gcc] COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib;%DJDIR%/contrib/grx20/lib [info] INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info INFO_COLORS=0x1f.0x31 [emacs] INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info [less] LESSBINFMT=*k<%X> LESSCHARDEF=8bcccbcc12bc5b95.b127.b LESS=%LESS% -h5$y5$Dd2.0$Du14.0$Ds4.7$Dk9.0$ [locate] +LOCATE_PATH=%DJDIR%/lib/locatedb.dat [ls] +LS_COLORS=no=00:fi=00:di=36:lb=37;07:cd=40;33;01:ex=32:*.cmd=32:*.tar=01; 31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:* .Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:*.gif=01;34:*.bmp=01;34:*.ppm= 01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:*.tif=01;34:*.mpg=01;37:*.avi=01 ;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08: [dir] +LS_COLORS=no=00:fi=00:di=36:lb=37;07:cd=40;33;01:ex=32:*.cmd=32:*.tar=01; 31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:* .Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:*.gif=01;34:*.bmp=01;34:*.ppm= 01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:*.tif=01;34:*.mpg=01;37:*.avi=01 ;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08: [vdir] +LS_COLORS=no=00:fi=00:di=36:lb=37;07:cd=40;33;01:ex=32:*.cmd=32:*.tar=01; 31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:* .Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:*.gif=01;34:*.bmp=01;34:*.ppm= 01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:*.tif=01;34:*.mpg=01;37:*.avi=01 ;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08: ======================== OUTPUT OF SET COMMAND ======================== TMP=C:\WINDOWS\TEMP TEMP=C:\WINDOWS\TEMP winbootdir=C:\WINDOWS COMSPEC=C:\WINDOWS\COMMAND.COM PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\ELC\DOS;C:\ELC\UTILS\DJGPP\BIN DJGPP=C:\elc\utils\DJGPP\DJGPP.ENV LFN=y SET_FILES=c:/elc/utils/djgpp/share/setedit TDEL=/d-/p windir=C:\WINDOWS BLASTER=A220 I7 D1 D_CMD=/H/R PROMPT=$p :-) CMDLINE=setedit ..\djgpp.env (Surprising how I never get tired of that prompt.) ========================= RHIDE BUG REPORT ========================= This is a bug report for RHIDE Version 1.4 (Sep 30 1997 23:06:59) I am running MS-DOS 7.10 (Windows 95) Important environment variables: PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\ELC\DOS;C:\ELC\UTILS\DJGPP\BIN DJGPP=C:\elc\utils\DJGPP\DJGPP.ENV LFN=y INFOPATH=c:/elc/utils/djgpp/info;c:/elc/utils/djgpp/gnu/emacs/info LOCALEDIR= LANGUAGE= SHELL= COMSPEC=C:\WINDOWS\COMMAND.COM DJSYSFLAGS= Here is the output from a sample compilation and link for C executing: echo "int main(){return 0;}" | redir -eo gcc -Xlinker -v -Wa,-v -v -o /dev/null -x c - Reading specs from c:/elc/utils/djgpp/lib\specs gcc version 2.7.2.1 c:/elc/utils/djgpp/bin\cpp.exe -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=1 -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=1 -D__unix -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=1 - c:/elc/utils/djgpp/tmp/RHpaaaaa\ccbaaaaa GNU CPP version 2.7.2.1 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/elc/utils/djgpp/include c:/elc/utils/djgpp/contrib/grx20/include /usr/local/include /usr/local/go32/include /usr/local/lib/gcc-lib/go32/2.7.2.1/include /usr/include End of search list. c:/elc/utils/djgpp/bin\cc1.exe c:/elc/utils/djgpp/tmp/RHpaaaaa\ccbaaaaa -quiet -dumpbase -.c -version -o c:/elc/utils/djgpp/tmp/RHpaaaaa\cccaaaaa GNU C version 2.7.2.1 (80386, BSD syntax) compiled by GNU C version 2.7.2.1. c:/elc/utils/djgpp/bin\as.exe -v -o c:/elc/utils/djgpp/tmp/RHpaaaaa\ccdaaaaa c:/elc/utils/djgpp/tmp/RHpaaaaa\cccaaaaa GNU assembler version 2.8.1 (i386-pc-msdosdjgpp) c:/elc/utils/djgpp/bin\ld.exe -o /dev/null c:/elc/utils/djgpp/lib\crt0.o -Lc:/elc/utils/djgpp/lib -v c:/elc/utils/djgpp/tmp/RHpaaaaa\ccdaaaaa -Tdjgpp.djl -lgcc -lc -lgcc GNU ld version 2.8.1 (with BFD 2.8.1) c:/elc/utils/djgpp/bin\stubify.exe -v /dev/null Warning: input file is not COFF or stubbed COFF .exe: No such file or directory (ENOENT) stubify for djgpp V2.X executables, Copyright (C) 1995 DJ Delorie End of the sample Here is the output from a sample compilation and link for C++ executing: echo "int main(){return 0;}" | redir -eo gcc -Xlinker -v -Wa,-v -v -o /dev/null -x c++ - Reading specs from c:/elc/utils/djgpp/lib\specs gcc version 2.7.2.1 c:/elc/utils/djgpp/bin\cpp.exe -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=7 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=1 -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=1 -D__unix -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=1 - c:/elc/utils/djgpp/tmp/RHpaaaaa\ccbaaaaa GNU CPP version 2.7.2.1 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/elc/utils/djgpp/lang/cxx c:/elc/utils/djgpp/include c:/elc/utils/djgpp/contrib/grx20/include /usr/local/lib/g++-include /usr/local/include /usr/local/go32/include /usr/local/lib/gcc-lib/go32/2.7.2.1/include /usr/include End of search list. c:/elc/utils/djgpp/bin\cc1plus.exe c:/elc/utils/djgpp/tmp/RHpaaaaa\ccbaaaaa -quiet -dumpbase -.cc -version -o c:/elc/utils/djgpp/tmp/RHpaaaaa\cccaaaaa GNU C++ version 2.7.2.1 (80386, BSD syntax) compiled by GNU C version 2.7.2.1. c:/elc/utils/djgpp/bin\as.exe -v -o c:/elc/utils/djgpp/tmp/RHpaaaaa\ccdaaaaa c:/elc/utils/djgpp/tmp/RHpaaaaa\cccaaaaa GNU assembler version 2.8.1 (i386-pc-msdosdjgpp) c:/elc/utils/djgpp/bin\ld.exe -o /dev/null c:/elc/utils/djgpp/lib\crt0.o -Lc:/elc/utils/djgpp/lib -v c:/elc/utils/djgpp/tmp/RHpaaaaa\ccdaaaaa -Tdjgpp.djl -lgcc -lc -lgcc GNU ld version 2.8.1 (with BFD 2.8.1) c:/elc/utils/djgpp/bin\stubify.exe -v /dev/null Warning: input file is not COFF or stubbed COFF .exe: No such file or directory (ENOENT) stubify for djgpp V2.X executables, Copyright (C) 1995 DJ Delorie End of the sample My problem is the following: ============================ (you know)