[Home]

Summary:ASTERISK-14940: [patch] Warnings during configuration
Reporter:Hugh Esco (hesco)Labels:
Date Opened:2009-10-05 12:04:33Date Closed:2010-06-01 13:51:46
Priority:MinorRegression?No
Status:Closed/CompleteComponents:General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 16020.diff
Description:I am prototyping an unattended install, checking out asterisk from svn.  The last few tests I have seen warnings during the `make` which look like those reproduced below.  

*CLI> core show version
Asterisk SVN-trunk-r222030

$ svn info
Path: .
URL: http://svn.digium.com/svn/asterisk/trunk
Repository Root: http://svn.digium.com/svn/asterisk
Repository UUID: f38db490-d61c-443f-a65b-d21fe96a405b
Revision: 222103
Node Kind: directory
Schedule: normal
Last Changed Author: dvossel
Last Changed Rev: 222030
Last Changed Date: 2009-10-02 17:34:07 +0000 (Fri, 02 Oct 2009)


****** ADDITIONAL INFORMATION ******

+ cd asterisk
+ ./configure --with-postgres

real    1m6.009s
user    0m12.553s
sys     0m15.373s
+ make
In file included from config.h:19,
                from readline.c:40:
sys.h:78:1: warning: "strlcpy" redefined
In file included from ../..//include/asterisk.h:27,
                from readline.c:39:
../..//include/asterisk/compat.h:117:1: warning: this is the location of the previous definition
In file included from config.h:19,
                from readline.c:40:
sys.h:83:1: warning: "strlcat" redefined
In file included from ../..//include/asterisk.h:27,
                from readline.c:39:
../..//include/asterisk/compat.h:116:1: warning: this is the location of the previous definition

real    8m45.036s
user    3m22.325s
sys     0m25.022s
+ make samples
+ make install
Comments:By: Leif Madsen (lmadsen) 2009-10-07 08:42:57

What operating system are you running this on? Can you provide any additional information which allows us to reproduce this issue? I can't reproduce it on 1.6.2 with the latest configure script.

Typically you shouldn't need to provide any flags to configure. --with-postgres is typically unnecessary I believe.

By: Elazar Broad (ebroad) 2009-10-09 12:23:47

I am seeing this on my manual builds of trunk as well. Adding an #undef strlcpy and #undef strlcat to sys.h seems to resolve the problem. The issue seems to be that we unconditionally declare strlcat() and strlcpy() in include/asterisk/config.h for Asterisk, however, we need to undef it for editline as it should be using its own built-in functions.



By: Leif Madsen (lmadsen) 2009-10-09 12:27:24

I saw this yesterday as well, so it has definitely been confirmed.

By: Paul Belanger (pabelanger) 2010-06-01 13:51:45

Seems to be fixed

http://svnview.digium.com/svn/asterisk?view=revision&revision=250303