You need to configure kannel with mysql or postgresql or any other database
support, i.e.

in kannel's trunk dir do:

./configure --with-mysql
make
make install

after that compile & install opensmppbox

2012/7/4 Olutoyin Daniel <[email protected]>

> Thanks spameden,
> I have compiled and installed kannel
> After which I also did a 'make install' of the kannel source
>
> Then I moved to the trunk folder where svn downloaded the opensmppbox to.
> I then did  trunk]# ./configure --with-kannel-dir=/usr/local/
> After then I did   trunk]# make
> But this gave me the following error:
>
> trunk]# make
> make  all-recursive
> make[1]: Entering directory `/opt/kannel/trunk'
> Making all in gw
> make[2]: Entering directory `/opt/kannel/trunk/gw'
> /bin/sh ../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 -lxml2 -lz -lm
> 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 -lpthread
> -lxml2 -lz -lm
> box-dlr.o: In function `box_dlr_shutdown':
> /opt/kannel/trunk/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 `/opt/kannel/trunk/gw'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/opt/kannel/trunk'
> make: *** [all] Error 2
>
> Please, help me. What am I doing wrong?
>
> Best regards,
> Toyin Daniel
>
>   ------------------------------
> *From:* spameden <[email protected]>
> *To:* danieltoyin <[email protected]>
> *Cc:* [email protected]
> *Sent:* Wednesday, July 4, 2012 5:23 PM
> *Subject:* Re: Installing opensmppbox in Amazon EC2 instance
>
> you need to compile and install kannel before compiling opensmppbox
>
> 2012/7/4 danieltoyin <[email protected]>
>
>
> Hello,
> I did ./configure successfully on my Amazon EC2 instance but to do make I
> get series of error message as below:
>
> make  all-recursive
> make[1]: Entering directory `/home/ec2-user/trunk'
> Making all in gw
> make[2]: Entering directory `/home/ec2-user/trunk/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
> In file included from box-dlr.c:18:
> box-dlr.h:12:25: error: gwlib/gwlib.h: No such file or directory
> box-dlr.h:13:20: error: gw/msg.h: No such file or directory
> In file included from box-dlr.c:18:
> box-dlr.h:19: error: expected â)â before â*â token
> box-dlr.h:31: error: expected â;â, â,â or â)â before â*â token
> box-dlr.h:36: error: expected â;â, â,â or â)â before â*â token
> box-dlr.h:45: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â
> before
> â*â token
> box-dlr.c:19:20: error: gw/dlr.h: No such file or directory
> box-dlr.c:20:22: error: gw/dlr_p.h: No such file or directory
> box-dlr.c:21:26: error: gwlib/dbpool.h: No such file or directory
> box-dlr.c:24: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â
> before
> â*â token
> box-dlr.c:30: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â
> before
> â*â token
>
> etc
>
> Please, has anyone been able to launch opensmppbox on Amazon EC2 instance.
>
> Best regards,
> Toyin Daniel
>
> --
> View this message in context:
> http://old.nabble.com/Installing-opensmppbox-in-Amazon-EC2-instance-tp34113919p34113919.html
> Sent from the Kannel - User mailing list archive at 
> Nabble.com<http://nabble.com/>
> .
>
>
>
>
>
>

Reply via email to