X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Rugxulo Newsgroups: comp.os.msdos.djgpp Subject: building libc (was "Re: ANNOUNCE: DJGPP port of Lua 5.2.0 uploaded.") Date: Fri, 23 Dec 2011 09:58:48 -0800 (PST) Organization: http://groups.google.com Lines: 55 Message-ID: <7dd36ab5-c992-42b1-abae-0a75c7c7ee24@l19g2000yqc.googlegroups.com> References: <201112220014 DOT pBM0ENQt004616 AT delorie DOT com> <74ee1ae2-8a21-4104-95d9-492073150519 AT l29g2000yqf DOT googlegroups DOT com> <3e0771bb-ed2b-4dfc-a654-75b59a3c65a7 AT p9g2000vbb DOT googlegroups DOT com> <5f4b3313-6ce8-4c7d-97a3-b9d313db1035 AT f11g2000yql DOT googlegroups DOT com> NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1324663230 1780 127.0.0.1 (23 Dec 2011 18:00:30 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Fri, 23 Dec 2011 18:00:30 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: l19g2000yqc.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: HNKRAUELSC X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.630.0 Safari/534.16,gzip(gfe) Bytes: 3767 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 pBNIF2wR024616 Reply-To: djgpp AT delorie DOT com Hi, On Dec 23, 1:59 am, Rugxulo wrote: > > On Dec 22, 9:56 am, Juan Manuel Guerrero wrote: > > > On 22 Dez., 05:06, Rugxulo wrote: > > > > I'm not sure I've ever rebuilt DJGPP's libc, probably weakly tried > > > once or twice and gave up. > > > I have compiled libc on plain DOS without difficulties today. > > I have used VMware with this system parameters: > > OS:  MSDOS 6.22 (no LFN driver installed) > > RAM: 32 MB > > > I checked out the sources on my linux box and zipped the extracted > > sources.  I used djtar to extract the sources on the virtual dos box. > > The sources compiled flawlessly. > > It took around 50 minutes to compile the sources using gcc 4.6.1 > > and latest binutils.  Of course, a working version of lua can also > > be compiled after libc.a has been installed. > > I'm surprised it works without LFNs and in such a low amount of RAM. Well, I tried under DOSEMU. A few caveats, but it mostly seems to have worked with latest GCC 4.6.2 /beta/ (corrections welcome): wget http://www.ludd.luth.se/~ams/djgpp/cvs/djgpp.cvs.tar.gz set DJGPP=c:\djgpp path %DJGPP%\bin;%PATH% set DJGPP=%DJGPP%\djgpp.env djtarx \tmp\djgpp.cvs.tar.gz cd djgpp djtarx \tmp\djtzn204.zip cd src make 1). Initially I was using an out-of-tree DJGPP install to build it, but I guess that's not recommended (strange failure building symify). Once copied bins over to "source" tree root, it ran fine, more or less. 2). DJTZN204.ZIP needs to be installed / unpacked? I guess you could just "make -k" or whatever and ignore it. (Does anyone use this? It seems a little arcane to understand, and they changed the rules anyways, so it's probably a bit out of date, no pun intended, heh. "set TZ=CST6CDT", I presume? No, better is to point directly to the "Central" file, right?? Does it matter if I build /zoneinfo/src/ Makefile with "LOCALTIME=US/Central"? [default "US/Eastern"]) 3). Also, under /zoneinfo/, seems two rules in the Makefile try "-L / dev/null", which (again) DOSEMU doesn't like. (What is the deal with that???) Anyways, I just created an empty 0-byte file ("blah") and used that instead. (shrug) I think I'll rebuild from scratch again to double-check.