linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem building httpd
@ 2002-08-17 16:48 Ewald Wasscher
       [not found] ` <B0309172403@yoda.dccnet.com>
  2002-08-18  4:11 ` Konstantin Boldyshev
  0 siblings, 2 replies; 4+ messages in thread
From: Ewald Wasscher @ 2002-08-17 16:48 UTC (permalink / raw)
  To: linux-assembly

Hello all,

I just anxiosly tried to build httpd from the new 0.17 release with cgi 
support enabled. Unfortunately it fails:

bash-2.05a$ make httpd
nasm -w+orphan-labels -w+macro-params -i../inc/ -f bin -D__LINUX__ 
-D__KERNEL__=24 -D__SYSCALL__=__S_KERNEL__ -D__OPTIMIZE__=__O_SIZE__ 
-D__ELF__ -D__ELF_MACROS__ httpd.asm
httpd.asm:282: short jump is out of range
make: *** [httpd] Error 1

As I know next to nothing about assembler I wonder how one should fix 
that (replace jb with jmp?)

Ewald Wasscher


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem building httpd
       [not found] ` <B0309172403@yoda.dccnet.com>
@ 2002-08-17 17:59   ` Ewald Wasscher
  0 siblings, 0 replies; 4+ messages in thread
From: Ewald Wasscher @ 2002-08-17 17:59 UTC (permalink / raw)
  To: linux-assembly

Robin Miyagi wrote:

 >On Saturday 17 August 2002 09:48, Ewald Wasscher wrote:
 >
 >
 >>Hello all,
 >>
 >>I just anxiosly tried to build httpd from the new 0.17 release with cgi
 >>support enabled. Unfortunately it fails:
 >>
 >>bash-2.05a$ make httpd
 >>nasm -w+orphan-labels -w+macro-params -i../inc/ -f bin -D__LINUX__
 >>-D__KERNEL__=24 -D__SYSCALL__=__S_KERNEL__ -D__OPTIMIZE__=__O_SIZE__
 >>-D__ELF__ -D__ELF_MACROS__ httpd.asm
 >>httpd.asm:282: short jump is out of range
 >>make: *** [httpd] Error 1
 >>
 >>As I know next to nothing about assembler I wonder how one should fix
 >>that (replace jb with jmp?)
 >>
 >>Ewald Wasscher
 >>
 >>-
 >>To unsubscribe from this list: send the line "unsubscribe linux-assembly"
 >>in the body of a message to majordomo@vger.kernel.org
 >>More majordomo info at  http://vger.kernel.org/majordomo-info.html
 >>
 >>
 >
 >For which assembler was this source code written for.
 >
For nasm 0.98.

 >
 >The problem here is that the jump is more than 128 before, or 127 
after the
 >current instruction pointer (the jump displacement is represented by a 
signed
 >one byte integer -- -128 to 127).  This should be replaced by a long 
jump,
 >which uses the machine integer/pointer size (4 bytes) to store the
 >displacement.
 >
Hah, I guessed so (I do remeber a little: I once bought a book on
assembler in the days that a 80286@12mhz was a very fast pc)

 > Please send me a copy of the assembler source code.
 >
 >
 >

You got it in private mail, it's httpd.asm from the asmutils 0.17 release.

Ewald



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem building httpd
  2002-08-17 16:48 Problem building httpd Ewald Wasscher
       [not found] ` <B0309172403@yoda.dccnet.com>
@ 2002-08-18  4:11 ` Konstantin Boldyshev
  2002-08-31  8:42   ` Ewald Wasscher
  1 sibling, 1 reply; 4+ messages in thread
From: Konstantin Boldyshev @ 2002-08-18  4:11 UTC (permalink / raw)
  To: linux-assembly

On Sat, 17 Aug 2002, Ewald Wasscher wrote:

> I just anxiosly tried to build httpd from the new 0.17 release with cgi
> support enabled. Unfortunately it fails:
>
> bash-2.05a$ make httpd
> nasm -w+orphan-labels -w+macro-params -i../inc/ -f bin -D__LINUX__
> -D__KERNEL__=24 -D__SYSCALL__=__S_KERNEL__ -D__OPTIMIZE__=__O_SIZE__
> -D__ELF__ -D__ELF_MACROS__ httpd.asm
> httpd.asm:282: short jump is out of range
> make: *** [httpd] Error 1
>
> As I know next to nothing about assembler I wonder how one should fix
> that (replace jb with jmp?)

Replace 'jb' with 'jb near'.
This will be fixed in the next release.

-- 
Regards,
Konstantin


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem building httpd
  2002-08-18  4:11 ` Konstantin Boldyshev
@ 2002-08-31  8:42   ` Ewald Wasscher
  0 siblings, 0 replies; 4+ messages in thread
From: Ewald Wasscher @ 2002-08-31  8:42 UTC (permalink / raw)
  To: Konstantin Boldyshev; +Cc: linux-assembly

On Sun, 2002-08-18 at 06:11, Konstantin Boldyshev wrote:
> On Sat, 17 Aug 2002, Ewald Wasscher wrote:
> 
> > I just anxiosly tried to build httpd from the new 0.17 release with cgi
> > support enabled. Unfortunately it fails:
> >
> > bash-2.05a$ make httpd
> > nasm -w+orphan-labels -w+macro-params -i../inc/ -f bin -D__LINUX__
> > -D__KERNEL__=24 -D__SYSCALL__=__S_KERNEL__ -D__OPTIMIZE__=__O_SIZE__
> > -D__ELF__ -D__ELF_MACROS__ httpd.asm
> > httpd.asm:282: short jump is out of range
> > make: *** [httpd] Error 1
> >
> > As I know next to nothing about assembler I wonder how one should fix
> > that (replace jb with jmp?)
> 
> Replace 'jb' with 'jb near'.
> This will be fixed in the next release.
> 

With nasm 0.98.34 it builds fine though.

Greetings,

Ewald



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-08-31  8:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-17 16:48 Problem building httpd Ewald Wasscher
     [not found] ` <B0309172403@yoda.dccnet.com>
2002-08-17 17:59   ` Ewald Wasscher
2002-08-18  4:11 ` Konstantin Boldyshev
2002-08-31  8:42   ` Ewald Wasscher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).