you need to compile kannel with appropriate database support & install before compiling OpenSMPPBox or SQLBox
2012/6/21 Artem Chekulaev <[email protected]> > I install kannel normally (without mysql support or other special > options). It runs ok. > > When I tried to install opensmppbox from the same files, I received that > messages > > ====================================================== > > user1@TEST-Kannel-Receiver:~/trunk/addons/opensmppbox$ make > make all-recursive > make[1]: Entering directory `/home/teleclick/trunk/addons/opensmppbox' > Making all in gw > make[2]: Entering directory `/home/teleclick/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/local/include/kannel -g -O2 > -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 > -MT box-dlr.o -MD -MP -MF ".deps/box-dlr.Tpo" -c -o box-dlr.o box-dlr.c; \ > then mv -f ".deps/box-dlr.Tpo" ".deps/box-dlr.Po"; else rm -f > ".deps/box-dlr.Tpo"; exit 1; fi > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../gw -I../gw -g -O2 > -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 > -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 > -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 ‘run_smppbox’: > opensmppbox.c:2521:10: warning: cast from pointer to integer of different > size [-Wpointer-to-int-cast] > opensmppbox.c: In function ‘wait_for_connections’: > opensmppbox.c:2583:10: warning: cast to pointer from integer of different > size [-Wint-to-pointer-cast] > opensmppbox.c: In function ‘smppboxc_run’: > opensmppbox.c:2598:12: warning: cast from pointer to integer of different > size [-Wpointer-to-int-cast] > opensmppbox.c: In function ‘check_login’: > opensmppbox.c:386:8: warning: ignoring return value of ‘fscanf’, declared > with attribute warn_unused_result [-Wunused-result] > /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -D_XOPEN_SOURCE=600 > -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600 > -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -rdynamic -o > opensmppbox box-dlr.o opensmppbox.o -L/usr/local/lib/kannel -lgw -lwap > -lgwlib -lrt -lresolv -lnsl -lm -lpthread -L/usr/lib/x86_64-linux-gnu > -lxml2 > mkdir .libs > gcc -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/local/include/kannel > -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_LARGE_FILES= > -I/usr/include/libxml2 -rdynamic -o opensmppbox box-dlr.o opensmppbox.o > -L/usr/local/lib/kannel -lgw -lwap -lgwlib -lrt -lresolv -lnsl -lm > -lpthread -L/usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libxml2.so > box-dlr.o: In function `box_dlr_shutdown': > /home/teleclick/trunk/addons/opensmppbox/gw/box-dlr.c:178: undefined > reference to `dbpool_destroy' > collect2: ld returned 1 exit status > make[2]: *** [opensmppbox] Error 1 > make[2]: Leaving directory `/home/teleclick/trunk/addons/opensmppbox/gw' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/teleclick/trunk/addons/opensmppbox' > make: *** [all] Error 2 > > ====================================================== > > OS - Ubuntu 12.04 64bit >
