Hi All,
I thought I would try to disable the pa module and see how much further
I get in building the presence group, but there appear to be some
modules that are failing with the same (or similar) error. I will update
this mail thread with each module that fails with a similar error.
How I built in this case is as follows:
make prefix=/opt/kamailio group_include="standard postgres presence"
skip_modules="pa" all
And the error I get is as follows:
config.mak included
make[1]: Entering directory
`/export/home/user/packages/BUILD/ser-2.99.99-pre3/modules_s/rls'
make[1]: Leaving directory
`/export/home/user/packages/BUILD/ser-2.99.99-pre3/modules_s/rls'
config.mak included
make[1]: Entering directory
`/export/home/user/packages/BUILD/ser-2.99.99-pre3/modules_s/rls'
/usr/sfw/bin/gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m32
-minline-all-stringops -falign-loops -mtune=athlon -Wall
-I/usr/include/libxml2 -I/usr/local/include/libxml2 -I/usr/local/include
-I../../lib -I../.. -DNAME='"ser"'
-DVERSION='"2.99.99-pre3"'
-DARCH='"i386"' -DOS='solaris_'
-DOS_QUOTED='"solaris"'
-DCOMPILER='"/usr/sfw/bin/gcc 3.4.3"' -D__CPU_i386 -D__OS_solaris
-DSER_VER=2099099 -DCFG_DIR='"/opt/kamailio/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_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD
-DHAVE_ALLOCA_H -DUSE_SIGACTION -DHAVE_DEVPOLL -DHAVE_SELECT
-DHAVE_FILIO_H -DSER -DSER_MOD_INTERFACE -DMOD_NAME='"rls"' -c
db_rls.c -o db_rls.o
In file included from db_rls.c:5:
rls_mod.h:31: error: syntax error before "rls_dbf"
rls_mod.h:31: warning: type defaults to `int' in declaration of `rls_dbf'
rls_mod.h:31: warning: data definition has no type or storage class
db_rls.c: In function `virtual_subscription_db_add':
db_rls.c:47: error: `db_key_t' undeclared (first use in this function)
db_rls.c:47: error: (Each undeclared identifier is reported only once
db_rls.c:47: error: for each function it appears in.)
db_rls.c:47: error: syntax error before "cols"
db_rls.c:48: error: `db_val_t' undeclared (first use in this function)
db_rls.c:55: error: request for member `use_table' in something not a
structure or union
db_rls.c:60: error: `cols' undeclared (first use in this function)
db_rls.c:61: error: `vals' undeclared (first use in this function)
db_rls.c:70: error: request for member `insert' in something not a
structure or union
db_rls.c:78: error: request for member `use_table' in something not a
structure or union
db_rls.c:96: error: request for member `insert' in something not a
structure or union
db_rls.c: In function `vs_db_remove':
db_rls.c:134: error: `db_key_t' undeclared (first use in this function)
db_rls.c:134: error: syntax error before "keys"
db_rls.c:134: warning: no return statement in function returning non-void
db_rls.c: At top level:
db_rls.c:135: error: syntax error before "ops"
db_rls.c:135: warning: type defaults to `int' in declaration of `ops'
db_rls.c:135: error: `OP_EQ' undeclared here (not in a function)
db_rls.c:135: error: initializer element is not constant
db_rls.c:135: error: (near initialization for `ops[0]')
db_rls.c:135: warning: data definition has no type or storage class
db_rls.c:136: error: syntax error before "k_vals"
db_rls.c:136: warning: type defaults to `int' in declaration of `k_vals'
db_rls.c:136: warning: data definition has no type or storage class
db_rls.c:141: warning: type defaults to `int' in declaration of `cnt'
db_rls.c:141: error: `s' undeclared here (not in a function)
db_rls.c:141: warning: data definition has no type or storage class
db_rls.c:142: error: syntax error before "for"
db_rls.c:146: error: syntax error before '.' token
db_rls.c:146: error: syntax error before '.' token
db_rls.c:146: error: syntax error before '.' token
db_rls.c:146: error: syntax error before '.' token
db_rls.c:150: error: syntax error before '--' token
db_rls.c:151: warning: type defaults to `int' in declaration of `res'
db_rls.c:151: error: redefinition of 'res'
db_rls.c:138: error: previous definition of 'res' was here
db_rls.c:151: warning: data definition has no type or storage class
db_rls.c:152: error: syntax error before '}' token
db_rls.c:154: error: syntax error before '--' token
db_rls.c:155: warning: type defaults to `int' in declaration of `res'
db_rls.c:155: error: redefinition of 'res'
db_rls.c:151: error: previous definition of 'res' was here
db_rls.c:155: error: redefinition of 'res'
db_rls.c:151: error: previous definition of 'res' was here
db_rls.c:155: warning: data definition has no type or storage class
db_rls.c:156: error: syntax error before '}' token
db_rls.c:160: error: syntax error before '--' token
db_rls.c:161: warning: type defaults to `int' in declaration of `res'
db_rls.c:161: error: redefinition of 'res'
db_rls.c:155: error: previous definition of 'res' was here
db_rls.c:161: error: redefinition of 'res'
db_rls.c:151: error: previous definition of 'res' was here
db_rls.c:161: warning: data definition has no type or storage class
db_rls.c:162: error: syntax error before '}' token
db_rls.c:164: error: syntax error before '--' token
db_rls.c:165: warning: type defaults to `int' in declaration of `res'
db_rls.c:165: error: redefinition of 'res'
db_rls.c:161: error: previous definition of 'res' was here
db_rls.c:165: error: redefinition of 'res'
db_rls.c:151: error: previous definition of 'res' was here
db_rls.c:165: warning: data definition has no type or storage class
db_rls.c:166: error: syntax error before '}' token
db_rls.c: In function `rls_db_add':
db_rls.c:176: error: `db_key_t' undeclared (first use in this function)
db_rls.c:176: error: syntax error before "cols"
db_rls.c:177: error: `db_val_t' undeclared (first use in this function)
db_rls.c:191: error: request for member `use_table' in something not a
structure or union
db_rls.c:196: error: `cols' undeclared (first use in this function)
db_rls.c:197: error: `vals' undeclared (first use in this function)
db_rls.c:238: error: request for member `insert' in something not a
structure or union
db_rls.c: In function `rls_db_remove':
db_rls.c:253: error: `db_key_t' undeclared (first use in this function)
db_rls.c:253: error: syntax error before "keys"
db_rls.c:253: warning: no return statement in function returning non-void
db_rls.c: At top level:
db_rls.c:254: error: syntax error before "ops"
db_rls.c:254: warning: type defaults to `int' in declaration of `ops'
db_rls.c:254: error: redefinition of 'ops'
db_rls.c:135: error: previous definition of 'ops' was here
db_rls.c:254: error: initializer element is not constant
db_rls.c:254: error: (near initialization for `ops[0]')
db_rls.c:254: warning: data definition has no type or storage class
db_rls.c:255: error: syntax error before "k_vals"
db_rls.c:255: warning: type defaults to `int' in declaration of `k_vals'
db_rls.c:256: warning: braces around scalar initializer
db_rls.c:256: warning: (near initialization for `k_vals[0]')
db_rls.c:256: warning: excess elements in scalar initializer
db_rls.c:256: warning: (near initialization for `k_vals[0]')
db_rls.c:257: warning: braces around scalar initializer
db_rls.c:257: warning: (near initialization for `k_vals[0]')
db_rls.c:257: error: field name not in record or union initializer
db_rls.c:257: error: (near initialization for `k_vals[0]')
db_rls.c:257: warning: braces around scalar initializer
db_rls.c:257: warning: (near initialization for `k_vals[0]')
db_rls.c:257: error: field name not in record or union initializer
db_rls.c:257: error: (near initialization for `k_vals[0]')
db_rls.c:257: error: initializer element is not constant
db_rls.c:257: error: (near initialization for `k_vals[0]')
db_rls.c:257: error: field name not in record or union initializer
db_rls.c:257: error: (near initialization for `k_vals[0]')
db_rls.c:257: warning: excess elements in scalar initializer
db_rls.c:257: warning: (near initialization for `k_vals[0]')
db_rls.c:257: error: initializer element is not constant
db_rls.c:257: error: (near initialization for `k_vals[0]')
db_rls.c:258: warning: excess elements in scalar initializer
db_rls.c:258: warning: (near initialization for `k_vals[0]')
db_rls.c:260: warning: data definition has no type or storage class
db_rls.c:262: error: syntax error before "if"
db_rls.c:268: error: syntax error before '--' token
db_rls.c:273: error: syntax error before '--' token
db_rls.c: In function `rls_db_update':
db_rls.c:282: error: `db_key_t' undeclared (first use in this function)
db_rls.c:282: error: syntax error before "cols"
db_rls.c:283: error: `db_val_t' undeclared (first use in this function)
db_rls.c:289: error: syntax error before "keys"
db_rls.c:284: warning: unused variable `dialog'
db_rls.c:285: warning: unused variable `str_xcap_params'
db_rls.c:286: warning: unused variable `n'
db_rls.c:287: warning: unused variable `res'
db_rls.c:288: warning: unused variable `t'
db_rls.c:289: warning: no return statement in function returning non-void
db_rls.c: At top level:
db_rls.c:290: error: syntax error before "ops"
db_rls.c:290: warning: type defaults to `int' in declaration of `ops'
db_rls.c:290: error: redefinition of 'ops'
db_rls.c:254: error: previous definition of 'ops' was here
db_rls.c:290: error: redefinition of 'ops'
db_rls.c:254: error: previous definition of 'ops' was here
db_rls.c:290: error: initializer element is not constant
db_rls.c:290: error: (near initialization for `ops[0]')
db_rls.c:290: warning: data definition has no type or storage class
db_rls.c:291: error: syntax error before "k_vals"
db_rls.c:291: warning: type defaults to `int' in declaration of `k_vals'
db_rls.c:291: error: redefinition of 'k_vals'
db_rls.c:255: error: previous definition of 'k_vals' was here
db_rls.c:292: warning: braces around scalar initializer
db_rls.c:292: warning: (near initialization for `k_vals[0]')
db_rls.c:292: warning: excess elements in scalar initializer
db_rls.c:292: warning: (near initialization for `k_vals[0]')
db_rls.c:293: warning: braces around scalar initializer
db_rls.c:293: warning: (near initialization for `k_vals[0]')
db_rls.c:293: error: field name not in record or union initializer
db_rls.c:293: error: (near initialization for `k_vals[0]')
db_rls.c:293: warning: braces around scalar initializer
db_rls.c:293: warning: (near initialization for `k_vals[0]')
db_rls.c:293: error: field name not in record or union initializer
db_rls.c:293: error: (near initialization for `k_vals[0]')
db_rls.c:293: error: initializer element is not constant
db_rls.c:293: error: (near initialization for `k_vals[0]')
db_rls.c:293: error: field name not in record or union initializer
db_rls.c:293: error: (near initialization for `k_vals[0]')
db_rls.c:293: warning: excess elements in scalar initializer
db_rls.c:293: warning: (near initialization for `k_vals[0]')
db_rls.c:293: error: initializer element is not constant
db_rls.c:293: error: (near initialization for `k_vals[0]')
db_rls.c:294: warning: excess elements in scalar initializer
db_rls.c:294: warning: (near initialization for `k_vals[0]')
db_rls.c:296: warning: data definition has no type or storage class
db_rls.c:298: error: syntax error before "if"
db_rls.c:304: error: syntax error before '--' token
db_rls.c:308: error: `n' undeclared here (not in a function)
db_rls.c:308: warning: type defaults to `int' in declaration of `cols'
db_rls.c:308: warning: data definition has no type or storage class
db_rls.c:309: error: syntax error before '.' token
db_rls.c:309: error: syntax error before '.' token
db_rls.c:309: error: syntax error before '.' token
db_rls.c:311: warning: type defaults to `int' in declaration of `cols'
db_rls.c:311: warning: data definition has no type or storage class
db_rls.c:312: error: syntax error before '.' token
db_rls.c:312: error: syntax error before '.' token
db_rls.c:312: error: syntax error before '.' token
db_rls.c:314: warning: type defaults to `int' in declaration of `t'
db_rls.c:314: error: initializer element is not constant
db_rls.c:314: warning: data definition has no type or storage class
db_rls.c:315: error: syntax error before '+=' token
db_rls.c:316: warning: type defaults to `int' in declaration of `cols'
db_rls.c:316: warning: data definition has no type or storage class
db_rls.c:317: error: syntax error before '.' token
db_rls.c:317: error: syntax error before '.' token
db_rls.c:317: error: syntax error before '.' token
db_rls.c:320: error: syntax error before '--' token
db_rls.c:323: warning: type defaults to `int' in declaration of `cols'
db_rls.c:323: warning: data definition has no type or storage class
db_rls.c:324: error: syntax error before '.' token
db_rls.c:324: error: syntax error before '.' token
db_rls.c:324: error: syntax error before '.' token
db_rls.c:326: warning: type defaults to `int' in declaration of `cols'
db_rls.c:326: warning: data definition has no type or storage class
db_rls.c:327: error: syntax error before '.' token
db_rls.c:327: error: syntax error before '.' token
db_rls.c:327: error: syntax error before '.' token
db_rls.c:329: warning: type defaults to `int' in declaration of `cols'
db_rls.c:329: warning: data definition has no type or storage class
db_rls.c:330: error: syntax error before '.' token
db_rls.c:330: error: syntax error before '.' token
db_rls.c:330: error: syntax error before '.' token
db_rls.c:332: warning: type defaults to `int' in declaration of `cols'
db_rls.c:332: warning: data definition has no type or storage class
db_rls.c:333: error: syntax error before '.' token
db_rls.c:333: error: syntax error before '.' token
db_rls.c:333: error: syntax error before '.' token
db_rls.c:335: warning: type defaults to `int' in declaration of `cols'
db_rls.c:335: warning: data definition has no type or storage class
db_rls.c:336: error: syntax error before '.' token
db_rls.c:336: error: syntax error before '.' token
db_rls.c:336: error: syntax error before '.' token
db_rls.c:339: error: syntax error before '--' token
db_rls.c:340: error: syntax error before '(' token
db_rls.c:340: warning: type defaults to `int' in declaration of
`release_lock'
db_rls.c:340: warning: parameter names (without types) in function
declaration
db_rls.c:340: error: conflicting types for 'release_lock'
../../modules/tm/../../mem/../fastlock.h:331: error: previous definition
of 'release_lock' was here
db_rls.c:340: warning: data definition has no type or storage class
db_rls.c:340: error: syntax error before '}' token
db_rls.c:343: warning: type defaults to `int' in declaration of `cols'
db_rls.c:343: warning: data definition has no type or storage class
db_rls.c:344: error: syntax error before '.' token
db_rls.c:344: error: syntax error before '.' token
db_rls.c:344: error: syntax error before '.' token
db_rls.c:348: error: syntax error before '--' token
db_rls.c:349: warning: type defaults to `int' in declaration of `res'
db_rls.c:349: error: redefinition of 'res'
db_rls.c:165: error: previous definition of 'res' was here
db_rls.c:349: error: redefinition of 'res'
db_rls.c:151: error: previous definition of 'res' was here
db_rls.c:349: warning: data definition has no type or storage class
db_rls.c:350: error: syntax error before '}' token
db_rls.c:352: error: syntax error before '(' token
db_rls.c:352: warning: type defaults to `int' in declaration of
`release_lock'
db_rls.c:352: warning: parameter names (without types) in function
declaration
db_rls.c:352: warning: data definition has no type or storage class
db_rls.c:352: error: syntax error before '}' token
db_rls.c:353: error: syntax error before '(' token
db_rls.c:353: warning: type defaults to `int' in declaration of
`release_lock'
db_rls.c:353: warning: parameter names (without types) in function
declaration
db_rls.c:353: warning: data definition has no type or storage class
db_rls.c:353: error: syntax error before '}' token
db_rls.c: In function `db_load_vs_names':
db_rls.c:383: error: `db_key_t' undeclared (first use in this function)
db_rls.c:383: error: syntax error before "result_cols"
db_rls.c:381: warning: unused variable `i'
db_rls.c:381: warning: unused variable `r'
db_rls.c:382: warning: unused variable `res'
db_rls.c:385: warning: no return statement in function returning non-void
db_rls.c: At top level:
db_rls.c:386: error: syntax error before "keys"
db_rls.c:386: warning: type defaults to `int' in declaration of `keys'
db_rls.c:386: error: invalid initializer
db_rls.c:386: warning: data definition has no type or storage class
db_rls.c:387: error: syntax error before "ops"
db_rls.c:387: warning: type defaults to `int' in declaration of `ops'
db_rls.c:387: error: redefinition of 'ops'
db_rls.c:290: error: previous definition of 'ops' was here
db_rls.c:387: error: redefinition of 'ops'
db_rls.c:254: error: previous definition of 'ops' was here
db_rls.c:387: error: initializer element is not constant
db_rls.c:387: error: (near initialization for `ops[0]')
db_rls.c:387: warning: data definition has no type or storage class
db_rls.c:388: error: syntax error before "k_vals"
db_rls.c:388: warning: type defaults to `int' in declaration of `k_vals'
db_rls.c:388: error: redefinition of 'k_vals'
db_rls.c:291: error: previous definition of 'k_vals' was here
db_rls.c:388: error: redefinition of 'k_vals'
db_rls.c:291: error: previous definition of 'k_vals' was here
db_rls.c:389: warning: braces around scalar initializer
db_rls.c:389: warning: (near initialization for `k_vals[0]')
db_rls.c:389: warning: excess elements in scalar initializer
db_rls.c:389: warning: (near initialization for `k_vals[0]')
db_rls.c:390: warning: braces around scalar initializer
db_rls.c:390: warning: (near initialization for `k_vals[0]')
db_rls.c:390: error: field name not in record or union initializer
db_rls.c:390: error: (near initialization for `k_vals[0]')
db_rls.c:390: warning: braces around scalar initializer
db_rls.c:390: warning: (near initialization for `k_vals[0]')
db_rls.c:390: error: field name not in record or union initializer
db_rls.c:390: error: (near initialization for `k_vals[0]')
db_rls.c:390: error: initializer element is not constant
db_rls.c:390: error: (near initialization for `k_vals[0]')
db_rls.c:390: error: field name not in record or union initializer
db_rls.c:390: error: (near initialization for `k_vals[0]')
db_rls.c:390: warning: excess elements in scalar initializer
db_rls.c:390: warning: (near initialization for `k_vals[0]')
db_rls.c:390: error: initializer element is not constant
db_rls.c:390: error: (near initialization for `k_vals[0]')
db_rls.c:390: warning: excess elements in scalar initializer
db_rls.c:390: warning: (near initialization for `k_vals[0]')
db_rls.c:392: warning: data definition has no type or storage class
db_rls.c:394: error: syntax error before "if"
db_rls.c:395: error: syntax error before '--' token
db_rls.c:402: error: syntax error before '--' token
db_rls.c:403: warning: type defaults to `int' in declaration of `r'
db_rls.c:403: warning: data definition has no type or storage class
db_rls.c:404: warning: type defaults to `int' in declaration of `res'
db_rls.c:404: error: redefinition of 'res'
db_rls.c:349: error: previous definition of 'res' was here
db_rls.c:404: error: redefinition of 'res'
db_rls.c:151: error: previous definition of 'res' was here
db_rls.c:404: warning: data definition has no type or storage class
db_rls.c:405: error: syntax error before '}' token
db_rls.c:409: warning: type defaults to `int' in declaration of `row_vals'
db_rls.c:409: warning: implicit declaration of function `ROW_VALUES'
db_rls.c:409: error: `row' undeclared here (not in a function)
db_rls.c:409: warning: initialization makes pointer from integer without
a cast
db_rls.c:409: error: initializer element is not constant
db_rls.c:409: warning: data definition has no type or storage class
db_rls.c:413: error: syntax error before "do"
db_rls.c:416: error: syntax error before '--' token
db_rls.c:417: error: syntax error before '.' token
db_rls.c:417: warning: type defaults to `int' in declaration of
`vs_add_display_name'
db_rls.c:417: warning: data definition has no type or storage class
db_rls.c: In function `db_load_vs':
db_rls.c:431: error: `db_key_t' undeclared (first use in this function)
db_rls.c:431: error: syntax error before "result_cols"
db_rls.c:428: warning: unused variable `i'
db_rls.c:428: warning: unused variable `r'
db_rls.c:429: warning: unused variable `res'
db_rls.c:430: warning: unused variable `vs'
db_rls.c:433: warning: no return statement in function returning non-void
db_rls.c: At top level:
db_rls.c:434: error: syntax error before "keys"
db_rls.c:434: warning: type defaults to `int' in declaration of `keys'
db_rls.c:434: error: redefinition of 'keys'
db_rls.c:386: error: previous definition of 'keys' was here
db_rls.c:434: error: invalid initializer
db_rls.c:434: warning: data definition has no type or storage class
db_rls.c:435: error: syntax error before "ops"
db_rls.c:435: warning: type defaults to `int' in declaration of `ops'
db_rls.c:435: error: redefinition of 'ops'
db_rls.c:387: error: previous definition of 'ops' was here
db_rls.c:435: error: redefinition of 'ops'
db_rls.c:254: error: previous definition of 'ops' was here
db_rls.c:435: error: initializer element is not constant
db_rls.c:435: error: (near initialization for `ops[0]')
db_rls.c:435: warning: data definition has no type or storage class
db_rls.c:436: error: syntax error before "k_vals"
db_rls.c:436: warning: type defaults to `int' in declaration of `k_vals'
db_rls.c:436: error: redefinition of 'k_vals'
db_rls.c:388: error: previous definition of 'k_vals' was here
db_rls.c:436: error: redefinition of 'k_vals'
db_rls.c:291: error: previous definition of 'k_vals' was here
db_rls.c:437: warning: braces around scalar initializer
db_rls.c:437: warning: (near initialization for `k_vals[0]')
db_rls.c:437: warning: excess elements in scalar initializer
db_rls.c:437: warning: (near initialization for `k_vals[0]')
db_rls.c:438: warning: braces around scalar initializer
db_rls.c:438: warning: (near initialization for `k_vals[0]')
db_rls.c:438: error: field name not in record or union initializer
db_rls.c:438: error: (near initialization for `k_vals[0]')
db_rls.c:438: warning: braces around scalar initializer
db_rls.c:438: warning: (near initialization for `k_vals[0]')
db_rls.c:438: error: field name not in record or union initializer
db_rls.c:438: error: (near initialization for `k_vals[0]')
db_rls.c:438: error: initializer element is not constant
db_rls.c:438: error: (near initialization for `k_vals[0]')
db_rls.c:438: error: field name not in record or union initializer
db_rls.c:438: error: (near initialization for `k_vals[0]')
db_rls.c:438: warning: excess elements in scalar initializer
db_rls.c:438: warning: (near initialization for `k_vals[0]')
db_rls.c:438: error: initializer element is not constant
db_rls.c:438: error: (near initialization for `k_vals[0]')
db_rls.c:438: warning: excess elements in scalar initializer
db_rls.c:438: warning: (near initialization for `k_vals[0]')
db_rls.c:440: warning: data definition has no type or storage class
db_rls.c:442: error: syntax error before "if"
db_rls.c:443: error: syntax error before '--' token
db_rls.c:450: error: syntax error before '--' token
db_rls.c:451: warning: type defaults to `int' in declaration of `r'
db_rls.c:451: error: redefinition of 'r'
db_rls.c:403: error: previous definition of 'r' was here
db_rls.c:451: warning: data definition has no type or storage class
db_rls.c:452: warning: type defaults to `int' in declaration of `res'
db_rls.c:452: error: redefinition of 'res'
db_rls.c:404: error: previous definition of 'res' was here
db_rls.c:452: error: redefinition of 'res'
db_rls.c:151: error: previous definition of 'res' was here
db_rls.c:452: warning: data definition has no type or storage class
db_rls.c:453: error: syntax error before '}' token
db_rls.c:457: warning: type defaults to `int' in declaration of `row_vals'
db_rls.c:457: error: redefinition of 'row_vals'
db_rls.c:409: error: previous definition of 'row_vals' was here
db_rls.c:457: warning: initialization makes pointer from integer without
a cast
db_rls.c:457: error: initializer element is not constant
db_rls.c:457: warning: data definition has no type or storage class
db_rls.c:461: error: syntax error before "do"
db_rls.c:464: warning: type defaults to `int' in declaration of `r'
db_rls.c:464: error: redefinition of 'r'
db_rls.c:451: error: previous definition of 'r' was here
db_rls.c:464: error: redefinition of 'r'
db_rls.c:451: error: previous definition of 'r' was here
db_rls.c:464: error: initializer element is not constant
db_rls.c:464: warning: data definition has no type or storage class
db_rls.c:465: error: syntax error before "if"
db_rls.c:467: error: syntax error before '->' token
db_rls.c:467: warning: type defaults to `int' in declaration of `strcpy'
db_rls.c:467: error: conflicting types for 'strcpy'
db_rls.c:467: error: conflicting types for 'strcpy'
db_rls.c:467: warning: data definition has no type or storage class
db_rls.c:468: error: syntax error before '--' token
db_rls.c:470: error: syntax error before '&' token
db_rls.c:470: warning: type defaults to `int' in declaration of
`ptr_vector_add'
db_rls.c:470: warning: data definition has no type or storage class
db_rls.c:472: warning: type defaults to `int' in declaration of
`db_load_vs_names'
db_rls.c:472: warning: parameter names (without types) in function
declaration
db_rls.c:472: warning: data definition has no type or storage class
db_rls.c:473: error: syntax error before '}' token
db_rls.c: In function `db_load_rls':
db_rls.c:489: error: `db_key_t' undeclared (first use in this function)
db_rls.c:489: error: syntax error before "result_cols"
db_rls.c:485: warning: unused variable `rls_db'
db_rls.c:486: warning: unused variable `i'
db_rls.c:486: warning: unused variable `r'
db_rls.c:487: warning: unused variable `s'
db_rls.c:488: warning: unused variable `res'
db_rls.c:494: warning: no return statement in function returning non-void
db_rls.c: At top level:
db_rls.c:498: error: syntax error before '--' token
db_rls.c:503: error: syntax error before '--' token
db_rls.c:508: error: syntax error before '--' token
db_rls.c:515: error: syntax error before '--' token
db_rls.c:516: warning: type defaults to `int' in declaration of `r'
db_rls.c:516: error: redefinition of 'r'
db_rls.c:464: error: previous definition of 'r' was here
db_rls.c:516: error: redefinition of 'r'
db_rls.c:451: error: previous definition of 'r' was here
db_rls.c:516: warning: data definition has no type or storage class
db_rls.c:517: warning: type defaults to `int' in declaration of `res'
db_rls.c:517: error: redefinition of 'res'
db_rls.c:452: error: previous definition of 'res' was here
db_rls.c:517: error: redefinition of 'res'
db_rls.c:151: error: previous definition of 'res' was here
db_rls.c:517: warning: data definition has no type or storage class
db_rls.c:518: error: syntax error before '}' token
db_rls.c:522: warning: type defaults to `int' in declaration of `row_vals'
db_rls.c:522: error: redefinition of 'row_vals'
db_rls.c:457: error: previous definition of 'row_vals' was here
db_rls.c:522: error: redefinition of 'row_vals'
db_rls.c:457: error: previous definition of 'row_vals' was here
db_rls.c:522: warning: initialization makes pointer from integer without
a cast
db_rls.c:522: error: initializer element is not constant
db_rls.c:522: warning: data definition has no type or storage class
db_rls.c:523: error: redefinition of 'id'
db_rls.c:458: error: previous definition of 'id' was here
db_rls.c:527: error: redefinition of 'uri'
db_rls.c:459: error: previous definition of 'uri' was here
db_rls.c:535: warning: type defaults to `int' in declaration of `s'
db_rls.c:535: warning: initialization makes integer from pointer without
a cast
db_rls.c:535: error: initializer element is not constant
db_rls.c:535: warning: data definition has no type or storage class
db_rls.c:536: error: syntax error before "if"
db_rls.c:539: error: syntax error before '->' token
db_rls.c:539: warning: type defaults to `int' in declaration of `strcpy'
db_rls.c:539: warning: data definition has no type or storage class
db_rls.c:551: warning: type defaults to `int' in declaration of `dlg'
db_rls.c:551: error: conflicting types for 'dlg'
db_rls.c:533: error: previous definition of 'dlg' was here
db_rls.c:551: warning: initialization makes integer from pointer without
a cast
db_rls.c:551: error: initializer element is not constant
db_rls.c:551: warning: data definition has no type or storage class
db_rls.c:552: error: syntax error before '&' token
db_rls.c:560: warning: type defaults to `int' in declaration of
`sm_init_subscription_nolock_ex'
db_rls.c:560: warning: data definition has no type or storage class
db_rls.c:561: error: syntax error before '--' token
db_rls.c:565: error: syntax error before '--' token
db_rls.c:566: warning: type defaults to `int' in declaration of `rls_free'
db_rls.c:566: warning: parameter names (without types) in function
declaration
db_rls.c:566: error: conflicting types for 'rls_free'
rl_subscription.h:138: error: previous declaration of 'rls_free' was here
db_rls.c:566: error: conflicting types for 'rls_free'
rl_subscription.h:138: error: previous declaration of 'rls_free' was here
db_rls.c:566: warning: data definition has no type or storage class
db_rls.c:567: warning: type defaults to `int' in declaration of `s'
db_rls.c:567: error: redefinition of 's'
db_rls.c:535: error: previous definition of 's' was here
db_rls.c:567: error: redefinition of 's'
db_rls.c:535: error: previous definition of 's' was here
db_rls.c:567: warning: data definition has no type or storage class
db_rls.c:568: warning: type defaults to `int' in declaration of `r'
db_rls.c:568: error: redefinition of 'r'
db_rls.c:516: error: previous definition of 'r' was here
db_rls.c:568: error: redefinition of 'r'
db_rls.c:451: error: previous definition of 'r' was here
db_rls.c:568: warning: data definition has no type or storage class
db_rls.c:569: error: syntax error before "break"
db_rls.c:573: warning: type defaults to `int' in declaration of `db_load_vs'
db_rls.c:573: warning: parameter names (without types) in function
declaration
db_rls.c:573: warning: data definition has no type or storage class
db_rls.c:574: error: syntax error before '}' token
db_rls.c:582: error: syntax error before '--' token
db_rls.c:308: error: storage size of `cols' isn't known
db_rls.c:311: error: storage size of `cols' isn't known
db_rls.c:316: error: storage size of `cols' isn't known
db_rls.c:323: error: storage size of `cols' isn't known
db_rls.c:326: error: storage size of `cols' isn't known
db_rls.c:329: error: storage size of `cols' isn't known
db_rls.c:332: error: storage size of `cols' isn't known
db_rls.c:335: error: storage size of `cols' isn't known
db_rls.c:343: error: storage size of `cols' isn't known
db_rls.c:123: warning: 'vs_db_update' defined but not used
db_rls.c:133: warning: 'vs_db_remove' defined but not used
make[1]: *** [db_rls.o] Error 1
make[1]: Leaving directory
`/export/home/user/packages/BUILD/ser-2.99.99-pre3/modules_s/rls'
make: *** [modules_s] Error 1
Bruce McAlister wrote:
Hi All,
I have come across another build issue when building the presence module
bundle on Solaris 10. The specific error is as follows:
config.mak included
make[1]: Entering directory
`/export/home/user/packages/BUILD/ser-2.99.99-pre3/modules_s/pa'
make[1]: Leaving directory
`/export/home/user/packages/BUILD/ser-2.99.99-pre3/modules_s/pa'
config.mak included
make[1]: Entering directory
`/export/home/user/packages/BUILD/ser-2.99.99-pre3/modules_s/pa'
/usr/sfw/bin/gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m32
-minline-all-stringops -falign-loops -mtune=athlon -Wall
-I/usr/include/libxml2 -I/usr/local/include/libxml2 -I/usr/local/include
-I../../lib -I../.. -DNAME='"ser"'
-DVERSION='"2.99.99-pre3"'
-DARCH='"i386"' -DOS='solaris_'
-DOS_QUOTED='"solaris"'
-DCOMPILER='"/usr/sfw/bin/gcc 3.4.3"' -D__CPU_i386 -D__OS_solaris
-DSER_VER=2099099 -DCFG_DIR='"/opt/kamailio/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_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD
-DHAVE_ALLOCA_H -DUSE_SIGACTION -DHAVE_DEVPOLL -DHAVE_SELECT
-DHAVE_FILIO_H -DSER -DSER_MOD_INTERFACE -DMOD_NAME='"pa"' -c
async_auth.c -o async_auth.o
In file included from async_auth.c:1:
pa_mod.h:54: error: syntax error before "pa_dbf"
pa_mod.h:54: warning: type defaults to `int' in declaration of `pa_dbf'
pa_mod.h:54: warning: data definition has no type or storage class
make[1]: *** [async_auth.o] Error 1
make[1]: Leaving directory
`/export/home/user/packages/BUILD/ser-2.99.99-pre3/modules_s/pa'
make: *** [modules_s] Error 1
I have read the INSTALL text file and it seems that the pa module
requires libxml2. I have checked that this library is on the box. The
version of libxml2 on Solaris is as follows:
user@soldev:~ $ /usr/bin/xml2-config --version
2.6.23
user@soldev:~ $ /usr/bin/xml2-config --libs
-L/usr/lib -R/usr/lib -lxml2 -lz -lpthread -lm -lsocket -lnsl
user@soldev:~ $ /usr/bin/xml2-config --cflags
-I/usr/include/libxml2
I am building the following version of SIPRouter:
ser-2.99.99-pre3_src_2009-12-05_b8e67f
The way I am building SIPRouter is as follows:
make prefix=/opt/kamailio group_include="standard postgres presence" all
If I manually change directory into the modules_s/pa directory and issue
a "make" then the build still fails with the same error.
If I remove the "presence" group then the build completes successfully.
Any pointers for a resolution would be greatly appreciated. If you
require any additional information please dont hesitate to ask.
Thank you
Bruce
_______________________________________________
sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users