X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Rugxulo Newsgroups: comp.os.msdos.djgpp Subject: Re: NASM and older Linux kernel versions Date: Fri, 20 Jan 2012 16:15:47 -0800 (PST) Organization: http://groups.google.com Lines: 34 Message-ID: References: <7175606 DOT QEjTKyN9ct AT harm> NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1327105292 28815 127.0.0.1 (21 Jan 2012 00:21:32 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Sat, 21 Jan 2012 00:21:32 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: m11g2000yqe.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HNKUARELSC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7,gzip(gfe) Bytes: 2602 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q0L0j2ja031409 Reply-To: djgpp AT delorie DOT com Hi, On Jan 20, 1:18 pm, John Wright wrote: > > I know this is not a DJGPP topic but it is related in my effort to learn what > you can and can't do. > > I have asked this question in the NASM forum but no response yet. I tried to > install NASM on a RedHat 5.2 release with kernel 2.0.36-0.5. "make" returned > with some GLIBC errors. Is this a matter of updating binutils to satisfy the > dependencies that it is looking for?  Or is this even possible for a Linux > version this old? Is there a cut-off kernel version? > > Any comments would be appreciated. So you're trying to compile NASM for an old Linux kernel? Which GCC + BinUtils are you using? NASM 0.98.39 and older were ANSI C89, but newer requires C99. You could also try YASM (C89), but it lacks OMF/ OBJ support (as does FASM). Actually, I had very briefly (tested only with one source) tried FASM on an old Linux (tomsrtbt), and it worked, so you could try that. The advantage there is that it assembles itself. I don't think BinUtils matters much here, but you should use an appropriate version with your GCC. Libc5 is probably what you're using as this is a quite old Linux. Actually, perhaps you can cross-compile a Linux version with OpenWatcom, and just run that. It should work, even for latest NASM releases, esp. since they link statically.