delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
X-Recipient: | djgpp AT delorie DOT com |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; |
d=gmail.com; s=20120113; | |
h=mime-version:x-received:in-reply-to:references:date:message-id | |
:subject:from:to:content-type; | |
bh=5V7VOV8rD1ztnUE60+SWWBXnbA3vgVg4OYP3PeKpZqs=; | |
b=k47owv8f8NmF/VA/5hWzPETQ1PbKwNPWFXeACloNHi3shVSkTsfDAhX4YOfxMaNQwT | |
W10Rn1nwVBIvbls5vp/06nMMHBSer5wIofkkacAVDmp72AnA2NI7X+rsQVVXBArI2LHO | |
Johui6dUnlXncOFJuXU63Gko+DtBLwBkjJab0b+LoMMftqwwu2JRHhqIAHLOkJFHQir8 | |
+biBOBThMd8fto9W4XF/qXhjoqREieMjML45QLgW7kKeOVUOm6W2iLBjpF6BX1A3KR+Q | |
/CJFiFRI1Y14xye7XzGWChZU/0bYAw1roFXAUq2nM0Bv4HjK3Ddopt6ZerVaIzi1BrtL | |
xZCQ== | |
MIME-Version: | 1.0 |
X-Received: | by 10.52.99.1 with SMTP id em1mr10894009vdb.48.1361127662756; Sun, |
17 Feb 2013 11:01:02 -0800 (PST) | |
In-Reply-To: | <43bcdb29-6ac3-4cdf-a0ca-e73adb60bf91@googlegroups.com> |
References: | <43bcdb29-6ac3-4cdf-a0ca-e73adb60bf91 AT googlegroups DOT com> |
Date: | Sun, 17 Feb 2013 14:01:02 -0500 |
Message-ID: | <CANvU5FzKq6CHZ+ndTNi+SMmoOp2_=a4f1PxCr29+Paz-AntZew@mail.gmail.com> |
Subject: | Re: compilation of sqlite3 on dos using djgpp |
From: | Matthew Petricone <strstream AT gmail DOT com> |
To: | djgpp AT delorie DOT com |
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 |
--20cf307f3900d5250704d5f03a77 Content-Type: text/plain; charset=ISO-8859-1 You could always write your own mmap function. I haven't used djgpp in a while, but you would probably need to use the dpmi functions for large memory allocs. You may be able to leave some mmap functionality out, depending on how sqlite uses it. -Matt On Feb 17, 2013 8:16 AM, <mahesh DOT s DOT chavan AT gmail DOT com> wrote: > Dear Sir, > I want to compile Sqlite latest version on DOS. When I tried, I was able > to make libsqlite3.a To make it work I have used fchown-stub.c But when I > tried to link it to shell.o to make exe, it gave me error mmap undefined > and munmap undefined. Both of them are defined in sys/stat.h > I think mmap and munmap are specific to linux and there is no equ. in dos. > While porting unix to dos many programmers should be facing the same > problem. > Please let me know, how to solve this problem. > Thanking you. > > --20cf307f3900d5250704d5f03a77 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <p dir=3D"ltr">You could always write your own mmap function. I haven't= used djgpp in a while, but you would probably need to use the dpmi functio= ns for large memory allocs. You may be able to leave some mmap functionalit= y out, depending on how sqlite uses it. </p> <p dir=3D"ltr">-Matt</p> <div class=3D"gmail_quote">On Feb 17, 2013 8:16 AM, <<a href=3D"mailto:= mahesh DOT s DOT chavan AT gmail DOT com">mahesh DOT s DOT chavan AT gmail DOT com</a>> wrote:<br type= =3D"attribution"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8= ex;border-left:1px #ccc solid;padding-left:1ex"> Dear Sir,<br> I want to compile Sqlite latest version on DOS. When I tried, I was able to= make libsqlite3.a To make it work I have used fchown-stub.c But when I tri= ed to link it to shell.o to make exe, it gave me error mmap undefined and m= unmap undefined. Both of them are defined in sys/stat.h<br> I think mmap and munmap are specific to linux and there is no equ. in dos.<= br> While porting unix to dos many programmers should be facing the same proble= m.<br> Please let me know, how to solve this problem.<br> Thanking you.<br> <br> </blockquote></div> --20cf307f3900d5250704d5f03a77--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |