NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: nobody on January 21, 2005, 05:32:09 AM

Title: nasm compilation required small tweak
Post by: nobody on January 21, 2005, 05:32:09 AM
Compiling nasm itself, version 0.98.39, on linux Debian 2.4 kernel, gcc version 2.95.4 required me to remove from the configure generated Makefile the cflag -std=c99. Then it compiled OK. With that flag, it would not. I also had to remove that flag from the rdoff/Makefile.

oughtta be automatic, right. Hopefully I didn't break anything!
Title: Re: nasm compilation required small tweak
Post by: Frank Kotler on January 21, 2005, 09:49:23 AM
You are correct on all points. Fixing the buffer overflow required changing from C98 (to which Nasm has stubbornly clung) to C99. In the process, we messed up the build process for *several* compilers. This particular one was already known, but we *do* want to hear about what "tweaks" are required to get Nasm to build cleanly! Thanks for the input, and sorry for the problem!

Best,
Frank
Title: Re: nasm compilation required small tweak
Post by: Frank Kotler on January 21, 2005, 10:09:03 AM
C89 to C99, I meant - that's how things get broken...

BTW, the discoverer of the buffer overflow is Jonathan Rockway, not "Rockaway" - sorry.

Best,
Frank
Title: Re: nasm compilation required small tweak
Post by: nasm64developer on January 21, 2005, 04:30:57 PM
Known problem. See SF bug #1103412.