Fred wrote:
> At 13:38 27/01/2008 -0600, Darrick Hartman (lists) wrote:
>> Don't do this.  Sqlite is included in the build environment.  There's no 
>> need to statically compile it outside the environment.
> 
> OK. I'll have to find out how tell the C program to fetch the .so instead.
> 
> This works on CentOS:
> 
> ===========
> #include <stdio.h>
> #include <stdlib.h>
> #include <syslog.h>
> #include <string.h>
> #include <sqlite3.h>
> 
> int main(int argc, char *argv[])
> {
>          char line[80];
>          int i;
>          sqlite3 *db;
>          char *zErr;
>          int rc;
>          char *sql;
> 
>          setlinebuf(stdout);
>          setlinebuf(stderr);
> 
>          rc = sqlite3_open("/tmp/test.db", &db);
>          if(rc) {
>                  fprintf(stderr, "Can't open database: %s\n", 
> sqlite3_errmsg(db));
>                  sqlite3_close(db);
>                  exit(1);
>          }
> 
>          sqlite3_close(db);
>          puts("SET CALLERID \"Derf <123>\"");
> 
>          return(EXIT_SUCCESS);
> }
> ===========
> 
> I'll see if I can get this to work on AstLinux with SQLite as a DLL.

Fred,

I've added optional sqlite support to php.  If you select the sqlite 
package, it will also build sqlite support into php.  This is disabled 
by default.

Darrick
-- 
Darrick Hartman
DJH Solutions, LLC
http://www.djhsolutions.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to