Dear Gustaf,

Nice! I've installed it (I had some issues connecting DB but I think is
a problem of my setup).

And, in case it would be useful, this is a complete warnings list in my
setup[1] Sorry if this is not the right medium to send this.

Thanks so much for your support
Cesáreo

----------
[1] List of warnings in
>> uname -v
Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015;
root:xnu-3248.20.55~2/RELEASE_X86_64


----- tclExecute.c, same error in several lines
/usr/local/src/naviserver/tcl8.5.18/unix/../generic/tclExecute.c
/usr/local/src/naviserver/tcl8.5.18/unix/../generic/tclExecute.c:725:22:
warning: array index -1 is before the beginning of the array
[-Warray-bounds]
    esPtr->tosPtr = &esPtr->stackWords[-1];
                     ^                 ~~
/usr/local/src/naviserver/tcl8.5.18/unix/../generic/tclInt.h:1299:5:
note: array 'stackWords' declared here
    Tcl_Obj *stackWords[1];
    ^
/usr/local/src/naviserver/tcl8.5.18/unix/../generic/tclExecute.c:937:31:
warning: array index -1 is before the beginning of the array
[-Warray-bounds]
        currElems = esPtr->endPtr - &esPtr->stackWords[-1];
                                     ^                 ~~
/usr/local/src/naviserver/tcl8.5.18/unix/../generic/tclInt.h:1299:5:
note: array 'stackWords' declared here
    Tcl_Obj *stackWords[1];
    ^
