Solved

MASM 6.14 Problems...

Posted on 2006-06-13
12
1,744 Views
Last Modified: 2008-01-09
It's been awhile since I took my assembly class so maybe there's something I'm forgetting. I'm having trouble compiling one of my old projects. I'm 90% sure there's nothing wrong with the code although if necessary I will post it... (it's just really long) Anyway here's what happens.

I type ml rain.asm and I get the following message(s)

Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997. All Rights Reserved.

 Assembling: rain_new.asm
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

/z2
"rain_new.obj"
"rain_new.exe"
NUL
LINK : warning LNK4044: unrecognized option "z2"; ignored
LINK : error : Segment reference in fixup record
rain_new.obj : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

I read a little on this error but frankly I have no idea what it means. o.o Could anyone steer me in the right direction? I'd like to get this running again if I can.
0
Comment
Question by:CyrexCore2k
  • 6
  • 3
  • 3
12 Comments
 
LVL 14

Author Comment

by:CyrexCore2k
ID: 16897390
actually I typed

ml rain_new.asm

my bad.
0
 
LVL 37

Expert Comment

by:Harisha M G
ID: 16897410
Hi, is the code too lengthy ? If so, zip it and post it in a webfolder..

http://www11.rapidupload.com/


---
Harish
0
 
LVL 14

Author Comment

by:CyrexCore2k
ID: 16897422
0
 
LVL 14

Author Comment

by:CyrexCore2k
ID: 16897457
Just some more information... not sure if it's helpful

ml /Zm /c rain_new.asm  <---- works fine
ml /Zm rain_new.asm <---- error like above
0
 
LVL 37

Expert Comment

by:Harisha M G
ID: 16897485
Well, it gave the following errors:

rain.asm(115): error A2004: Redefinition of symbol
rain.asm(166): error A2004: Redefinition of symbol
rain.asm(197): error A2004: Redefinition of symbol
rain.asm(353): error A2004: Redefinition of symbol
rain.asm(7): error A2105: Expected: instruction or directive
rain.asm(8): error A2105: Expected: instruction or directive
rain.asm(9): error A2105: Expected: instruction or directive
rain.asm(10): error A2105: Expected: instruction or directive
rain.asm(11): error A2105: Expected: instruction or directive
rain.asm(12): error A2105: Expected: instruction or directive
rain.asm(13): error A2105: Expected: instruction or directive
rain.asm(15): error A2105: Expected: instruction or directive
rain.asm(16): error A2105: Expected: instruction or directive
rain.asm(17): error A2105: Expected: instruction or directive
rain.asm(18): error A2105: Expected: instruction or directive
rain.asm(19): error A2105: Expected: instruction or directive
rain.asm(38): error A2005: Symbol is multidefined: DRIPSLOOP
rain.asm(42): error A2026: Reference to multidefined symbol
rain.asm(46): error A2009: Symbol not defined: NEWDRIPFREQ
rain.asm(47): error A2026: Reference to multidefined symbol
rain.asm(49): error A2009: Symbol not defined: RAINHEAD
rain.asm(51): error A2005: Symbol is multidefined: NODRIP
rain.asm(55): error A2005: Symbol is multidefined: SKIPCOL
rain.asm(58): error A2026: Reference to multidefined symbol
rain.asm(84): error A2005: Symbol is multidefined: DRIPSLOOP
rain.asm(88): error A2026: Reference to multidefined symbol
rain.asm(91): error A2009: Symbol not defined: RAINHEAD
rain.asm(94): error A2009: Symbol not defined: RAINTAIL
rain.asm(96): error A2026: Reference to multidefined symbol
rain.asm(101): error A2009: Symbol not defined: MAXDRIPLEN
rain.asm(105): error A2009: Symbol not defined: TAILGROWFREQ
rain.asm(108): error A2009: Symbol not defined: RAINTAIL
rain.asm(109): error A2026: Reference to multidefined symbol
rain.asm(113): error A2005: Symbol is multidefined: CONTINUE
rain.asm(115): error A2005: Symbol is multidefined: SKIPCOL
rain.asm(118): error A2026: Reference to multidefined symbol
rain.asm(150): error A2026: Reference to multidefined symbol
rain.asm(153): error A2009: Symbol not defined: RAINHEAD
rain.asm(156): error A2009: Symbol not defined: RAINTAIL
rain.asm(158): error A2009: Symbol not defined: RAINHEAD
rain.asm(159): error A2026: Reference to multidefined symbol
rain.asm(164): error A2026: Reference to multidefined symbol
rain.asm(166): error A2005: Symbol is multidefined: CONTINUE
rain.asm(171): error A2009: Symbol not defined: DRIPMOVEFREQ
rain.asm(172): error A2026: Reference to multidefined symbol
rain.asm(177): error A2009: Symbol not defined: RAINTAIL
rain.asm(179): error A2026: Reference to multidefined symbol
rain.asm(181): error A2009: Symbol not defined: RAINTAIL
rain.asm(182): error A2026: Reference to multidefined symbol
rain.asm(187): error A2026: Reference to multidefined symbol
rain.asm(190): error A2009: Symbol not defined: RAINTAIL
rain.asm(192): error A2026: Reference to multidefined symbol
rain.asm(195): error A2009: Symbol not defined: RAINTAIL
rain.asm(197): error A2005: Symbol is multidefined: NODRIP
rain.asm(255): error A2009: Symbol not defined: DELAYAMOUNT
rain.asm(270): error A2009: Symbol not defined: KBDCHAR
rain.asm(271): error A2026: Reference to multidefined symbol
rain.asm(275): error A2009: Symbol not defined: OX
rain.asm(276): error A2026: Reference to multidefined symbol
rain.asm(277): error A2009: Symbol not defined: OY
rain.asm(278): error A2026: Reference to multidefined symbol
rain.asm(280): error A2026: Reference to multidefined symbol
rain.asm(287): error A2005: Symbol is multidefined: DONE
rain.asm(288): error A2009: Symbol not defined: ENDPROGRAM
rain.asm(319): error A2009: Symbol not defined: SEED
rain.asm(321): error A2009: Symbol not defined: SEED
rain.asm(337): error A2009: Symbol not defined: KBDCHAR
rain.asm(341): error A2009: Symbol not defined: OX
rain.asm(342): error A2009: Symbol not defined: OY
rain.asm(349): error A2009: Symbol not defined: ENDPROGRAM
rain.asm(351): error A2026: Reference to multidefined symbol
rain.asm(353): error A2005: Symbol is multidefined: DONE

  50284 + 432964 Bytes symbol space free

      0 Warning Errors
     73 Severe  Errors
0
 
LVL 16

Expert Comment

by:PaulCaswell
ID: 16897508
Hi CyrexCore2k,

I think ml will be using an environment variable to locate the linker. It will then invoke the linker with its own, made up command line.

Sadly I dont know which environment variable it needs setting. Have you any documentation on masm that may help?

Paul
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 14

Author Comment

by:CyrexCore2k
ID: 16897512
Ummm you're using a different version or something

rain.asm(7): error A2105: Expected: instruction or directive
rain.asm(8): error A2105: Expected: instruction or directive
rain.asm(9): error A2105: Expected: instruction or directive
rain.asm(10): error A2105: Expected: instruction or directive
rain.asm(11): error A2105: Expected: instruction or directive
rain.asm(12): error A2105: Expected: instruction or directive
rain.asm(13): error A2105: Expected: instruction or directive
rain.asm(15): error A2105: Expected: instruction or directive
rain.asm(16): error A2105: Expected: instruction or directive
rain.asm(17): error A2105: Expected: instruction or directive
rain.asm(18): error A2105: Expected: instruction or directive
rain.asm(19): error A2105: Expected: instruction or directive

If you look at those lines there's nothing wrong with the syntax there so I'm not sure what your assembler is talking about.
0
 
LVL 16

Accepted Solution

by:
PaulCaswell earned 125 total points
ID: 16897540
Hi CyrexCore2k,

Forgot to mention, its probably the wrong linker that is being launched.

Paul
0
 
LVL 37

Expert Comment

by:Harisha M G
ID: 16897547
CyrexCore2k, yes.. sorry.. I had used 5.0 version :)
0
 
