Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 70418 invoked from network); 3 Jul 2010 13:54:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Jul 2010 13:54:22 -0000 Received: (qmail 91237 invoked by uid 500); 3 Jul 2010 13:54:22 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 90832 invoked by uid 500); 3 Jul 2010 13:54:19 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 90825 invoked by uid 99); 3 Jul 2010 13:54:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jul 2010 13:54:18 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of scarleton@gmail.com designates 209.85.216.178 as permitted sender) Received: from [209.85.216.178] (HELO mail-qy0-f178.google.com) (209.85.216.178) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jul 2010 13:54:11 +0000 Received: by qyk9 with SMTP id 9so933191qyk.16 for ; Sat, 03 Jul 2010 06:53:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=s/vsJrn7cdzjxumSQHjvY6tzCKYwT3dg1GxK4Si7yl0=; b=N4ln3dB1JJNLvyDBLcniERyjR8sQ7Stc/Oit8JDvT1MlGKv/Pf/PHiyClTUFY1G01D D835641sNgMprQQn+ezzlWSG7bQALgk/+3TttcpkdYOO+CwPM1ivuCo18dJxbMe7198h HX8A2BhyL1Y7lHkIkhMuk25P2fr4k2CVtiAEg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=tIytN68Sn5eS3zm0fex0OVbgS2roXnf6Ngmfj+N5023aB+Jity4qIiM/0IfwkRYZZh xuGMzNSNiBYUytZncbOBuOo+KS5lfvALDi6r12WPNMnq9bxom0DTMa8mmjLcjBliMBbk J9vCtUs9DF+JhRh6vIfUzQGpETga34Q2o/OuY= MIME-Version: 1.0 Received: by 10.224.97.97 with SMTP id k33mr169233qan.49.1278165230948; Sat, 03 Jul 2010 06:53:50 -0700 (PDT) Sender: scarleton@gmail.com Received: by 10.229.85.20 with HTTP; Sat, 3 Jul 2010 06:53:50 -0700 (PDT) In-Reply-To: <4C2EE502.3030905@rowe-clan.net> References: <4C2EE502.3030905@rowe-clan.net> Date: Sat, 3 Jul 2010 09:53:50 -0400 X-Google-Sender-Auth: fyGtsQiIip_qhpqlhH7vXF826NY Message-ID: Subject: Re: Compiling and using apr_dbd_sqlite3 From: Sam Carleton To: "William A. Rowe Jr." Cc: dev@apr.apache.org Content-Type: multipart/alternative; boundary=00c09f93dcdd8e1388048a7c085d X-Virus-Checked: Checked by ClamAV on apache.org --00c09f93dcdd8e1388048a7c085d Content-Type: text/plain; charset=UTF-8 On Sat, Jul 3, 2010 at 3:21 AM, William A. Rowe Jr. wrote: > On 7/2/2010 7:53 PM, Sam Carleton wrote: > > > > Do I need to compile the whole apr library, per the instructions on the > > web site or should I be able to simply convert the apr_dbd_sqlite3.dsp > > project to a Visual Studio 2008 project and compile it? > > Twofold question. First, db providers should be independently compilable, > so you are good in that regard. > > Second, for every free(), close(), fclose() and other non-Win32 call to the > C API which corresponds to resource creation from within APR, you may > expect > a segfault since these sorts of records are constrained to a single flavor > of the MSVCR library. The httpd/apr distributed by the httpd project is > still built on MSVCRT/VC6. > Why? why why why? I simply don't get it, the Apache server (and what I have seen of APR) is some of the best written code I have seen. I know there are some truly amazing minds behind it. So why is it still using a compiler that is 10-years-old! What is so outstanding about VC6 over any of the newer, free version of Visual Studio compiler? I simply don't understand it, I am sure there is a reason for it but I simply am not seeing the logic. > I understand it's possible to build using the DDK libraries to target the > same MSVCRT, in which case you should have no problems whatsoever. If you > build for a Studio 2008 SQLite/apr_dbd_sqlite module, then there may be > issues if sqlite allocates memory, etc, under the assumption that the > caller > will then free those resources, and similarly the whole dbd interface. > Off and learn how to get VS2008 to compile against the same ancient runtime that Apache is using. Sam --00c09f93dcdd8e1388048a7c085d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Sat, Jul 3, 2010 at 3:21 AM, William A. Rowe = Jr. <wrowe@rowe= -clan.net> wrote:
On 7/2/2010 7:53 PM, Sam Carleton wrote:
>
> Do I need to compile the whole apr library, per the instructions on th= e
> web site or should I be able to simply convert the apr_dbd_sqlite3.dsp=
> project to a Visual Studio 2008 project and compile it?

Twofold question. =C2=A0First, db providers should be independently c= ompilable,
so you are good in that regard.

Second, for every free(), close(), fclose() and other non-Win32 call to the=
C API which corresponds to resource creation from within APR, you may expec= t
a segfault since these sorts of records are constrained to a single flavor<= br> of the MSVCR library. =C2=A0The httpd/apr distributed by the httpd project = is
still built on MSVCRT/VC6.

Why?=C2=A0 why why why?= =C2=A0 I simply don't get it, the Apache server (and what I have seen of APR) is some of the best written code I have seen.=C2=A0 I kn= ow there are some truly amazing minds behind it.=C2=A0 So why is it still usi= ng a compiler that is 10-years-old!=C2=A0 What is so outstanding about VC6 ov= er any of the newer, free version of Visual Studio compiler?=C2=A0 I simply= =20 don't understand it, I am sure there is a reason for it but I simply am= =20 not seeing the logic.
=C2=A0
I understand it's possible to build using the DDK libraries to target t= he
same MSVCRT, in which case you should have no problems whatsoever. =C2=A0If= you
build for a Studio 2008 SQLite/apr_dbd_sqlite module, then there may be
issues if sqlite allocates memory, etc, under the assumption that the calle= r
will then free those resources, and similarly the whole dbd interface.

Off and learn how to get VS2008 to compile against the same ancient runtime= that Apache is using.

Sam
--00c09f93dcdd8e1388048a7c085d--