Hi all
I am compiling the SER-0.96 that downloaded the cvs with following
command:
make include_modules="mysql lcr" modules
The following error occurred:
make[1]: Entrando no diretório `/home/ser/sip_router/modules/mysql'
make[1]: `mysql.so' está atualizado.
make[1]: Saindo do diretório `/home/ser/sip_router/modules/mysql'
make[1]: Entrando no diretório `/home/ser/sip_router/modules/lcr'
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-dev13"'
-DARCH='"i386"'
-DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc
4.1.2"'
-D__CPU_i386 -D__OS_linux -DSER_VER=2001000
-DCFG_DIR='"/usr/local/etc/ser/"'
-DMODS_DIR='"/usr/local/lib/ser/modules/"' -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 -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 -c lcr_mod.c -o
lcr_mod.o
In file included from ../mysql/dbase.h:42,
from lcr_mod.c:53:
../mysql/../../db/db_val.h:40: error: redeclaration of enumerator
âDB_INTâ
../../db/db_fld.h:47: error: previous definition of âDB_INTâ was here
../mysql/../../db/db_val.h:41: error: redeclaration of enumerator
âDB_FLOATâ
../../db/db_fld.h:48: error: previous definition of âDB_FLOATâ was here
../mysql/../../db/db_val.h:42: error: redeclaration of enumerator
âDB_DOUBLEâ
../../db/db_fld.h:49: error: previous definition of âDB_DOUBLEâ was
here
../mysql/../../db/db_val.h:44: error: redeclaration of enumerator
âDB_STRâ
../../db/db_fld.h:51: error: previous definition of âDB_STRâ was here
../mysql/../../db/db_val.h:45: error: redeclaration of enumerator
âDB_DATETIMEâ
../../db/db_fld.h:52: error: previous definition of âDB_DATETIMEâ was
here
../mysql/../../db/db_val.h:46: error: redeclaration of enumerator
âDB_BLOBâ
../../db/db_fld.h:53: error: previous definition of âDB_BLOBâ was here
../mysql/../../db/db_val.h:48: error: redeclaration of enumerator
âDB_BITMAPâ
../../db/db_fld.h:55: error: previous definition of âDB_BITMAPâ was
here
lcr_mod.c:118: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â
before âlcr_dbfâ
lcr_mod.c: In function âlcr_db_initâ:
lcr_mod.c:242: error: âlcr_dbfâ undeclared (first use in this function)
lcr_mod.c:242: error: (Each undeclared identifier is reported only once
lcr_mod.c:242: error: for each function it appears in.)
lcr_mod.c: In function âlcr_db_bindâ:
lcr_mod.c:260: warning: implicit declaration of function âbind_dbmodâ
lcr_mod.c:260: error: âlcr_dbfâ undeclared (first use in this function)
lcr_mod.c:266: warning: implicit declaration of function
âDB_CAPABILITYâ
lcr_mod.c:266: error: âDB_CAP_QUERYâ undeclared (first use in this
function)
lcr_mod.c:272: error: âDB_CAP_RAW_QUERYâ undeclared (first use in this
function)
lcr_mod.c: In function âlcr_db_closeâ:
lcr_mod.c:284: error: âlcr_dbfâ undeclared (first use in this function)
lcr_mod.c: In function âlcr_db_verâ:
lcr_mod.c:296: error: âlcr_dbfâ undeclared (first use in this function)
lcr_mod.c:305: warning: implicit declaration of function
âtable_versionâ
lcr_mod.c: In function âreload_gwsâ:
lcr_mod.c:503: error: âdb_row_tâ undeclared (first use in this
function)
lcr_mod.c:503: error: ârowâ undeclared (first use in this function)
lcr_mod.c:518: error: âlcr_dbfâ undeclared (first use in this function)
lcr_mod.c:534: warning: implicit declaration of function âRES_ROW_Nâ
lcr_mod.c:542: warning: implicit declaration of function âRES_ROWSâ
lcr_mod.c:543: warning: implicit declaration of function âROW_VALUESâ
lcr_mod.c:543: error: invalid type argument of â->â
lcr_mod.c:549: error: invalid type argument of â->â
lcr_mod.c:550: error: invalid type argument of â->â
lcr_mod.c:553: error: invalid type argument of â->â
lcr_mod.c:561: error: invalid type argument of â->â
lcr_mod.c:564: error: invalid type argument of â->â
lcr_mod.c:572: error: invalid type argument of â->â
lcr_mod.c:575: error: invalid type argument of â->â
lcr_mod.c:584: error: invalid type argument of â->â
lcr_mod.c:588: error: invalid type argument of â->â
lcr_mod.c: In function âload_gwsâ:
lcr_mod.c:636: error: âdb_row_tâ undeclared (first use in this
function)
lcr_mod.c:636: error: ârowâ undeclared (first use in this function)
lcr_mod.c:636: error: ârâ undeclared (first use in this function)
lcr_mod.c:636: warning: left-hand operand of comma expression has no
effect
lcr_mod.c:698: error: âlcr_dbfâ undeclared (first use in this function)
lcr_mod.c:705: error: invalid type argument of â->â
lcr_mod.c:709: error: invalid type argument of â->â
lcr_mod.c:712: error: invalid type argument of â->â
lcr_mod.c:714: error: invalid type argument of â->â
lcr_mod.c:717: error: invalid type argument of â->â
lcr_mod.c:719: error: invalid type argument of â->â
lcr_mod.c:722: error: invalid type argument of â->â
lcr_mod.c:724: error: invalid type argument of â->â
lcr_mod.c:727: error: invalid type argument of â->â
lcr_mod.c:729: error: invalid type argument of â->â
lcr_mod.c:733: error: invalid type argument of â->â
make[1]: ** [lcr_mod.o] Erro 1
make[1]: Saindo do diretório `/home/ser/sip_router/modules/lcr'
make: ** [modules] Erro 1
Somebody help me
Tanks