debian:~/openser# make modules modules=modules/presence_xml/ make[1]: Entering directory `/root/openser/modules/presence_xml' Compiling add_events.c gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-loops -ftree-vectorize -mtune=athlon64 -Wold-style-definition -Wmissing-field-initializers -DMOD_NAME='"presence_xml"' -DNAME='"openser"' -DVERSION='"1.3.0-pre1-notls"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 4.2.3"' -D__CPU_i386 -D__OS_linux -D__SMP_yes -DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DDBG_QM_MALLOC -DSVNREVISION='"2:3254"' -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -I/usr/include/libxml2 -I/usr/local/include/libxml2 -I/usr/local/include -c add_events.c -o add_events.o add_events.c:32:19: error: stdio.h: No such file or directory add_events.c:33:20: error: stdlib.h: No such file or directory add_events.c:34:20: error: string.h: No such file or directory add_events.c:35:27: error: libxml/parser.h: No such file or directory In file included from /usr/lib/gcc/i486-linux-gnu/4.2.3/include/syslimits.h:7, from /usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h:11, from ../../parser/../flags.h:28, from ../../parser/msg_parser.h:45, from ../../parser/parse_content.h:26, from add_events.c:36: /usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h:122:61: error: limits.h: No such file or directory In file included from ../../parser/msg_parser.h:46, from ../../parser/parse_content.h:26, from add_events.c:36: ../../parser/../ip_addr.h:33:23: error: sys/types.h: No such file or directory ../../parser/../ip_addr.h:34:24: error: sys/socket.h: No such file or directory ../../parser/../ip_addr.h:35:24: error: netinet/in.h: No such file or directory ../../parser/../ip_addr.h:36:19: error: netdb.h: No such file or directory In file included from ../../parser/../ip_addr.h:40, from ../../parser/msg_parser.h:46, from ../../parser/parse_content.h:26, from add_events.c:36: ../../parser/../dprint.h:28:20: error: syslog.h: No such file or directory ../../parser/../dprint.h:29:18: error: time.h: No such file or directory In file included from ../../parser/../ip_addr.h:40, from ../../parser/msg_parser.h:46, from ../../parser/parse_content.h:26, from add_events.c:36: ../../parser/../dprint.h: In function dp_time: ../../parser/../dprint.h:97: error: time_t undeclared (first use in this function) ../../parser/../dprint.h:97: error: (Each undeclared identifier is reported only once ../../parser/../dprint.h:97: error: for each function it appears in.) ../../parser/../dprint.h:97: error: expected ; before ltime ../../parser/../dprint.h:99: warning: implicit declaration of function time ../../parser/../dprint.h:99: error: ltime undeclared (first use in this function) ../../parser/../dprint.h:100: warning: implicit declaration of function ctime_r In file included from ../../parser/msg_parser.h:46, from ../../parser/parse_content.h:26, from add_events.c:36: ../../parser/../ip_addr.h: At top level: ../../parser/../ip_addr.h:69: error: field s has incomplete type ../../parser/../ip_addr.h:70: error: field sin has incomplete type ../../parser/../ip_addr.h:72: error: field sin6 has incomplete type ../../parser/../ip_addr.h: In function sockaddr2ip_addr: ../../parser/../ip_addr.h:206: error: dereferencing pointer to incomplete type ../../parser/../ip_addr.h:207: error: AF_INET undeclared (first use in this function) ../../parser/../ip_addr.h:210: warning: implicit declaration of function memcpy ../../parser/../ip_addr.h:210: warning: incompatible implicit declaration of built-in function memcpy ../../parser/../ip_addr.h:210: error: dereferencing pointer to incomplete type ../../parser/../ip_addr.h:213: error: AF_INET6 undeclared (first use in this function) ../../parser/../ip_addr.h:216: error: dereferencing pointer to incomplete type ../../parser/../ip_addr.h:220: error: dereferencing pointer to incomplete type ../../parser/../ip_addr.h:220: warning: implicit declaration of function syslog ../../parser/../ip_addr.h:220: error: LOG_CRIT undeclared (first use in this function) ../../parser/../ip_addr.h:220: error: dereferencing pointer to incomplete type ../../parser/../ip_addr.h: In function su_cmp: ../../parser/../ip_addr.h:238: error: AF_INET undeclared (first use in this function) ../../parser/../ip_addr.h:240: warning: implicit declaration of function memcmp ../../parser/../ip_addr.h:242: error: AF_INET6 undeclared (first use in this function) ../../parser/../ip_addr.h:247: error: LOG_CRIT undeclared (first use in this function) ../../parser/../ip_addr.h: In function su_getport: ../../parser/../ip_addr.h:262: error: AF_INET undeclared (first use in this function) ../../parser/../ip_addr.h:263: warning: implicit declaration of function ntohs ../../parser/../ip_addr.h:265: error: AF_INET6 undeclared (first use in this function) ../../parser/../ip_addr.h:269: error: LOG_CRIT undeclared (first use in this function) ../../parser/../ip_addr.h: In function su_setport: ../../parser/../ip_addr.h:280: error: AF_INET undeclared (first use in this function) ../../parser/../ip_addr.h:281: warning: implicit declaration of function htons ../../parser/../ip_addr.h:284: error: AF_INET6 undeclared (first use in this function) ../../parser/../ip_addr.h:289: error: LOG_CRIT undeclared (first use in this function) ../../parser/../ip_addr.h: In function su2ip_addr: ../../parser/../ip_addr.h:299: error: AF_INET undeclared (first use in this function) ../../parser/../ip_addr.h:302: warning: incompatible implicit declaration of built-in function memcpy ../../parser/../ip_addr.h:305: error: AF_INET6 undeclared (first use in this function) ../../parser/../ip_addr.h:312: error: LOG_CRIT undeclared (first use in this function) ../../parser/../ip_addr.h: In function init_su: ../../parser/../ip_addr.h:327: warning: implicit declaration of function memset ../../parser/../ip_addr.h:327: warning: incompatible implicit declaration of built-in function memset ../../parser/../ip_addr.h:331: error: AF_INET6 undeclared (first use in this function) ../../parser/../ip_addr.h:332: warning: incompatible implicit declaration of built-in function memcpy ../../parser/../ip_addr.h:339: error: AF_INET undeclared (first use in this function) ../../parser/../ip_addr.h:347: error: LOG_CRIT undeclared (first use in this function) ../../parser/../ip_addr.h: At top level: ../../parser/../ip_addr.h:362: warning: struct hostent declared inside parameter list ../../parser/../ip_addr.h:362: warning: its scope is only this definition or declaration, which is probably not what you want ../../parser/../ip_addr.h: In function hostent2su: ../../parser/../ip_addr.h:364: warning: incompatible implicit declaration of built-in function memset ../../parser/../ip_addr.h:365: error: dereferencing pointer to incomplete type ../../parser/../ip_addr.h:366: error: dereferencing pointer to incomplete type ../../parser/../ip_addr.h:368: error: AF_INET6 undeclared (first use in this function) ../../parser/../ip_addr.h:369: warning: incompatible implicit declaration of built-in function memcpy ../../parser/../ip_addr.h:369: error: dereferencing pointer to incomplete type ../../parser/../ip_addr.h:369: error: dereferencing pointer to incomplete type ../../parser/../ip_addr.h:376: error: AF_INET undeclared (first use in this function) ../../parser/../ip_addr.h:377: error: dereferencing pointer to incomplete type ../../parser/../ip_addr.h:377: error: dereferencing pointer to incomplete type ../../parser/../ip_addr.h:384: error: dereferencing pointer to incomplete type ../../parser/../ip_addr.h:384: error: LOG_CRIT undeclared (first use in this function) ../../parser/../ip_addr.h:384: error: dereferencing pointer to incomplete type ../../parser/../ip_addr.h: In function ip_addr2a: ../../parser/../ip_addr.h:412: error: AF_INET6 undeclared (first use in this function) ../../parser/../ip_addr.h:470: error: AF_INET undeclared (first use in this function) ../../parser/../ip_addr.h:512: error: LOG_CRIT undeclared (first use in this function) ../../parser/../ip_addr.h: In function ip_addr2he: ../../parser/../ip_addr.h:525: error: storage size of he isnt known ../../parser/../ip_addr.h:536: warning: implicit declaration of function strncpy ../../parser/../ip_addr.h:536: warning: incompatible implicit declaration of built-in function strncpy ../../parser/../ip_addr.h:539: warning: incompatible implicit declaration of built-in function memcpy ../../parser/../ip_addr.h:525: warning: unused variable he In file included from ../../parser/parse_content.h:26, from add_events.c:36: ../../parser/msg_parser.h: In function char_msg_val: ../../parser/msg_parser.h:300: error: LOG_ERR undeclared (first use in this function) ../../parser/msg_parser.h:301: warning: incompatible implicit declaration of built-in function memset ../../parser/msg_parser.h: In function get_body: ../../parser/msg_parser.h:337: warning: implicit declaration of function strncmp In file included from add_events.c:38: ../../ut.h:42:22: error: sys/time.h: No such file or directory ../../ut.h:44:20: error: unistd.h: No such file or directory ../../ut.h:45:19: error: ctype.h: No such file or directory In file included from ../../ut.h:52, from add_events.c:38: ../../mem/shm_mem.h:39:19: error: errno.h: No such file or directory ../../mem/shm_mem.h:41:21: error: sys/ipc.h: No such file or directory ../../mem/shm_mem.h:49:21: error: sys/sem.h: No such file or directory In file included from ../../mem/../lock_ops.h:68, from ../../mem/shm_mem.h:68, from ../../ut.h:52, from add_events.c:38: ../../mem/../fastlock.h:44:19: error: sched.h: No such file or directory In file included from ../../mem/../lock_ops.h:68, from ../../mem/shm_mem.h:68, from ../../ut.h:52, from add_events.c:38: ../../mem/../fastlock.h: In function get_lock: ../../mem/../fastlock.h:166: warning: implicit declaration of function sched_yield In file included from add_events.c:38: ../../ut.h: In function str2s: ../../ut.h:130: error: LOG_DEBUG undeclared (first use in this function) ../../ut.h: In function int2bstr: ../../ut.h:172: error: LOG_CRIT undeclared (first use in this function) ../../ut.h: In function sleep_us: ../../ut.h:311: error: storage size of tval isnt known ../../ut.h:314: warning: implicit declaration of function select ../../ut.h:314: error: NULL undeclared (first use in this function) ../../ut.h:311: warning: unused variable tval ../../ut.h: In function pathmax: ../../ut.h:327: warning: implicit declaration of function pathconf ../../ut.h:327: error: _PC_PATH_MAX undeclared (first use in this function) ../../ut.h: In function hex2int: ../../ut.h:342: error: LOG_ERR undeclared (first use in this function) ../../ut.h: In function un_escape: ../../ut.h:365: error: LOG_CRIT undeclared (first use in this function) ../../ut.h:375: error: LOG_ERR undeclared (first use in this function) ../../ut.h: In function strlower: ../../ut.h:424: warning: implicit declaration of function tolower ../../ut.h: In function shm_str_dup: ../../ut.h:498: error: LOG_ERR undeclared (first use in this function) ../../ut.h:502: warning: incompatible implicit declaration of built-in function memcpy ../../ut.h: In function pkg_str_dup: ../../ut.h:513: error: NULL undeclared (first use in this function) ../../ut.h:515: error: LOG_ERR undeclared (first use in this function) ../../ut.h:519: warning: incompatible implicit declaration of built-in function memcpy ../../ut.h: In function str_strcmp: ../../ut.h:530: error: NULL undeclared (first use in this function) ../../ut.h:532: error: LOG_ERR undeclared (first use in this function) ../../ut.h: In function str_strcasecmp: ../../ut.h:561: error: NULL undeclared (first use in this function) ../../ut.h:563: error: LOG_ERR undeclared (first use in this function) In file included from ../presence/../../db/db.h:40, from ../presence/subscribe.h:34, from xcap_auth.h:33, from add_events.c:39: ../presence/../../db/db_val.h: At top level: ../presence/../../db/db_val.h:56: error: expected specifier-qualifier-list before time_t In file included from ../presence/../../parser/parse_event.h:35, from ../presence/event_list.h:33, from ../presence/subscribe.h:38, from xcap_auth.h:33, from add_events.c:39: ../presence/../../parser/parse_param.h:140: error: expected ) before * token In file included from add_events.c:39: xcap_auth.h:38: error: expected =, ,, ;, asm or __attribute__ before get_rule_node In file included from ../sl/sl_api.h:27, from presence_xml.h:33, from add_events.c:42: ../sl/../../sr_module.h:42:19: error: dlfcn.h: No such file or directory In file included from ../sl/../../sr_module.h:49, from ../sl/sl_api.h:27, from presence_xml.h:33, from add_events.c:42: ../sl/../../route.h:28:19: error: regex.h: No such file or directory In file included from presence_xml.h:33, from add_events.c:42: ../sl/sl_api.h: In function load_sl_api: ../sl/sl_api.h:50: error: LOG_ERR undeclared (first use in this function) add_events.c: In function xml_add_events: add_events.c:52: warning: incompatible implicit declaration of built-in function memset add_events.c:70: error: LOG_ERR undeclared (first use in this function) add_events.c: In function xml_publ_handl: add_events.c:117: error: xmlDocPtr undeclared (first use in this function) add_events.c:117: error: expected ; before doc add_events.c:123: error: NULL undeclared (first use in this function) add_events.c:125: error: LOG_ERR undeclared (first use in this function) add_events.c:131: error: doc undeclared (first use in this function) add_events.c:131: warning: implicit declaration of function xmlParseMemory add_events.c:141: warning: implicit declaration of function xmlFreeDoc add_events.c:142: warning: implicit declaration of function xmlCleanupParser add_events.c:143: warning: implicit declaration of function xmlMemoryDump make[1]: *** [add_events.o] Error 1 make[1]: Leaving directory `/ro