i tried to move presence modules to modules directory, but got this kind
of error message a few times:
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -minline-all-stringops -falign-loops -ftree-vectorize -mtune=athlon64 -Wall -DNAME='"ser"' -DVERSION='"2.1.0-dev23-make"' -DARCH='"i386"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.3.2"' -D__CPU_i386 -D__OS_linux -DSER_VER=2001000 -DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DDBG_QM_MALLOC -DUSE_TLS -DTLS_HOOKS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -DUSE_SCTP -I/usr/include/libxml2 -I/usr/local/include/libxml2 -I/usr/local/include -DOPENSER_MOD_INTERFACE -DMOD_NAME='"presence_dialoginfo"' -c pidf.c -o pidf.o
In file included from ../../parser/../mem/../lock_ops.h:85,
from ../../parser/../mem/shm_mem.h:76,
from ../../parser/../ut.h:67,
from ../../parser/../ip_addr.h:49,
from ../../parser/msg_parser.h:57,
from ../../sr_module.h:63,
from pidf.c:54:
../../parser/../mem/../futexlock.h: In function ??futex_get??:
../../parser/../mem/../futexlock.h:94: warning: implicit declaration of function ??syscall??
any idea how to make the declaration explicit?
-- juha
Module: sip-router
Branch: master
Commit: aa416e89057be4112fe0ba40aa24c14e9a5d9f82
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=aa416e8…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Mon Apr 20 10:47:34 2009 +0200
presence_dialoginfo(k): futex warning fix
- added _BSD_SOURCE define if _XOPEN_SOURCE is manually defined
(the _XOPEN_SOURCE define in pidf.c caused _BSD_SOURCE to be no
longer defined in features.h => _USE_MISC not defined =>
syscall() not declared in unistd.h.)
---
modules_k/presence_dialoginfo/pidf.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules_k/presence_dialoginfo/pidf.c b/modules_k/presence_dialoginfo/pidf.c
index e2b3222..9285d2b 100644
--- a/modules_k/presence_dialoginfo/pidf.c
+++ b/modules_k/presence_dialoginfo/pidf.c
@@ -38,6 +38,9 @@
*/
#ifndef __OS_solaris
#define _XOPEN_SOURCE 600 /* glibc2 on linux, bsd */
+ #define _BSD_SOURCE 1 /* needed on linux to "fix" the effect
+ of the above define on
+ features.h/unistd.h syscall() */
#else
#define _XOPEN_SOURCE_EXTENDED 1 /* solaris */
#endif