Author Topic: nasm compilation required small tweak  (Read 15494 times)

nobody

  • Guest
nasm compilation required small tweak
« 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!

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: nasm compilation required small tweak
« Reply #1 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

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: nasm compilation required small tweak
« Reply #2 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

nasm64developer

  • Guest
Re: nasm compilation required small tweak
« Reply #3 on: January 21, 2005, 04:30:57 PM »
Known problem. See SF bug #1103412.