LVL 14

Author Comment

by:CyrexCore2k
ID: 16897557
Paul,

Yeah thats what I was thinking too since I do have VS 6.0 and VS .Net installed on this system as well... maybe it's trying to use one of their linkers.

I've looked around the files in the zip that I installed masm from but I'm really not sure where to look x_x

To my knowledge MS has released masm 6 as a free product so here's the zip if you feel like taking a look

http://drop.netortech.com/masm611.zip
0
 
LVL 14

Author Comment

by:CyrexCore2k
ID: 16897596
YESSSS :D

Okay so I'm still not sure where that environment variable is but I just went ahead and ran ML with the compile only switch and then went directly to the directory with MASMs linker and told it to link the compiled object file and it works :)

I don't feel like trying to figure out all this path stuff so I'll probably just write a batch file to do that for me.

Thanks Paul!
0
 
LVL 16

Expert Comment

by:PaulCaswell
ID: 16897699
Hi CyrexCore2k,

Here's a batch file that came with the old MSVC 3.1 called MSVCVARS.BAT.

@echo off
set TOOLROOTDIR=C:\MSVC
set PATH=C:\MSVC\BIN;%PATH%
set INCLUDE=C:\MSVC\INCLUDE;%INCLUDE%
set LIB=C:\MSVC\LIB;%LIB%

You will probably have to tinker with it. It might be of help.

Paul
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
IRQL_NOT_LESS_OR_EQUAL for Kernel Timer Thread 7 574
Patching a Windows EXE 23 735
FIR_filter 2 220
IE9 Blank pages 5 609
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now