Hi,
While compiling Kamailio 4.3.4 from package sources for Debian 7 Wheezy
(kamailio repository) I'm running into a problem. I've forked the CNXCC
module which I was trying to keep up to date with upstream changes. But
before I could do that, there is a dependency of redis added.
Unfortunately, installing redis devel libs and libevent doesn't provide
the correct version of redis. Also, I noticed on Debian 8 Jessie, it
does compile correctly.
How could Kamailio be compiled for Wheezy with these sources? I'm
missing something obvious I feel. Attached is the compile log, this is
with a completely unaltered sources.
root@devhost:/usr/src/kamailio-4.3.4+wheezy# make -C modules/cnxcc
make: Entering directory `/usr/src/kamailio-4.3.4+wheezy/modules/cnxcc'
CC (gcc) [L libkmi.so.1.0] attr.o
CC (gcc) [L libkmi.so.1.0] fmt.o
CC (gcc) [L libkmi.so.1.0] mi.o
CC (gcc) [L libkmi.so.1.0] tree.o
LD (gcc) [L libkmi.so.1.0] libkmi.so.1.0
CC (gcc) [L libsrdb1.so.1.0] db.o
CC (gcc) [L libsrdb1.so.1.0] db_id.o
CC (gcc) [L libsrdb1.so.1.0] db_pool.o
CC (gcc) [L libsrdb1.so.1.0] db_query.o
CC (gcc) [L libsrdb1.so.1.0] db_res.o
CC (gcc) [L libsrdb1.so.1.0] db_row.o
CC (gcc) [L libsrdb1.so.1.0] db_ut.o
CC (gcc) [L libsrdb1.so.1.0] db_val.o
LD (gcc) [L libsrdb1.so.1.0] libsrdb1.so.1.0
CC (gcc) [L libkcore.so.1.0] cmpapi.o
CC (gcc) [L libkcore.so.1.0] faked_msg.o
CC (gcc) [L libkcore.so.1.0] kstats_wrapper.o
CC (gcc) [L libkcore.so.1.0] parse_privacy.o
CC (gcc) [L libkcore.so.1.0] parse_sst.o
CC (gcc) [L libkcore.so.1.0] regexp.o
CC (gcc) [L libkcore.so.1.0] statistics.o
CC (gcc) [L libkcore.so.1.0] strcommon.o
LD (gcc) [L libkcore.so.1.0] libkcore.so.1.0
LD (gcc) [M cnxcc.so] cnxcc.so
cnxcc_mod.o: In function `redisLibeventReadEvent':
/usr/include/hiredis/adapters/libevent.h:10: multiple definition of
`redisLibeventReadEvent'
cnxcc_check.o:/usr/include/hiredis/adapters/libevent.h:10: first defined
here
cnxcc_mod.o: In function `redisLibeventWriteEvent':
/usr/include/hiredis/adapters/libevent.h:16: multiple definition of
`redisLibeventWriteEvent'
cnxcc_check.o:/usr/include/hiredis/adapters/libevent.h:16: first defined
here
cnxcc_mod.o: In function `redisLibeventAddRead':
/usr/include/hiredis/adapters/libevent.h:22: multiple definition of
`redisLibeventAddRead'
cnxcc_check.o:/usr/include/hiredis/adapters/libevent.h:22: first defined
here
cnxcc_mod.o: In function `redisLibeventDelRead':
/usr/include/hiredis/adapters/libevent.h:27: multiple definition of
`redisLibeventDelRead'
cnxcc_check.o:/usr/include/hiredis/adapters/libevent.h:27: first defined
here
cnxcc_mod.o: In function `redisLibeventAddWrite':
/usr/include/hiredis/adapters/libevent.h:32: multiple definition of
`redisLibeventAddWrite'
cnxcc_check.o:/usr/include/hiredis/adapters/libevent.h:32: first defined
here
cnxcc_mod.o: In function `redisLibeventDelWrite':
/usr/include/hiredis/adapters/libevent.h:37: multiple definition of
`redisLibeventDelWrite'
cnxcc_check.o:/usr/include/hiredis/adapters/libevent.h:37: first defined
here
cnxcc_mod.o: In function `redisLibeventCleanup':
/usr/include/hiredis/adapters/libevent.h:42: multiple definition of
`redisLibeventCleanup'
cnxcc_check.o:/usr/include/hiredis/adapters/libevent.h:42: first defined
here
cnxcc_mod.o: In function `redisLibeventAttach':
/usr/include/hiredis/adapters/libevent.h:49: multiple definition of
`redisLibeventAttach'
cnxcc_check.o:/usr/include/hiredis/adapters/libevent.h:49: first defined
here
cnxcc_redis.o: In function `redisLibeventReadEvent':
/usr/include/hiredis/adapters/libevent.h:10: multiple definition of
`redisLibeventReadEvent'
cnxcc_check.o:/usr/include/hiredis/adapters/libevent.h:10: first defined
here
cnxcc_redis.o: In function `redisLibeventWriteEvent':
/usr/include/hiredis/adapters/libevent.h:16: multiple definition of
`redisLibeventWriteEvent'
cnxcc_check.o:/usr/include/hiredis/adapters/libevent.h:16: first defined
here
cnxcc_redis.o: In function `redisLibeventAddRead':
/usr/include/hiredis/adapters/libevent.h:22: multiple definition of
`redisLibeventAddRead'
cnxcc_check.o:/usr/include/hiredis/adapters/libevent.h:22: first defined
here
cnxcc_redis.o: In function `redisLibeventDelRead':
/usr/include/hiredis/adapters/libevent.h:27: multiple definition of
`redisLibeventDelRead'
cnxcc_check.o:/usr/include/hiredis/adapters/libevent.h:27: first defined
here
cnxcc_redis.o: In function `redisLibeventAddWrite':
/usr/include/hiredis/adapters/libevent.h:32: multiple definition of
`redisLibeventAddWrite'
cnxcc_check.o:/usr/include/hiredis/adapters/libevent.h:32: first defined
here
cnxcc_redis.o: In function `redisLibeventDelWrite':
/usr/include/hiredis/adapters/libevent.h:37: multiple definition of
`redisLibeventDelWrite'
cnxcc_check.o:/usr/include/hiredis/adapters/libevent.h:37: first defined
here
cnxcc_redis.o: In function `redisLibeventCleanup':
/usr/include/hiredis/adapters/libevent.h:42: multiple definition of
`redisLibeventCleanup'
cnxcc_check.o:/usr/include/hiredis/adapters/libevent.h:42: first defined
here
cnxcc_redis.o: In function `redisLibeventAttach':
/usr/include/hiredis/adapters/libevent.h:49: multiple definition of
`redisLibeventAttach'
cnxcc_check.o:/usr/include/hiredis/adapters/libevent.h:49: first defined
here
collect2: error: ld returned 1 exit status
make: *** [cnxcc.so] Error 1
make: Leaving directory `/usr/src/kamailio-4.3.4+wheezy/modules/cnxcc'
Cheers,
Dirk