Hello guys,

Long time no write here ... :)

Anyway, I try to compile the kannel with redis, its compiles well:
===============================
Configure options
cd trunk
make clean
./configure \
--prefix=/opt/kannel \
--enable-start-stop-daemon \
--enable-pcre \
--with-redis \
--with-ssl=/usr/lib64/openssl \


Kannel bearerbox version `svn-r5088'.
Build `Apr 24 2014 01:12:35', compiler `4.8.2 20131212 (Red Hat 4.8.2-7)'.
System Linux, release 3.10.37-47.135.amzn1.x86_64, version #1 SMP Fri Apr 18 
03:28:26 UTC 2014, machine x86_64.
Hostname localhost, IP 127.0.0.1.
Libxml version 2.9.1.
Using OpenSSL 1.0.1g-fips 7 Apr 2014.
Using hiredis API 0.10.1
Using native malloc.




the opensmppbox failes to compile :
===============================
cd trunk/addons/opensmppbox
make clean
./configure \
--prefix=/opt/kannel \
--with-kannel-dir=/opt/kannel/ \
--enable-ssl \
--with-ssl=/usr/lib64/openssl \
--enable-docs \


the compile error follows:
r...@app-01.adaptsms.com:[Fri Apr 25 
13:44:39][/opt/installs/kannel/trunk/addons/opensmppbox]$ make
make all-recursive
make[1]: Entering directory `/opt/installs/kannel/trunk/addons/opensmppbox'
Making all in gw
make[2]: Entering directory `/opt/installs/kannel/trunk/addons/opensmppbox/gw'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../gw -I../gw -g -O2 -D_XOPEN_SOURCE=600 
-D_BSD_SOURCE -I/usr/lib64/openssl/include -I/opt/kannel/include/kannel -g -O2
-D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 
-I/usr/lib64/openssl/include -I/usr/include/hiredis -MT opensmppbox.o -MD -MP 
-MF
".deps/opensmppbox.Tpo" -c -o opensmppbox.o opensmppbox.c; \
then mv -f ".deps/opensmppbox.Tpo" ".deps/opensmppbox.Po"; else rm -f 
".deps/opensmppbox.Tpo"; exit 1; fi
opensmppbox.c: In function ‘handle_pdu’:
opensmppbox.c:1613:6: error: too few arguments to function ‘dlr_add’
dlr_add(box->boxc_id, msgid, msg2);
^
In file included from opensmppbox.c:79:0:
/opt/kannel/include/kannel/gw/dlr.h:100:6: note: declared here
void dlr_add(const Octstr *smsc, const Octstr *ts, Msg *msg, int use_dst);
^
opensmppbox.c:1655:6: error: too few arguments to function ‘dlr_add’
dlr_add(box->boxc_id, msgid, msg2);
^
In file included from opensmppbox.c:79:0:
/opt/kannel/include/kannel/gw/dlr.h:100:6: note: declared here
void dlr_add(const Octstr *smsc, const Octstr *ts, Msg *msg, int use_dst);
^
opensmppbox.c: In function ‘run_smppbox’:
opensmppbox.c:2099:10: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
fd = (int)arg;
^
In file included from /opt/kannel/include/kannel/gwlib/gwlib.h:82:0,
from opensmppbox.c:72:
opensmppbox.c: In function ‘wait_for_connections’:
opensmppbox.c:2156:36: warning: cast to pointer from integer of different size 
[-Wint-to-pointer-cast]
gwthread_create(function, (void *)fd);
^
/opt/kannel/include/kannel/gwlib/gwthread.h:91:50: note: in definition of macro 
‘gwthread_create’
(gwthread_create_real(func, __FILE__ ":" #func, arg))
^
opensmppbox.c: In function ‘smppboxc_run’:
opensmppbox.c:2171:12: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
port = (int)arg;
^
make[2]: *** [opensmppbox.o] Error 1
make[2]: Leaving directory `/opt/installs/kannel/trunk/addons/opensmppbox/gw'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/installs/kannel/trunk/addons/opensmppbox'
make: *** [all] Error 2


Could someone help with that issue ?


cheers,

seikath


Reply via email to