Posted: Tue Jun 29, 2004 6:10 pm Post subject: [Asterisk-bsd] utils.c will not compile
Anyone else having problems compiling util.c with the new ntoa function?
Using latest CVS, it compiles on Linux, but not on FreeBSD
In file included from utils.c:19:
include/asterisk/utils.h:35: warning: `inet_ntoa' redefined
/usr/include/arpa/inet.h:78: warning: this is the location of the previous definition
In file included from utils.c:12:
/usr/include/arpa/inet.h:89: warning: parameter has incomplete type
/usr/include/arpa/inet.h:92: warning: parameter has incomplete type
/usr/include/arpa/inet.h:96: warning: parameter has incomplete type
In file included from utils.c:19:
include/asterisk/utils.h:32: warning: parameter has incomplete type
utils.c:332: parameter `ia' has incomplete type
gmake: *** [utils.o] Error 1
Anyone else having problems compiling util.c with the new ntoa function?
Using latest CVS, it compiles on Linux, but not on FreeBSD
In file included from utils.c:19:
include/asterisk/utils.h:35: warning: `inet_ntoa' redefined
/usr/include/arpa/inet.h:78: warning: this is the location of the previous
definition
In file included from utils.c:12:
/usr/include/arpa/inet.h:89: warning: parameter has incomplete type
/usr/include/arpa/inet.h:92: warning: parameter has incomplete type
/usr/include/arpa/inet.h:96: warning: parameter has incomplete type
In file included from utils.c:19:
include/asterisk/utils.h:32: warning: parameter has incomplete type
utils.c:332: parameter `ia' has incomplete type
gmake: *** [utils.o] Error 1
Anyone else having problems compiling util.c with the new ntoa function?
Using latest CVS, it compiles on Linux, but not on FreeBSD
In file included from utils.c:19:
include/asterisk/utils.h:35: warning: `inet_ntoa' redefined
/usr/include/arpa/inet.h:78: warning: this is the location of the previous
definition
In file included from utils.c:12:
/usr/include/arpa/inet.h:89: warning: parameter has incomplete type
/usr/include/arpa/inet.h:92: warning: parameter has incomplete type
/usr/include/arpa/inet.h:96: warning: parameter has incomplete type
In file included from utils.c:19:
include/asterisk/utils.h:32: warning: parameter has incomplete type
utils.c:332: parameter `ia' has incomplete type
gmake: *** [utils.o] Error 1
Posted: Tue Jun 29, 2004 6:50 pm Post subject: [Asterisk-bsd] utils.c will not compile
Good fix. Still get a lot of these:
In file included from app_festival.c:22:
../include/asterisk/utils.h:32: warning: `struct in_addr' declared inside parameter list
../include/asterisk/utils.h:32: warning: its scope is only this definition or declaration, which is probably not what you want.
../include/asterisk/utils.h:32: warning: parameter has incomplete type
> Here's a fix. I don't see there other warnings with cvs-head, but if
they
> persist, just say so and we can take another look!
Included
+#include <netinet/in.h>
in utils.c and suddenly I compiled. Still get the warnings, so your fix is
good
as well.
Posted: Tue Jun 29, 2004 6:55 pm Post subject: [Asterisk-bsd] utils.c will not compile
Make sure utils.h has #include <netinet/in.h> somewhere in its include
tree.
Chris.
Olle E. Johansson wrote (on Jun 29):
Quote:
Good fix. Still get a lot of these:
In file included from app_festival.c:22:
../include/asterisk/utils.h:32: warning: `struct in_addr' declared inside
parameter list
../include/asterisk/utils.h:32: warning: its scope is only this definition
or declaration, which is probably not what you want.
../include/asterisk/utils.h:32: warning: parameter has incomplete type
Make sure utils.h has #include <netinet/in.h> somewhere in its include
tree.
Chris.
Olle E. Johansson wrote (on Jun 29):
> Good fix. Still get a lot of these:
>
> In file included from app_festival.c:22:
> ../include/asterisk/utils.h:32: warning: `struct in_addr' declared
inside
> parameter list
> ../include/asterisk/utils.h:32: warning: its scope is only this
definition
> or declaration, which is probably not what you want.
> ../include/asterisk/utils.h:32: warning: parameter has incomplete type
>
> Any help?
>
> /O
> _______________________________________________
> Asterisk-BSD mailing list
> Asterisk-BSD@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-bsd
>
--
== chrisy@flirble.org
_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSD@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-bsd
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum