On Thu, 21 Jun 2018, Dennis Clarke wrote:
Running "gmake" I see a few oddball warnings again :

"sqlite3.c", line 20826: warning: implicit function declaration: localtime_r (E_NO_IMPLICIT_DECL_ALLOWED) "sqlite3.c", line 52491: warning: statement not reached (E_STATEMENT_NOT_REACHED)

"shell.c", line 11188: warning: implicit function declaration: strdup (E_NO_IMPLICIT_DECL_ALLOWED)

The strdup() function is also ABI dependent. The Linux manual page ways it is dependent on

_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE >= 500 || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED || /* Since glibc 2.12: */ _POSIX_C_SOURCE
= 200809L

You will need to add a preprocessor definition to your common build options, or use some other compiler mode in order for the header files to produce the prototypes for these two functions.

An Autoconf configure script which uses this macro:

AC_USE_SYSTEM_EXTENSIONS

will likely expose those prototypes.

Solaris has the __EXTENSIONS__ define (e.g. -D__EXTENSIONS__=1) to enable all extensions. Otherwise you could try -D_XOPEN_SOURCE=500 and see if that helps.

Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to