/usr/local/src/naviserver/tcl8.5.18/unix/../generic/tclExecute.c:938:45:
warning: array index -1 is before the beginning of the array
[-Warray-bounds]
        if (esPtr->markerPtr || (esPtr->tosPtr != &esPtr->stackWords[-1])) {
                                                   ^                 ~~
/usr/local/src/naviserver/tcl8.5.18/unix/../generic/tclInt.h:1299:5:
note: array 'stackWords' declared here
    Tcl_Obj *stackWords[1];
    ^
/usr/local/src/naviserver/tcl8.5.18/unix/../generic/tclExecute.c:950:31:
warning: array index -1 is before the beginning of the array
[-Warray-bounds]
        currElems = esPtr->endPtr - &esPtr->stackWords[-1];
                                     ^                 ~~
/usr/local/src/naviserver/tcl8.5.18/unix/../generic/tclInt.h:1299:5:
note: array 'stackWords' declared here
    Tcl_Obj *stackWords[1];
    ^
/usr/local/src/naviserver/tcl8.5.18/unix/../generic/tclExecute.c:1092:22: 
warning:
array index -1 is before the beginning of the array [-Warray-bounds]
    esPtr->tosPtr = &esPtr->stackWords[-1];
                     ^                 ~~
/usr/local/src/naviserver/tcl8.5.18/unix/../generic/tclInt.h:1299:5:
note: array 'stackWords' declared here
    Tcl_Obj *stackWords[1];
    ^
5 warnings generated.

-----

----------
/usr/local/src/naviserver/tcl8.5.18/unix/../unix/tclUnixInit.c:836:9:
warning: comparison of function 'CFLocaleCopyCurrent' not equal to a
null pointer is always true [-Wtautological-pointer-compare]
    if (CFLocaleCopyCurrent != NULL && CFLocaleGetIdentifier != NULL &&
        ^~~~~~~~~~~~~~~~~~~    ~~~~
/usr/local/src/naviserver/tcl8.5.18/unix/../unix/tclUnixInit.c:836:9:
note: prefix with the address-of operator to silence this warning
    if (CFLocaleCopyCurrent != NULL && CFLocaleGetIdentifier != NULL &&
        ^
        &
/usr/local/src/naviserver/tcl8.5.18/unix/../unix/tclUnixInit.c:836:9:
note: suffix with parentheses to turn this into a function call
    if (CFLocaleCopyCurrent != NULL && CFLocaleGetIdentifier != NULL &&
        ^
                           ()
/usr/local/src/naviserver/tcl8.5.18/unix/../unix/tclUnixInit.c:836:40:
warning: comparison of function 'CFLocaleGetIdentifier' not equal to a
null pointer is always true [-Wtautological-pointer-compare]
    if (CFLocaleCopyCurrent != NULL && CFLocaleGetIdentifier != NULL &&
                                       ^~~~~~~~~~~~~~~~~~~~~    ~~~~
/usr/local/src/naviserver/tcl8.5.18/unix/../unix/tclUnixInit.c:836:40:
note: prefix with the address-of operator to silence this warning
    if (CFLocaleCopyCurrent != NULL && CFLocaleGetIdentifier != NULL &&
                                       ^
                                       &
2 warnings generated.

--------

--------
/usr/local/src/naviserver/tcl8.5.18/unix/../unix/tclLoadDyld.c:386:17:
warning: 'NSLookupSymbolInImage' is deprecated: first deprecated in OS X
10.5 [-Wdeprecated-declarations]
            nsSymbol = NSLookupSymbolInImage(dyldLoadHandle->dyldLibHeader,
                       ^
/usr/include/mach-o/dyld.h:175:17: note: 'NSLookupSymbolInImage' has
been explicitly marked deprecated here
extern NSSymbol NSLookupSymbolInImage(const struct mach_header* image,
const char* symbolName, uint32_t options)
__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1,__MAC_10_5,__IPHONE_NA,__IPHONE_NA);
                ^
/usr/local/src/naviserver/tcl8.5.18/unix/../unix/tclLoadDyld.c:419:3:
warning: 'NSLinkEditError' is deprecated: first deprecated in OS X 10.5
[-Wdeprecated-declarations]
                NSLinkEditError(&editError, &errorNumber, &errorName,
&errMsg);
                ^
/usr/include/mach-o/dyld.h:210:13: note: 'NSLinkEditError' has been
explicitly marked deprecated here
extern void NSLinkEditError(NSLinkEditErrors *c, int *errorNumber, const
char** fileName, const char** errorString)
__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1,__MAC_10_5,__IPHONE_NA,__IPHONE_NA);
            ^
/usr/local/src/naviserver/tcl8.5.18/unix/../unix/tclLoadDyld.c:423:17:
warning: 'NSLookupSymbolInModule' is deprecated: first deprecated in OS
X 10.5 [-Wdeprecated-declarations]
            nsSymbol = NSLookupSymbolInModule(
                       ^
/usr/include/mach-o/dyld.h:174:17: note: 'NSLookupSymbolInModule' has
been explicitly marked deprecated here
extern NSSymbol NSLookupSymbolInModule(NSModule module, const char*
symbolName)
__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1,__MAC_10_5,__IPHONE_NA,__IPHONE_NA);
                ^
/usr/local/src/naviserver/tcl8.5.18/unix/../unix/tclLoadDyld.c:432:13:
warning: 'NSAddressOfSymbol' is deprecated: first deprecated in OS X
10.5 [-Wdeprecated-declarations]
            proc = NSAddressOfSymbol(nsSymbol);
                   ^
/usr/include/mach-o/dyld.h:181:21: note: 'NSAddressOfSymbol' has been
explicitly marked deprecated here
extern void *       NSAddressOfSymbol(NSSymbol symbol)
__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1,__MAC_10_5,__IPHONE_NA,__IPHONE_NA);
                    ^
/usr/local/src/naviserver/tcl8.5.18/unix/../unix/tclLoadDyld.c:497:15:
warning: 'NSUnLinkModule' is deprecated: first deprecated in OS X 10.5
[-Wdeprecated-declarations]
            result = NSUnLinkModule(modulePtr->module,
                     ^
/usr/include/mach-o/dyld.h:162:13: note: 'NSUnLinkModule' has been
explicitly marked deprecated here
extern bool NSUnLinkModule(NSModule module, uint32_t options)
__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1,__MAC_10_5,__IPHONE_NA,__IPHONE_NA);
            ^
/usr/local/src/naviserver/tcl8.5.18/unix/../unix/tclLoadDyld.c:701:12:
warning: 'NSCreateObjectFileImageFromMemory' is deprecated: first
deprecated in OS X 10.5 [-Wdeprecated-declarations]
            err = NSCreateObjectFileImageFromMemory(buffer, codeSize,
                  ^
/usr/include/mach-o/dyld.h:139:36: note:
'NSCreateObjectFileImageFromMemory' has been explicitly marked
deprecated here
extern NSObjectFileImageReturnCode
NSCreateObjectFileImageFromMemory(const void *address, size_t size,
NSObjectFileImage *objectFileImage)
__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1,__MAC_10_5,__IPHONE_NA,__IPHONE_NA);
                                   ^
/usr/local/src/naviserver/tcl8.5.18/unix/../unix/tclLoadDyld.c:734:14:
warning: 'NSLinkModule' is deprecated: first deprecated in OS X 10.5
[-Wdeprecated-declarations]
    module = NSLinkModule(dyldObjFileImage, "[Memory Based Bundle]",
             ^
/usr/include/mach-o/dyld.h:154:17: note: 'NSLinkModule' has been
explicitly marked deprecated here
extern NSModule NSLinkModule(NSObjectFileImage objectFileImage, const
char* moduleName, uint32_t options)
__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1,__MAC_10_5,__IPHONE_NA,__IPHONE_NA);
                ^
/usr/local/src/naviserver/tcl8.5.18/unix/../unix/tclLoadDyld.c:736:5:
warning: 'NSDestroyObjectFileImage' is deprecated: first deprecated in
OS X 10.5 [-Wdeprecated-declarations]
    NSDestroyObjectFileImage(dyldObjFileImage);
    ^
/usr/include/mach-o/dyld.h:140:36: note: 'NSDestroyObjectFileImage' has
been explicitly marked deprecated here
extern bool
NSDestroyObjectFileImage(NSObjectFileImage objectFileImage)

__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1,__MAC_10_5,__IPHONE_NA,__IPHONE_NA);
                                   ^
/usr/local/src/naviserver/tcl8.5.18/unix/../unix/tclLoadDyld.c:744:2:
warning: 'NSLinkEditError' is deprecated: first deprecated in OS X 10.5
[-Wdeprecated-declarations]
        NSLinkEditError(&editError, &errorNumber, &errorName, &errMsg);
        ^
/usr/include/mach-o/dyld.h:210:13: note: 'NSLinkEditError' has been
explicitly marked deprecated here
extern void NSLinkEditError(NSLinkEditErrors *c, int *errorNumber, const
char** fileName, const char** errorString)
__OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1,__MAC_10_5,__IPHONE_NA,__IPHONE_NA);
            ^
9 warnings generated.
-----------

-----------
In file included from ./generic/nsf.c:988:
/usr/local/src/naviserver/nsf2.0.0/generic/nsfStack.c:293:10: warning:
nonnull parameter 'framePtr' will evaluate to 'true' on first encounter
[-Wpointer-bool-conversion]
  for (; framePtr; framePtr = Tcl_CallFrame_callerPtr(framePtr)) {
  ~~~    ^~~~~~~~
/usr/local/src/naviserver/nsf2.0.0/generic/nsfStack.c:330:10: warning:
nonnull parameter 'framePtr' will evaluate to 'true' on first encounter
[-Wpointer-bool-conversion]
  for (; framePtr; framePtr = Tcl_CallFrame_callerPtr(framePtr)) {
  ~~~    ^~~~~~~~
./generic/nsf.c:1135:7: warning: nonnull parameter 'clientData' will
evaluate to 'true' on first encounter [-Wpointer-bool-conversion]
  if (clientData && NsfObjectIsClass((NsfObject *)clientData)) {
      ^~~~~~~~~~ ~~
./generic/nsf.c:1637:11: warning: nonnull parameter 'objectPtr' will
evaluate to 'true' on first encounter [-Wpointer-bool-conversion]
      if (objectPtr) *objectPtr = object;
      ~~  ^~~~~~~~~
./generic/nsf.c:1662:9: warning: nonnull parameter 'objectPtr' will
evaluate to 'true' on first encounter [-Wpointer-bool-conversion]
    if (objectPtr) {*objectPtr = object;}
    ~~  ^~~~~~~~~
./generic/nsf.c:2981:10: warning: nonnull parameter 'clPtr' will
evaluate to 'true' on first encounter [-Wpointer-bool-conversion]
  for (; clPtr; clPtr = clPtr->nextPtr) {
  ~~~    ^~~~~
./generic/nsf.c:3604:10: warning: nonnull parameter 'pl' will evaluate
to 'true' on first encounter [-Wpointer-bool-conversion]
  for (; pl;  pl = pl->nextPtr) {
  ~~~    ^~
./generic/nsf.c:3625:10: warning: nonnull parameter 'pl' will evaluate
to 'true' on first encounter [-Wpointer-bool-conversion]
  for (; pl;  pl = pl->nextPtr) {
  ~~~    ^~
./generic/nsf.c:6901:10: warning: nonnull parameter 'l' will evaluate to
'true' on first encounter [-Wpointer-bool-conversion]
  for (; l; l = l->nextPtr) {
  ~~~    ^
./generic/nsf.c:6971:10: warning: nonnull parameter 'list' will evaluate
to 'true' on first encounter [-Wpointer-bool-conversion]
  while (list) {
  ~~~~~  ^~~~
./generic/nsf.c:7885:11: warning: nonnull parameter 'cmdl' will evaluate
to 'true' on first encounter [-Wpointer-bool-conversion]
  for ( ; cmdl; cmdl = cmdl->nextPtr) {
  ~~~     ^~~~
./generic/nsf.c:8500:11: warning: nonnull parameter 'cmdlist' will
evaluate to 'true' on first encounter [-Wpointer-bool-conversion]
  for ( ; cmdlist; cmdlist = cmdlist->nextPtr) {
  ~~~     ^~~~~~~
./generic/nsf.c:19977:42: warning: absolute value function 'abs' given
an argument of type 'long' but has parameter of type 'int' which may
cause truncation of value [-Wabsolute-value]
    if (ForwardArgString == remainder || abs(pos) > totalargs) {
                                         ^
./generic/nsf.c:19977:42: note: use function 'labs' instead
    if (ForwardArgString == remainder || abs(pos) > totalargs) {
                                         ^~~
                                         labs
./generic/nsf.c:28186:7: warning: nonnull parameter 'object' will
evaluate to 'true' on first encounter [-Wpointer-bool-conversion]
  if (object && (object->filterStack || object->mixinStack)) {
      ^~~~~~ ~~
./generic/nsf.c:29671:10: warning: nonnull parameter 'subClasses' will
evaluate to 'true' on first encounter [-Wpointer-bool-conversion]
  for (; subClasses; subClasses = subClasses->nextPtr) {
  ~~~    ^~~~~~~~~~
15 warnings generated.
----------

----------
./generic/nsfUtil.c:120:7: warning: nonnull parameter 'len' will
evaluate to 'true' on first encounter [-Wpointer-bool-conversion]
  if (len) *len = nr_written;
  ~~  ^~~
1 warning generated.
----------

----------
../expat/xmlparse.c:1568:18: warning: implicit conversion from
enumeration type 'enum XML_Status' to different enumeration type 'enum
XML_Error' [-Wenum-conversion]
        result = XML_STATUS_SUSPENDED;
               ~ ^~~~~~~~~~~~~~~~~~~~
../expat/expat.h:51:30: note: expanded from macro 'XML_STATUS_SUSPENDED'
#define XML_STATUS_SUSPENDED XML_STATUS_SUSPENDED
                             ^~~~~~~~~~~~~~~~~~~~
../expat/xmlparse.c:1578:18: warning: implicit conversion from
enumeration type 'enum XML_Status' to different enumeration type 'enum
XML_Error' [-Wenum-conversion]
        result = XML_STATUS_OK;
               ~ ^~~~~~~~~~~~~
../expat/expat.h:49:23: note: expanded from macro 'XML_STATUS_OK'
#define XML_STATUS_OK XML_STATUS_OK
                      ^~~~~~~~~~~~~
../expat/xmlparse.c:1608:12: warning: implicit conversion from
enumeration type 'enum XML_Error' to different enumeration type 'enum
XML_Status' [-Wenum-conversion]
    return result;
    ~~~~~~ ^~~~~~
3 warnings generated.
------------


------------
../generic/domxslt.c:1900:29: warning: equality comparison with
extraneous parentheses [-Wparentheses-equality]
        if ((node->nodeType == ATTRIBUTE_NODE)) {
             ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
../generic/domxslt.c:1900:29: note: remove extraneous parentheses around
the comparison to silence this warning
        if ((node->nodeType == ATTRIBUTE_NODE)) {
            ~               ^                ~
../generic/domxslt.c:1900:29: note: use '=' to turn this equality
comparison into an assignment
        if ((node->nodeType == ATTRIBUTE_NODE)) {
                            ^~
                            =
../generic/domxslt.c:7033:14: warning: address of 'xs->topLevelVars'
will always evaluate to 'true' [-Wpointer-bool-conversion]
    if (&xs->topLevelVars) {
    ~~   ~~~~^~~~~~~~~~~~
2 warnings generated.
-----------

-----------
../generic/tcldom.c:594:21: warning: assigning to 'Tcl_ObjType *' (aka
'struct Tcl_ObjType *') from 'const Tcl_ObjType *' (aka 'const struct
Tcl_ObjType *') discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
    objPtr->typePtr = &tdomNodeType;
                    ^ ~~~~~~~~~~~~~
../generic/tcldom.c:661:28: warning: assigning to 'Tcl_ObjType *' (aka
'struct Tcl_ObjType *') from 'const Tcl_ObjType *' (aka 'const struct
Tcl_ObjType *') discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
        resultObj->typePtr = &tdomNodeType;
                           ^ ~~~~~~~~~~~~~
../generic/tcldom.c:696:24: warning: assigning to 'Tcl_ObjType *' (aka
'struct Tcl_ObjType *') from 'const Tcl_ObjType *' (aka 'const struct
Tcl_ObjType *') discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
    resultObj->typePtr = &tdomNodeType;
                       ^ ~~~~~~~~~~~~~
3 warnings generated.
----------


----------
../generic/tclexpat.c:964:15: warning: implicit declaration of function
'close' is invalid in C99 [-Wimplicit-function-declaration]
              close (fd);
              ^
../generic/tclexpat.c:970:19: warning: implicit declaration of function
'read' is invalid in C99 [-Wimplicit-function-declaration]
          nread = read(fd, fbuf, READ_SIZE);
                  ^
2 warnings generated.
----------







El 17/enero/16 a las 13:53, Gustaf Neumann escribió:
> Dear Cesáreo,
> 
> You are right. There is a problem which shows up depending
> on the used compilers. The conflict of prototypes is fixed by [1].
> 
> Since i've fixed also one more probably old issue (setting an
> Ns_Set member from different threads leading to a potential
> race condidtion), we should release a bugfix version soon.
> 
> best regards
> -g
> 
> [1] 
> https://bitbucket.org/naviserver/nsdbpg/commits/8bd4d0a0cc8f3f4a81305dde225b684bfc16d5af
> 
> Am 17.01.16 um 02:24 schrieb Cesáreo García Rodicio:
>> Hi
>>
>> I'm trying to install naviserver (HEAD) in Mac OS X El Capitan[1] and,
>> when installing nsdbpg, I had this error:
>>   tclcmds.c:1041:1: error: conflicting types for 'blob_send_to_stream'
>> (See [2] full log)
>>
>> Any idea?
>>
>> Thanks
>> Cesáreo
>>
>> -----
>> [1] >> uname -v
>> Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015;
>> root:xnu-3248.20.55~2/RELEASE_X86_64
>>
>> [2]
>> ------------------------ Installing Modules/nsdbpg ----------------------
>> Makefile:61: warning: overriding commands for target `cppcheck'
>> /usr/local/naviserver/include/Makefile.module:199: warning: ignoring old
>> commands for target `cppcheck'
>> gcc -I/usr/local/pgsql/include -Os -DNDEBUG -Wall -fno-common -pipe
>> -I/usr/local/naviserver/include -I"/usr/local/naviserver/include"
>> -DHAVE_CONFIG_H    -c -o nsdbpg.o nsdbpg.c
>> gcc -I/usr/local/pgsql/include -Os -DNDEBUG -Wall -fno-common -pipe
>> -I/usr/local/naviserver/include -I"/usr/local/naviserver/include"
>> -DHAVE_CONFIG_H    -c -o tclcmds.o tclcmds.c
>> tclcmds.c:1041:1: error: conflicting types for 'blob_send_to_stream'
>> blob_send_to_stream(Tcl_Interp *interp, Ns_DbHandle *handle, const char
>> *lob_id,
>> ^
>> tclcmds.c:80:12: note: previous declaration is here
>> static int blob_send_to_stream(Tcl_Interp *interp, Ns_DbHandle *handle,
>> const char *lob_id,
>>             ^
>> 1 error generated.
>> make: *** [tclcmds.o] Error 1
>>
> 
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> naviserver-devel mailing list
> naviserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/naviserver-devel
> 

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to