Summary: | ASTERISK-18097: svn revision 326678 of the Asterisk Trunk fails to compile on SQLITE3 error | ||
Reporter: | Byron Smith (byronsmith) | Labels: | |
Date Opened: | 2011-07-07 09:48:55 | Date Closed: | 2011-07-07 11:56:20 |
Priority: | Major | Regression? | |
Status: | Closed/Complete | Components: | Utilities/General |
Versions: | SVN | Frequency of Occurrence | |
Related Issues: | |||
Environment: | CentOS release 5.6 (Final) | Attachments: | |
Description: | When trying to compile the latest SVN 326678 I receive he following error: make[1]: Leaving directory `/usr/src/asterisk-trunk/menuselect' [CC] astdb2sqlite3.c -> astdb2sqlite3.o astdb2sqlite3.c: In function âinit_stmtâ: astdb2sqlite3.c:137: warning: implicit declaration of function âsqlite3_prepare_v2â astdb2sqlite3.c: In function âdb_openâ: astdb2sqlite3.c:174: warning: implicit declaration of function âsqlite3_open_v2â astdb2sqlite3.c:174: error: âSQLITE_OPEN_READWRITEâ undeclared (first use in this function) astdb2sqlite3.c:174: error: (Each undeclared identifier is reported only once astdb2sqlite3.c:174: error: for each function it appears in.) astdb2sqlite3.c:174: error: âSQLITE_OPEN_CREATEâ undeclared (first use in this function) astdb2sqlite3.c:174: error: âSQLITE_OPEN_NOMUTEXâ undeclared (first use in this function) make[1]: *** [astdb2sqlite3.o] Error 1 make: *** [utils] Error 2 I've installed and updated sqlite and sqlite-devel 3.3.6 | ||
Comments: | By: Terry Wilson (twilson) 2011-07-07 11:56:20.583-0500 Fixed in r326750. Centos 5 uses a truly ancient version of sqlite3. I replaced the v2 functions with the their older counterparts--ones labeled as "not recommended for new software, but left for backward compatibility" :-p |