|
From: Duncan M. <dwm...@gm...> - 2007-08-28 14:35:44
|
Part of the problem may be I am compiling using GCC 4.2.1 - and excessive warning messages seem to be the norm there. My dbd.h is from CVS as of two days ago. I will look on the POSIX_PATH_MATH and try to add it. I know I have seen other source where it was defined as you mentioned. On 8/28/07, Markus Hoenicka <mar...@mh...> wrote: > Quoting Duncan McQueen <dwm...@gm...>: > > > Well, I still get an error when compiling the sqlite3 driver under MinGW: > > > > dbd_sqlite3.c: In function '_real_dbd_connect': > > dbd_sqlite3.c:207: warning: passing argument 3 of > > '_dbd_internal_error_handler' makes pointer from integer without a > > cast > > I don't know what to make of these warnings. On my system I see the following: > > $ grep _dbd_internal_error_handler /usr/local/include/dbi/* > /usr/local/include/dbi/dbd.h:void > _dbd_internal_error_handler(dbi_conn_t *conn, > const char *errmsg, const int errno); > > argument 3 is declared as > > int sqlite3_errcode; > > so I don't see what's wrong here. Do you have an old version of dbd.h > in your include path somewhere (/usr/include/dbi/)? > > > > dbd_sqlite3.c:331: error: '_POSIX_PATH_MAX' undeclared (first use in > > this function) > > Apparently the MinGW version of limits.h does not define this > constant. Could you please check whether any other include file does? > You'd have to include that in addition to limits.h then. > > If not, try adding something like this to the top of dbd_sqlite.c: > > ifndef _POSIX_PATH_MAX > #define _POSIX_PATH_MAX 512 > endif > > If you get it to work, please send me a diff so I can fix these > problems in the CVS code. > > regards, > Markus > > > > -- > Markus Hoenicka > mar...@ca... > (Spam-protected email: replace the quadrupeds with "mhoenicka") > http://www.mhoenicka.de > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > libdbi-devel mailing list > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libdbi-devel > |