On Apr 20, 2009 at 09:57, Juha Heinanen <jh(a)tutpro.com> wrote:
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?
It's because of the #define _XOPEN_SOURCE 600, which has the effect of
removing the definiton of syscall on linux.
I've fixed it for presence_dialoginfo (added #define _BSD_SOURCE 1
after the _XOPEN_SOURCE).
Andrei