Hello !
I try to compile module "mi_xmlrpc".
First error was : Unable to find "xmlrpc-c/abyss.h" file and
"xmlrpc-c/config.h" when compile file "abyss_conf.c"
So, I create a sub sirectory named "xmlrpc-c" in "/usr/includes" and put those
2 files.
But I still have compilation error (check joined file)...
Any help would be appreciated J
Serge BERNEY
Kin SA
Knowledge Integrated Networks
Rue du Bois-du-Lan 8
Case Postale 221
1217 Meyrin 1
Tél: +41 22 989 0 999
Fax: +41 22 989 0 998
[email protected] <mailto:[email protected]>
www.kinonline.net <http://www.kinonline.net/>
Compiling abyss_conf.c
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops
-falign-loops -ftree-vectorize -mtune=prescott -Wold-style-definition
-Wmissing-field-initializers -Wredundant-decls -DMOD_NAME='"mi_xmlrpc"'
-DNAME='"opensips"' -DVERSION='"1.5.0-notls"' -DARCH='"i386"' -DOS='"linux"'
-DCOMPILER='"gcc 4.1.2"' -D__CPU_i386 -D__OS_linux -D__SMP_yes
-DCFG_DIR='"//etc/opensips/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DUSE_IPV6
-DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DSTATISTICS
-DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC -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/local/include -I/usr/local/include/xmlrpc-c -I/usr/include/xmlrpc-c
-D_UNIX -D_UNIX -c abyss_conf.c -o abyss_conf.o
In file included from abyss_conf.c:49:
/usr/include/xmlrpc-c/abyss.h:142: error: conflicting types for âboolâ
abyss_xmlrpc_int.h:49: error: previous declaration of âboolâ was here
In file included from abyss_conf.c:50:
abyss_trace.h:5: error: conflicting types for âTraceMsgâ
/usr/include/xmlrpc-c/abyss.h:685: error: previous declaration of
âTraceMsgâ was here
abyss_trace.h:8: error: conflicting types for âTraceExitâ
/usr/include/xmlrpc-c/abyss.h:686: error: previous declaration of
âTraceExitâ was here
In file included from abyss_server.h:8,
from abyss_conf.c:51:
abyss_file.h:67: error: redefinition of âstruct finddata_tâ
abyss_file.h:77: error: conflicting types for âTFileFindâ
/usr/include/xmlrpc-c/abyss.h:433: error: previous declaration of
âTFileFindâ was here
abyss_file.h:84: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âFileOpenâ
abyss_file.h:89: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âFileOpenCreateâ
abyss_file.h:94: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âFileCloseâ
abyss_file.h:97: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âFileWriteâ
abyss_file.h:104: warning: redundant redeclaration of âFileReadâ
/usr/include/xmlrpc-c/abyss.h:444: warning: previous declaration of
âFileReadâ was here
abyss_file.h:107: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âFileSeekâ
abyss_file.h:112: error: conflicting types for âFileSizeâ
/usr/include/xmlrpc-c/abyss.h:447: error: previous declaration of
âFileSizeâ was here
abyss_file.h:115: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âFileStatâ
abyss_file.h:119: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âFileFindFirstâ
abyss_file.h:124: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âFileFindNextâ
abyss_file.h:128: error: conflicting types for âFileFindCloseâ
/usr/include/xmlrpc-c/abyss.h:453: error: previous declaration of
âFileFindCloseâ was here
In file included from abyss_data.h:4,
from abyss_server.h:9,
from abyss_conf.c:51:
abyss_thread.h:8: error: conflicting types for âTThreadâ
/usr/include/xmlrpc-c/abyss.h:237: error: previous declaration of âTThreadâ
was here
abyss_thread.h:13: error: conflicting types for âTThreadProcâ
/usr/include/xmlrpc-c/abyss.h:233: error: previous declaration of
âTThreadProcâ was here
abyss_thread.h:21: error: expected declaration specifiers or â...â before
âabyss_boolâ
abyss_thread.h:22: error: conflicting types for âThreadCreateâ
/usr/include/xmlrpc-c/abyss.h:241: error: previous declaration of
âThreadCreateâ was here
abyss_thread.h:25: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âThreadRunâ
abyss_thread.h:28: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âThreadStopâ
abyss_thread.h:31: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âThreadKillâ
abyss_thread.h:37: error: conflicting types for âThreadExitâ
/usr/include/xmlrpc-c/abyss.h:246: error: previous declaration of
âThreadExitâ was here
abyss_thread.h:43: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âThreadForksâ
abyss_thread.h:64: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âMutexCreateâ
abyss_thread.h:65: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âMutexLockâ
abyss_thread.h:66: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âMutexUnlockâ
abyss_thread.h:67: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âMutexTryLockâ
abyss_thread.h:68: warning: redundant redeclaration of âMutexFreeâ
/usr/include/xmlrpc-c/abyss.h:263: warning: previous declaration of
âMutexFreeâ was here
In file included from abyss_server.h:9,
from abyss_conf.c:51:
abyss_data.h:14: error: expected specifier-qualifier-list before
âabyss_boolâ
abyss_data.h:15: error: conflicting types for âTListâ
/usr/include/xmlrpc-c/abyss.h:187: error: previous declaration of âTListâ
was here
abyss_data.h:18: error: conflicting types for âListInitâ
/usr/include/xmlrpc-c/abyss.h:189: error: previous declaration of
âListInitâ was here
abyss_data.h:21: error: conflicting types for âListInitAutoFreeâ
/usr/include/xmlrpc-c/abyss.h:190: error: previous declaration of
âListInitAutoFreeâ was here
abyss_data.h:24: error: conflicting types for âListFreeâ
/usr/include/xmlrpc-c/abyss.h:191: error: previous declaration of
âListFreeâ was here
abyss_data.h:30: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âListAddâ
abyss_data.h:37: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âListAddFromStringâ
abyss_data.h:41: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âListFindStringâ
abyss_data.h:50: error: conflicting types for âTTableItemâ
/usr/include/xmlrpc-c/abyss.h:205: error: previous declaration of
âTTableItemâ was here
abyss_data.h:56: error: conflicting types for âTTableâ
/usr/include/xmlrpc-c/abyss.h:211: error: previous declaration of âTTableâ
was here
abyss_data.h:59: error: conflicting types for âTableInitâ
/usr/include/xmlrpc-c/abyss.h:213: error: previous declaration of
âTableInitâ was here
abyss_data.h:62: error: conflicting types for âTableFreeâ
/usr/include/xmlrpc-c/abyss.h:214: error: previous declaration of
âTableFreeâ was here
abyss_data.h:65: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âTableAddâ
abyss_data.h:70: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âTableAddReplaceâ
abyss_data.h:75: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âTableFindIndexâ
abyss_data.h:81: error: conflicting types for âTableFindâ
/usr/include/xmlrpc-c/abyss.h:218: error: previous declaration of
âTableFindâ was here
abyss_data.h:88: error: redefinition of âstruct _TPoolZoneâ
abyss_data.h:102: error: conflicting types for âTPoolâ
/usr/include/xmlrpc-c/abyss.h:283: error: previous declaration of âTPoolâ
was here
abyss_data.h:105: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âPoolCreateâ
abyss_data.h:109: error: conflicting types for âPoolFreeâ
/usr/include/xmlrpc-c/abyss.h:286: error: previous declaration of
âPoolFreeâ was here
abyss_data.h:113: error: conflicting types for âPoolAllocâ
/usr/include/xmlrpc-c/abyss.h:288: error: previous declaration of
âPoolAllocâ was here
abyss_data.h:121: error: conflicting types for âPoolStrdupâ
/usr/include/xmlrpc-c/abyss.h:289: error: previous declaration of
âPoolStrdupâ was here
In file included from abyss_conf.c:51:
abyss_server.h:14: error: expected specifier-qualifier-list before
âabyss_boolâ
In file included from abyss_conn.h:5,
from abyss_http.h:4,
from abyss_conf.c:52:
abyss_socket.h:22: error: expected declaration specifiers or â...â before
âabyss_boolâ
abyss_socket.h:28: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âSocketConnectImplâ
abyss_socket.h:32: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âSocketBindImplâ
abyss_socket.h:36: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âSocketListenImplâ
abyss_socket.h:40: error: expected declaration specifiers or â...â before
âabyss_boolâ
abyss_socket.h:41: error: expected declaration specifiers or â...â before
âabyss_boolâ
abyss_socket.h:48: error: expected declaration specifiers or â...â before
âabyss_boolâ
abyss_socket.h:49: error: expected declaration specifiers or â...â before
âabyss_boolâ
abyss_socket.h:57: error: expected declaration specifiers or â...â before
âabyss_boolâ
abyss_socket.h:63: error: expected specifier-qualifier-list before
âSocketConnectImplâ
abyss_socket.h:86: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âSocketTraceIsActiveâ
abyss_socket.h:89: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âSocketInitâ
abyss_socket.h:97: error: conflicting types for âSocketCreateâ
/usr/include/xmlrpc-c/abyss.h:336: error: previous declaration of
âSocketCreateâ was here
abyss_socket.h:103: error: expected declaration specifiers or â...â before
âabyss_boolâ
abyss_socket.h:103: error: conflicting types for âSocketWriteâ
/usr/include/xmlrpc-c/abyss.h:339: error: previous declaration of
âSocketWriteâ was here
abyss_socket.h:108: error: conflicting types for âSocketReadâ
/usr/include/xmlrpc-c/abyss.h:340: error: previous declaration of
âSocketReadâ was here
abyss_socket.h:111: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âSocketConnectâ
abyss_socket.h:116: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âSocketBindâ
abyss_socket.h:121: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âSocketListenâ
abyss_socket.h:126: error: expected declaration specifiers or â...â before
âabyss_boolâ
abyss_socket.h:127: error: expected declaration specifiers or â...â before
âabyss_boolâ
abyss_socket.h:129: error: conflicting types for âSocketAcceptâ
/usr/include/xmlrpc-c/abyss.h:347: error: previous declaration of
âSocketAcceptâ was here
abyss_socket.h:133: error: expected declaration specifiers or â...â before
âabyss_boolâ
abyss_socket.h:134: error: expected declaration specifiers or â...â before
âabyss_boolâ
abyss_socket.h:135: error: conflicting types for âSocketWaitâ
/usr/include/xmlrpc-c/abyss.h:351: error: previous declaration of
âSocketWaitâ was here
abyss_socket.h:138: warning: redundant redeclaration of
âSocketAvailableReadBytesâ
/usr/include/xmlrpc-c/abyss.h:354: warning: previous declaration of
âSocketAvailableReadBytesâ was here
abyss_socket.h:144: error: expected declaration specifiers or â...â before
âabyss_boolâ
abyss_socket.h:147: warning: redundant redeclaration of âSocketErrorâ
/usr/include/xmlrpc-c/abyss.h:349: warning: previous declaration of
âSocketErrorâ was here
In file included from abyss_http.h:4,
from abyss_conf.c:52:
abyss_conn.h:10: error: redefinition of âstruct _TConnâ
abyss_conn.h:27: error: expected specifier-qualifier-list before
âabyss_boolâ
abyss_conn.h:47: warning: redundant redeclaration of âConnAllocâ
/usr/include/xmlrpc-c/abyss.h:500: warning: previous declaration of
âConnAllocâ was here
abyss_conn.h:49: warning: redundant redeclaration of âConnFreeâ
/usr/include/xmlrpc-c/abyss.h:501: warning: previous declaration of
âConnFreeâ was here
abyss_conn.h:58: error: expected declaration specifiers or â...â before
âabyss_boolâ
abyss_conn.h:59: warning: âenum abyss_forebackâ declared inside parameter
list
abyss_conn.h:59: warning: its scope is only this definition or declaration,
which is probably not what you want
abyss_conn.h:59: error: conflicting types for âConnCreateâ
/usr/include/xmlrpc-c/abyss.h:503: error: previous declaration of
âConnCreateâ was here
abyss_conn.h:62: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âConnProcessâ
abyss_conn.h:65: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âConnKillâ
abyss_conn.h:71: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âConnWriteâ
abyss_conn.h:76: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âConnReadâ
abyss_conn.h:80: warning: redundant redeclaration of âConnReadInitâ
/usr/include/xmlrpc-c/abyss.h:509: warning: previous declaration of
âConnReadInitâ was here
abyss_conn.h:83: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âConnReadHeaderâ
abyss_conn.h:87: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âConnWriteFromFileâ
In file included from abyss_conf.c:52:
abyss_http.h:10: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âRequestValidURIâ
abyss_http.h:11: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âRequestValidURIPathâ
abyss_http.h:12: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âRequestUnescapeURIâ
abyss_http.h:14: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âRequestReadâ
abyss_http.h:15: warning: redundant redeclaration of âRequestInitâ
/usr/include/xmlrpc-c/abyss.h:606: warning: previous declaration of
âRequestInitâ was here
abyss_http.h:16: warning: redundant redeclaration of âRequestFreeâ
/usr/include/xmlrpc-c/abyss.h:607: warning: previous declaration of
âRequestFreeâ was here
abyss_http.h:18: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âRequestAuthâ
abyss_http.h:25: error: conflicting types for âHTTPReasonByStatusâ
/usr/include/xmlrpc-c/abyss.h:633: error: previous declaration of
âHTTPReasonByStatusâ was here
abyss_http.h:30: error: conflicting types for âHTTPReadâ
/usr/include/xmlrpc-c/abyss.h:635: error: previous declaration of
âHTTPReadâ was here
abyss_http.h:33: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âHTTPWriteBodyChunkâ
abyss_http.h:38: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âHTTPWriteEndChunkâ
abyss_http.h:41: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âHTTPKeepaliveâ
abyss_conf.c:61: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âConfReadLineâ
abyss_conf.c:96: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âConfNextTokenâ
abyss_conf.c:139: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âConfReadIntâ
abyss_conf.c:162: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âConfReadBoolâ
abyss_conf.c:184: error: expected declaration specifiers or â...â before
âMIMETypeâ
abyss_conf.c: In function âreadMIMETypesFileâ:
abyss_conf.c:186: error: âabyss_boolâ undeclared (first use in this
function)
abyss_conf.c:186: error: (Each undeclared identifier is reported only once
abyss_conf.c:186: error: for each function it appears in.)
abyss_conf.c:186: error: expected â;â before âsuccessâ
abyss_conf.c:187: error: âMIMETypeâ undeclared (first use in this function)
abyss_conf.c:187: error: âMIMETypePâ undeclared (first use in this function)
abyss_conf.c:189: warning: implicit declaration of function âMIMETypeCreateâ
abyss_conf.c:192: error: expected â;â before âfileOpenedâ
abyss_conf.c:194: error: âfileOpenedâ undeclared (first use in this
function)
abyss_conf.c:194: warning: passing argument 2 of âFileOpenâ discards
qualifiers from pointer target type
abyss_conf.c:197: warning: implicit declaration of function âConfReadLineâ
abyss_conf.c:201: warning: implicit declaration of function âConfNextTokenâ
abyss_conf.c:207: warning: implicit declaration of function âMIMETypeAdd2â
abyss_conf.c:215: error: âsuccessâ undeclared (first use in this function)
abyss_conf.c:219: warning: implicit declaration of function
âMIMETypeDestroyâ
abyss_conf.c:224: error: âMIMETypePPâ undeclared (first use in this
function)
abyss_conf.c: At top level:
abyss_conf.c:235: error: expected declaration specifiers or â...â before
âabyss_boolâ
abyss_conf.c: In function âchdirxâ:
abyss_conf.c:240: error: âsuccessPâ undeclared (first use in this function)
abyss_conf.c: In function âparseUserâ:
abyss_conf.c:253: warning: implicit declaration of function âConfReadIntâ
abyss_conf.c:256: error: âstruct _TServerâ has no member named âuidâ
abyss_conf.c:263: error: âstruct _TServerâ has no member named âuidâ
abyss_conf.c:264: error: âstruct _TServerâ has no member named âgidâ
abyss_conf.c:265: error: âstruct _TServerâ has no member named âgidâ
abyss_conf.c: In function âparsePidfileâ:
abyss_conf.c:278: error: âstruct _TServerâ has no member named âpidfileâ
abyss_conf.c:278: warning: passing argument 2 of âFileOpenCreateâ discards
qualifiers from pointer target type
abyss_conf.c:279: error: âstruct _TServerâ has no member named âpidfileâ
abyss_conf.c: At top level:
abyss_conf.c:290: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âConfReadServerFileâ
make[1]: *** [abyss_conf.o] Erreur 1
make[1]: quittant le répertoire «
/usr/src/opensips-1.5.0-tls/modules/mi_xmlrpc »
make: *** [modules] Erreur 2_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users