Hi,
I'm trying to compile the latest trunk version of cpl-c module.
I used the following commands:
make
make modules=modules/cpl-c modules
but I had these errors:
Compiling cpl.c
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-loops -ftree-vectorize -mtune=athlon64 -DNAME='"openser"' -DVERSION='"
1.2.2-notls"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 4.1.1"' -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 -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/include/libxml2 -I/usr/local/include/libxml2 -I/usr/local/include -c
cpl.c -o cpl.o
cpl.c:52:24: error: ../../pvar.h: No such file or directory
cpl.c:118: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'cpl_procs'
cpl.c:129: warning: excess elements in struct initializer
cpl.c:129: warning: (near initialization for 'cmds[0]')
cpl.c:131: warning: excess elements in struct initializer
cpl.c:131: warning: (near initialization for 'cmds[1]')
cpl.c:133: warning: excess elements in struct initializer
cpl.c:133: warning: (near initialization for 'cmds[2]')
cpl.c:134: warning: excess elements in struct initializer
cpl.c:134: warning: (near initialization for 'cmds[3]')
cpl.c:183: error: 'cpl_procs' undeclared here (not in a function)
cpl.c:184: warning: initialization from incompatible pointer type
cpl.c:185: warning: initialization from incompatible pointer type
cpl.c:186: warning: initialization from incompatible pointer type
cpl.c:188: warning: excess elements in struct initializer
cpl.c:188: warning: (near initialization for 'exports')
cpl.c: In function 'fixup_cpl_run_script':
cpl.c:202: warning: implicit declaration of function 'LM_ERR'
cpl.c: In function 'cpl_init':
cpl.c:233: error: 'pv_spec_t' undeclared (first use in this function)
cpl.c:233: error: (Each undeclared identifier is reported only once
cpl.c:233: error: for each function it appears in.)
cpl.c:233: error: expected ';' before 'avp_spec'
cpl.c:237: warning: implicit declaration of function 'LM_INFO'
cpl.c:241: warning: implicit declaration of function 'LM_CRIT'
cpl.c:260: warning: implicit declaration of function 'pv_parse_spec'
cpl.c:260: error: 'avp_spec' undeclared (first use in this function)
cpl.c:261: error: 'PVT_AVP' undeclared (first use in this function)
cpl.c:266: warning: implicit declaration of function 'pv_get_avp_name'
cpl.c:353: warning: implicit declaration of function 'LM_NOTICE'
make[1]: *** [cpl.o] Error 1
make[1]: Leaving directory `/usr/src/openser-
1.2.2-notls/modules/cpl-c'
make: *** [modules] Error 2
what's the problem?
regards,
daniel
--
Daniel Grotti
________________________
e-mail : d.grotti@gmail.com