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

Reply via email to