net/libexosip2-legacy build is failing on -current
Daniel Eischen
deischen at freebsd.org
Sat Jun 28 15:41:06 UTC 2014
I'm well into my 2 week quest to update my ports from a Feb 2014
build to now (June). One of the last issues is libexosip2-legacy
failing to build with this:
eXconf.c:1103:6: warning: implicit declaration of function 'timercmp' is invalid in C99 [-Wimplicit-function-declaration]
if (osip_timercmp(&now, &mtimer, <)) {
^
...
eXconf.c:1103:35: error: expected expression
if (osip_timercmp(&now, &mtimer, <)) {
^
...
/usr/local/include/osip2/osip_time.h:59:61: note: expanded from macro 'osip_timercmp'
#define osip_timercmp(tvp, uvp, cmp) timercmp(tvp,uvp,cmp)
This is stopping my upgrade of kde4, since that needs net/kdenetwork4,
which needs net/linphone-base, which needs libexosip2-legacy.
See attached log for more. I'm on -current from Jun 17 svn updated
sources.
FreeBSD 11.0-CURRENT #1 r267580M: Fri Jun 20 11:11:10 EDT 2014 (amd64)
--
DE
-------------- next part --------------
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I/usr/local/include -Wall -Wcast-align -Wchar-subscripts -Wformat -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -DSRV_RECORD -DOSIP_MT -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -D_THREAD_SAFE -pthread -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -MT eXosip.lo -MD -MP -MF .deps/eXosip.Tpo -c eXosip.c -o eXosip.o >/dev/null 2>&1
mv -f .deps/eXosip.Tpo .deps/eXosip.Plo
/bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I/usr/local/include -Wall -Wcast-align -Wchar-subscripts -Wformat -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -DSRV_RECORD -DOSIP_MT -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -D_THREAD_SAFE -pthread -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -MT eXconf.lo -MD -MP -MF .deps/eXconf.Tpo -c -o eXconf.lo eXconf.c
libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I/usr/local/include -Wall -Wcast-align -Wchar-subscripts -Wformat -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -DSRV_RECORD -DOSIP_MT -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -D_THREAD_SAFE -pthread -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -MT eXconf.lo -MD -MP -MF .deps/eXconf.Tpo -c eXconf.c -fPIC -DPIC -o .libs/eXconf.o
cc: warning: argument unused during compilation: '-L/usr/local/lib'
cc: warning: argument unused during compilation: '-L/usr/local/lib'
eXconf.c:85:15: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'
return (0 != strncmp(c_address, "192.168", 7)
^
eXconf.c:85:15: note: please include the header <string.h> or explicitly provide a declaration for 'strncmp'
eXconf.c:108:2: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration]
osip_free(eXosip.user_agent);
^
/usr/local/include/osipparser2/osip_port.h:105:83: note: expanded from macro 'osip_free'
#define osip_free(P) { if (P!=NULL) { if (osip_free_func) osip_free_func(P); else free(P);} }
^
eXconf.c:265:4: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)'
memset(http_auth, 0, sizeof(struct eXosip_http_auth));
^
eXconf.c:265:4: note: please include the header <string.h> or explicitly provide a declaration for 'memset'
eXconf.c:371:6: warning: implicit declaration of function 'close' is invalid in C99 [-Wimplicit-function-declaration]
close(sock);
^
eXconf.c:710:36: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)'
eXosip.j_events = (osip_fifo_t *) osip_malloc(sizeof(osip_fifo_t));
^
/usr/local/include/osipparser2/osip_port.h:99:62: note: expanded from macro 'osip_malloc'
#define osip_malloc(S) (osip_malloc_func?osip_malloc_func(S):malloc(S))
^
eXconf.c:710:36: note: please include the header <stdlib.h> or explicitly provide a declaration for 'malloc'
/usr/local/include/osipparser2/osip_port.h:99:62: note: expanded from macro 'osip_malloc'
#define osip_malloc(S) (osip_malloc_func?osip_malloc_func(S):malloc(S))
^
eXconf.c:924:5: warning: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)'
memcpy(&addr, addrinfo->ai_addr, addrinfo->ai_addrlen);
^
eXconf.c:924:5: note: please include the header <string.h> or explicitly provide a declaration for 'memcpy'
eXconf.c:1103:6: warning: implicit declaration of function 'timercmp' is invalid in C99 [-Wimplicit-function-declaration]
if (osip_timercmp(&now, &mtimer, <)) {
^
/usr/local/include/osip2/osip_time.h:59:41: note: expanded from macro 'osip_timercmp'
#define osip_timercmp(tvp, uvp, cmp) timercmp(tvp,uvp,cmp)
^
eXconf.c:1103:35: error: expected expression
if (osip_timercmp(&now, &mtimer, <)) {
^
/usr/local/include/osip2/osip_time.h:59:58: note: expanded from macro 'osip_timercmp'
#define osip_timercmp(tvp, uvp, cmp) timercmp(tvp,uvp,cmp)
^
eXconf.c:1103:6: error: expected expression
if (osip_timercmp(&now, &mtimer, <)) {
^
/usr/local/include/osip2/osip_time.h:59:61: note: expanded from macro 'osip_timercmp'
#define osip_timercmp(tvp, uvp, cmp) timercmp(tvp,uvp,cmp)
^
7 warnings and 2 errors generated.
*** Error code 1
Stop.
make[3]: stopped in /opt/FreeBSD/current/ports/net/libexosip2-legacy/work/libeXosip2-3.6.0/src
*** Error code 1
More information about the freebsd-ports
mailing list