Date: Wed, 27 Sep 2000 07:07:24 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Jason Green cc: djgpp AT delorie DOT com Subject: Re: How to ring tge bell? In-Reply-To: <7e82tsc2jrko61qdim56cnehgbhkrbtqcv@4ax.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 26 Sep 2000, Jason Green wrote: > Edit the file \djgpp\src\libc\pc_hw\sound\sound.c > > change: > > int scale; > if (freq == 0) > { > outportb(0x61, inportb(0x61) & ~3); > return; > } > > to: > > int scale; > outportb(0x61, inportb(0x61) & ~3); > if (freq == 0) > { > return; > } > > Recompile and merge with libc: > > C:\djgpp\src\libc\pc_hw\sound>gcc -O2 -Wall -c sound.c > > C:\djgpp\src\libc\pc_hw\sound>ar rvs /djgpp/lib/libc.a sound.o > r - sound.o > > And test to see if the bug is fixed for NT. But please first test that the original libc version does have problems as reported in this thread, before you try the new version above. Otherwise, we don't know that this change indeed fixes that problem. If someone can test this on an NT and report that it works, I will commit the change. Thanks! > [Note to Eli, is it really necessary to specify drive letter to ar? No, the argument is a normal file name, so it can be without the drive letter if the file is on the current drive. > If not then there is a redundant note in the FAQ about this.] You mean in the following snippet? gcc -c -O2 foo.c ar rvs c:/djgpp/lib/libc.a foo.o (This example assumes that DJGPP is installed in the `C:\DJGPP' directory; if not, you will need to change the pathname of `libc.a' accordingly.) If so, I don't think the note is redundant; I was just trying to come up with a command line that will work for everyone without complicating the matter with too many words.