www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/26/11:30:26

From: Frank Krauss <fmfkrauss AT mindspring DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Problem when assembling socket.S with DOS-GCC
Followup-To: comp.os.msdos.djgpp
Date: Wed, 26 Jun 2002 11:21:59 -0400
Organization: -
Lines: 47
Message-ID: <1025105180.1517399970@news.mindspring.com>
NNTP-Posting-Host: a5.f7.1f.fa
Mime-Version: 1.0
X-Server-Date: 26 Jun 2002 15:26:59 GMT
X-Newsreader: KRN http://ultra7.unl.edu.ar
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello all,

Firstly, I wish to thank everyone who have responded so nicely to my
recent posts on this Board.  This world of creating a DOS Execuatable
on a Linux machine by using the DJGPP Cross-Complier is brand new to me
and I'm having a lot to learn about this.

I appreciate all the information that I'm receiving.

My latest problem is that I'm know having a problem in assembling the 
socket.S Assembler program.

The Application that I'm developing to run on DOS will be a Client program
that uses Socket Programming calls.  I therefore need the calls to socket,
connect, send and recv.  Since I was not able to find these members in the
libraries supplied as part of DJGPP, I assumed that I have to create them
myself using the DOS-GCC Cross-Compiler.

When I attempted to assemble these four programs, I get the following same
errors for all of them:

 Assembler messages:
    Warning: .type pseudo-op used outside of .def/.endef ignored.
    Error:      Rest of line ignored. First ignored character is `_'.
    Error:      Alignment too large: 15 assumed
    Warning: .size pseudo-op used outside of .def/.endef ignored.
    Error:     Rest of line ignored. First ignored character is `_'.

These all point to the "socket.S" program which is a small Assembler
routine that is called by these four programs.

I have a Pentium-4 running the Linux Kernel 2.4.18.
I have created a Unix-to-Dos Cross Compiler (DOS-GCC) using DJGPP.

The GCC compiler that is part of DOS-GCC is 3.0.4.
The Assembler that is part of DOS-GCC is 2.11.2.

If I use the regular GCC Compiler, these programs assemble perfectly.

Can someone please tell me what is wrong and why the Cross-compiler, DOS-GCC,
is chocking on assembling these programs and what I have to do in order to 
fix this problem?

Yours truly,

Frank Krauss
        

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019