Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F49118F25 for ; Tue, 14 Jul 2015 07:20:41 +0000 (UTC) Received: (qmail 28454 invoked by uid 500); 14 Jul 2015 07:20:41 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 28409 invoked by uid 500); 14 Jul 2015 07:20:41 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 28396 invoked by uid 99); 14 Jul 2015 07:20:40 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jul 2015 07:20:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 3CD8AC0098 for ; Tue, 14 Jul 2015 07:20:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.792 X-Spam-Level: * X-Spam-Status: No, score=1.792 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-1.108, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id LHon-vw_MUK7 for ; Tue, 14 Jul 2015 07:20:34 +0000 (UTC) Received: from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id D850A22F2E for ; Tue, 14 Jul 2015 07:20:33 +0000 (UTC) Received: by ieik3 with SMTP id k3so5557404iei.3 for ; Tue, 14 Jul 2015 00:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=y81F1lR08Hc6xRPEuNOyA75jKf9lGCNYMpX+Gly2Hm0=; b=tDrPbWDyZEyBHJfSzdtkxRBLIbzvvZqb6kghdKdHj28I87dTKHn5ONp13kVStBkjya 8dj+sOah6ffKo2ccv26yuVutzDqf0HYPo50/yQwUyrDMa7gxJmmTGZ4UWF9bhy66GERw 37ZCQaP7SZYXPD+GC0gviZ+PuTr8klcUPHV7iF4hTIwQQChhZie1OYHVp5cQeY4YtRBV e+dGMtns07zp2+p8JrIRz3CzvirN3s/wRUJj9faNfCqefR/75C6nyBT/u9PjAjxva9oj ldW3rK1Vdi3xhqMiMj979R9qXUgT21H67A4DbOMGjomJASCDPhfUB/TZKhMkjN1U1+3Y uC5g== X-Received: by 10.107.12.104 with SMTP id w101mr20438428ioi.110.1436858388398; Tue, 14 Jul 2015 00:19:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.166.132 with HTTP; Tue, 14 Jul 2015 00:19:29 -0700 (PDT) In-Reply-To: <1CE7A467-E9BE-4C65-866E-DAC4FFCA1273@webweaving.org> References: <268D5F5B-682D-44CB-83B1-E01A7D8439E4@webweaving.org> <1CE7A467-E9BE-4C65-866E-DAC4FFCA1273@webweaving.org> From: Prakash Premkumar Date: Tue, 14 Jul 2015 12:49:29 +0530 Message-ID: Subject: Re: Linking sqlite in to apache module To: modules-dev@httpd.apache.org Content-Type: multipart/alternative; boundary=001a113dfc3ad54857051ad0a9e0 --001a113dfc3ad54857051ad0a9e0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks a lot dirkx. My current working directory was not writable. It's working now :) Thanks a lot :) On Mon, Jul 13, 2015 at 9:51 PM, wrote: > > > char *zErrMsg; > > rc =3D sqlite3_open("a.db", &db); > > if (rc) { > > Besides the faulty error trapping in the other mail - it just occurred to > me that your default/current working directory is also in a place you are > unlikely to be allowed to write > > So I would out the correct path there; or for testing use > > > rc =3D sqlite3_open(=E2=80=9C/tmp/a.db", &db); > > in conjunction with not using exit0) & adding error logging. > > Dw. > > --001a113dfc3ad54857051ad0a9e0--