Opensmppbox compilation error on CentOS 6.5 x64
Hi All, I'm trying to compile opensmppbox and I'm getting compilation errors. This isn't my first install but either I appear to be doing something wrong (or are there bugs in the code?). Any ideas? Install svn co https://svn.kannel.org/gateway/trunk cd trunk/addons/opensmppbox/ aclocal autoconf ./bootstrap ./configure --with-mssql=/usr --with-ssl=/usr/include/openssl --enable-dependency-tracking --enable-ssl --enable-docs --enable-drafts --prefix=/usr/local/kannel --with-kannel-dir=/root/trunk make Output make all-recursive make[1]: Entering directory `/tmp/trunk/addons/opensmppbox' Making all in gw make[2]: Entering directory `/tmp/trunk/addons/opensmppbox/gw' gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw-g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/include/openssl/include -I/usr/local/kannel/include/kannel -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/openssl/include -I/usr/include -MT opensmppbox.o -MD -MP -MF .deps/opensmppbox.Tpo -c -o opensmppbox.o opensmppbox.c opensmppbox.c: In function âsend_pduâ: opensmppbox.c:622: warning: passing argument 1 of âsmpp_pdu_dumpâ from incompatible pointer type /usr/local/kannel/include/kannel/gw/smsc/smpp_pdu.h:239: note: expected âstruct SMPP_PDU *â but argument is of type âstruct Octstr *â opensmppbox.c:622: error: too many arguments to function âsmpp_pdu_dumpâ opensmppbox.c: In function âhandle_pduâ: opensmppbox.c:1513: warning: passing argument 1 of âsmpp_pdu_dumpâ from incompatible pointer type /usr/local/kannel/include/kannel/gw/smsc/smpp_pdu.h:239: note: expected âstruct SMPP_PDU *â but argument is of type âstruct Octstr *â opensmppbox.c:1513: error: too many arguments to function âsmpp_pdu_dumpâ opensmppbox.c: In function ârun_smppboxâ: opensmppbox.c:2099: warning: cast from pointer to integer of different size opensmppbox.c: In function âwait_for_connectionsâ: opensmppbox.c:2156: warning: cast to pointer from integer of different size opensmppbox.c: In function âsmppboxc_runâ: opensmppbox.c:2171: warning: cast from pointer to integer of different size make[2]: *** [opensmppbox.o] Error 1 make[2]: Leaving directory `/tmp/trunk/addons/opensmppbox/gw' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/trunk/addons/opensmppbox' make: *** [all] Error 2 Ciaran Scolard Network Manager phonovation limited phonovation house, 8 clarinda park north, dun laoghaire, co. dublin, ireland. tel: + 353 1 284 3011 mobile: + 353 87 2115934 fax: + 353 1 284 3223 www.phonovation.comhttp://www.phonovation.com/ registered in Ireland number 127108
RE: Opensmppbox compilation error on CentOS 6.5 x64
I think you have to do a make install on the Kannel sources first. From: devel [mailto:devel-boun...@kannel.org] On Behalf Of Ciaran Scolard Sent: vrijdag 4 april 2014 14:53 To: devel@kannel.org Subject: Opensmppbox compilation error on CentOS 6.5 x64 Hi All, Im trying to compile opensmppbox and Im getting compilation errors. This isnt my first install but either I appear to be doing something wrong (or are there bugs in the code?). Any ideas? Install svn co https://svn.kannel.org/gateway/trunk cd trunk/addons/opensmppbox/ aclocal autoconf ./bootstrap ./configure --with-mssql=/usr --with-ssl=/usr/include/openssl --enable-dependency-tracking --enable-ssl --enable-docs --enable-drafts --prefix=/usr/local/kannel --with-kannel-dir=/root/trunk make Output make all-recursive make[1]: Entering directory `/tmp/trunk/addons/opensmppbox' Making all in gw make[2]: Entering directory `/tmp/trunk/addons/opensmppbox/gw' gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw-g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/include/openssl/include -I/usr/local/kannel/include/kannel -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/openssl/include -I/usr/include -MT opensmppbox.o -MD -MP -MF .deps/opensmppbox.Tpo -c -o opensmppbox.o opensmppbox.c opensmppbox.c: In function âsend_pduâ: opensmppbox.c:622: warning: passing argument 1 of âsmpp_pdu_dumpâ from incompatible pointer type /usr/local/kannel/include/kannel/gw/smsc/smpp_pdu.h:239: note: expected âstruct SMPP_PDU *â but argument is of type âstruct Octstr *â opensmppbox.c:622: error: too many arguments to function âsmpp_pdu_dumpâ opensmppbox.c: In function âhandle_pduâ: opensmppbox.c:1513: warning: passing argument 1 of âsmpp_pdu_dumpâ from incompatible pointer type /usr/local/kannel/include/kannel/gw/smsc/smpp_pdu.h:239: note: expected âstruct SMPP_PDU *â but argument is of type âstruct Octstr *â opensmppbox.c:1513: error: too many arguments to function âsmpp_pdu_dumpâ opensmppbox.c: In function ârun_smppboxâ: opensmppbox.c:2099: warning: cast from pointer to integer of different size opensmppbox.c: In function âwait_for_connectionsâ: opensmppbox.c:2156: warning: cast to pointer from integer of different size opensmppbox.c: In function âsmppboxc_runâ: opensmppbox.c:2171: warning: cast from pointer to integer of different size make[2]: *** [opensmppbox.o] Error 1 make[2]: Leaving directory `/tmp/trunk/addons/opensmppbox/gw' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/trunk/addons/opensmppbox' make: *** [all] Error 2 Ciaran Scolard Network Manager phonovation limited phonovation house, 8 clarinda park north, dun laoghaire, co. dublin, ireland. tel: + 353 1 284 3011 mobile: + 353 87 2115934 fax: + 353 1 284 3223 http://www.phonovation.com/ www.phonovation.com registered in Ireland number 127108
Compilation Error .
Dear Developers , Have a nice day I face this issue today while compiling kannel gateway from svn.kannel.org # make byacc -d -p ws_yy_ wmlscript/wsgram.y mv y.tab.c wmlscript/wsgram.c byacc: e - line 111 of wmlscript/wsgram.y, syntax error %pure-parser ^ make: *** [wmlscript/wsgram.c] Error 1 Best Regards, Ahmed Shabana | System Engineer | Creative Communication Solutions
RE: Compilation Error .
Seems that I am the first one have this issue ? !! Best Regards, Ahmed Shabana| System Engineer | Creative Communication Solutions Skype_id : AhmedShabana2000 From: devel-boun...@kannel.org [mailto:devel-boun...@kannel.org] On Behalf Of Ahmed Shabana Sent: Wednesday, February 08, 2012 12:15 PM To: devel@kannel.org Cc: us...@kannel.org Subject: Compilation Error . Dear Developers , Have a nice day I face this issue today while compiling kannel gateway from svn.kannel.org # make byacc -d -p ws_yy_ wmlscript/wsgram.y mv y.tab.c wmlscript/wsgram.c byacc: e - line 111 of wmlscript/wsgram.y, syntax error %pure-parser ^ make: *** [wmlscript/wsgram.c] Error 1 Best Regards, Ahmed Shabana | System Engineer | Creative Communication Solutions
Re: Compilation Error .
Hi, please don't cross post to lists! You not even told what your system is... Seems some byacc incompatibility to bison yac: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584738 Alex Am 08.02.2012 um 13:24 schrieb Ahmed Shabana: Seems that I am the first one have this issue ? !! Best Regards, Ahmed Shabana| System Engineer | Creative Communication Solutions Skype_id : AhmedShabana2000 From: devel-boun...@kannel.org [mailto:devel-boun...@kannel.org] On Behalf Of Ahmed Shabana Sent: Wednesday, February 08, 2012 12:15 PM To: devel@kannel.org Cc: us...@kannel.org Subject: Compilation Error . Dear Developers , Have a nice day I face this issue today while compiling kannel gateway from “svn.kannel.org” # make byacc -d -p ws_yy_ wmlscript/wsgram.y mv y.tab.c wmlscript/wsgram.c byacc: e - line 111 of wmlscript/wsgram.y, syntax error %pure-parser ^ make: *** [wmlscript/wsgram.c] Error 1 Best Regards, Ahmed Shabana | System Engineer | Creative Communication Solutions
RE: Compilation Error .
Sorry from cross lists. And Thank you for reply . it works now . Best Regards, Ahmed Shabana| System Engineer | Creative Communication Solutions Skype_id : AhmedShabana2000 From: Alexander Malysh [mailto:malys...@googlemail.com] On Behalf Of Alexander Malysh Sent: Wednesday, February 08, 2012 3:15 PM To: Ahmed Shabana Cc: devel Devel Subject: Re: Compilation Error . Hi, please don't cross post to lists! You not even told what your system is... Seems some byacc incompatibility to bison yac: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584738 Alex Am 08.02.2012 um 13:24 schrieb Ahmed Shabana: Seems that I am the first one have this issue ? !! Best Regards, Ahmed Shabana| System Engineer | Creative Communication Solutions Skype_id : AhmedShabana2000 From: devel-boun...@kannel.orgmailto:devel-boun...@kannel.org [mailto:devel-boun...@kannel.org] On Behalf Of Ahmed Shabana Sent: Wednesday, February 08, 2012 12:15 PM To: devel@kannel.orgmailto:devel@kannel.org Cc: us...@kannel.org Subject: Compilation Error . Dear Developers , Have a nice day I face this issue today while compiling kannel gateway from svn.kannel.org # make byacc -d -p ws_yy_ wmlscript/wsgram.y mv y.tab.c wmlscript/wsgram.c byacc: e - line 111 of wmlscript/wsgram.y, syntax error %pure-parser ^ make: *** [wmlscript/wsgram.c] Error 1 Best Regards, Ahmed Shabana | System Engineer | Creative Communication Solutions
Re: AGAIN: Solaris 10 (sparc) compilation error (kannel cvs)
Hi Stipe, Thank you, now it compiles out-of-the-box! Stipe Tolj wrote: David Chkhartishvili wrote: Hi, My configure parameters: --disable-ssl --disable-docs --disable-assertions --with-mysql error: Configuring DB support ... checking whether to compile with MySQL support... searching checking for mysql_config... /usr/local/mysql/bin/mysql_config checking mysql version... 4.1.10a checking mysql reentrant libs... $(/usr/local/mysql/bin/mysql_config --libs_r) checking for mysql_init in -lmysqlclient_r... no checking mysql libs... $(/usr/local/mysql/bin/mysql_config --libs) checking for mysql_init in -lmysqlclient... no configure: error: Unable to find MySQL client libraries In the past this problem was fixed by using configure.in revision 1.140 and autoconf. But this time seems like it doesn't work anymore. Any other workarounds? When configure will be fixed for Solaris at last? now, I commited the following fix: 2005-11-03 Stipe Tolj [EMAIL PROTECTED] * configure[.in]: fixing mysql section for the sake of sparc-solaris-10. Thanks to David Chkhartishvili [EMAIL PROTECTED] for reporting this. [Msg-Id: [EMAIL PROTECTED]] see ViewCVS for details under: http://www.kannel.org/cgi-bin/viewcvs.cgi/gateway/configure.in.diff?r1=1.159r2=1.160 @David: please update cvs tree and retry to configure. I do assume that this variant should work out-of-the-box on solaris. Stipe mailto:stolj_{at}_wapme-group.de --- Wapme Systems AG Vogelsanger Weg 80 40470 Düsseldorf, NRW, Germany phone: +49.211.74845.0 fax: +49.211.74845.299 mailto:info_{at}_wapme-systems.de http://www.wapme-systems.de/ ---
Re: AGAIN: Solaris 10 (sparc) compilation error (kannel cvs)
David Chkhartishvili wrote: Hi, My configure parameters: --disable-ssl --disable-docs --disable-assertions --with-mysql error: Configuring DB support ... checking whether to compile with MySQL support... searching checking for mysql_config... /usr/local/mysql/bin/mysql_config checking mysql version... 4.1.10a checking mysql reentrant libs... $(/usr/local/mysql/bin/mysql_config --libs_r) this seems to me the breaking point. Actually we should see there the output of 'mysql_onfig --libs_r' rather then the calling statement itself. I'll have a check on a sparc box to see what we have there. Stipe mailto:stolj_{at}_wapme-group.de --- Wapme Systems AG Vogelsanger Weg 80 40470 Düsseldorf, NRW, Germany phone: +49.211.74845.0 fax: +49.211.74845.299 mailto:info_{at}_wapme-systems.de http://www.wapme-systems.de/ ---
Re: AGAIN: Solaris 10 (sparc) compilation error (kannel cvs)
David Chkhartishvili wrote: Hi, My configure parameters: --disable-ssl --disable-docs --disable-assertions --with-mysql error: Configuring DB support ... checking whether to compile with MySQL support... searching checking for mysql_config... /usr/local/mysql/bin/mysql_config checking mysql version... 4.1.10a checking mysql reentrant libs... $(/usr/local/mysql/bin/mysql_config --libs_r) checking for mysql_init in -lmysqlclient_r... no checking mysql libs... $(/usr/local/mysql/bin/mysql_config --libs) checking for mysql_init in -lmysqlclient... no configure: error: Unable to find MySQL client libraries In the past this problem was fixed by using configure.in revision 1.140 and autoconf. But this time seems like it doesn't work anymore. Any other workarounds? When configure will be fixed for Solaris at last? now, I commited the following fix: 2005-11-03 Stipe Tolj [EMAIL PROTECTED] * configure[.in]: fixing mysql section for the sake of sparc-solaris-10. Thanks to David Chkhartishvili [EMAIL PROTECTED] for reporting this. [Msg-Id: [EMAIL PROTECTED]] see ViewCVS for details under: http://www.kannel.org/cgi-bin/viewcvs.cgi/gateway/configure.in.diff?r1=1.159r2=1.160 @David: please update cvs tree and retry to configure. I do assume that this variant should work out-of-the-box on solaris. Stipe mailto:stolj_{at}_wapme-group.de --- Wapme Systems AG Vogelsanger Weg 80 40470 Düsseldorf, NRW, Germany phone: +49.211.74845.0 fax: +49.211.74845.299 mailto:info_{at}_wapme-systems.de http://www.wapme-systems.de/ ---
AGAIN: Solaris 10 (sparc) compilation error (kannel cvs)
Hi, My configure parameters: --disable-ssl --disable-docs --disable-assertions --with-mysql error: Configuring DB support ... checking whether to compile with MySQL support... searching checking for mysql_config... /usr/local/mysql/bin/mysql_config checking mysql version... 4.1.10a checking mysql reentrant libs... $(/usr/local/mysql/bin/mysql_config --libs_r) checking for mysql_init in -lmysqlclient_r... no checking mysql libs... $(/usr/local/mysql/bin/mysql_config --libs) checking for mysql_init in -lmysqlclient... no configure: error: Unable to find MySQL client libraries In the past this problem was fixed by using configure.in revision 1.140 and autoconf. But this time seems like it doesn't work anymore. Any other workarounds? When configure will be fixed for Solaris at last? Thanks.
Re: compilation error
wrote: hi,everybody I had a compilation trouble with kannel-1.3.2, my operation system is RedHat Linux Fedora 2. Now my application system does not work in kannel, but can works in WinWAP Browser 3.1 and Nokia WAP Gateway Simulator. here is log: 2004-08-27 15:34:38 [5566] [0] INFO: Connected to bearerbox at localhost port 13 002. 2004-08-27 15:35:41 [5566] [6] INFO: Fetching http://192.168.1.100:8080/wap/login.jsp 2004-08-27 15:35:41 [5566] [7] INFO: WBXML: No wbxml version given, assuming 1.1 2004-08-27 15:36:02 [5566] [6] INFO: Fetching http://192.168.1.100:8080/wap/login.jsp 2004-08-27 15:36:02 [5566] [7] ERROR: WML compiler: Compiling error: libxml retu rned a NULL pointer 2004-08-27 15:36:02 [5566] [7] WARNING: WSP: WML compilation failed. 2004-08-27 15:36:02 [5566] [7] WARNING: WSP: All converters for `text/vnd.wap.wml' at `http://192.168.1.100:8080/wap/login.jsp' failed. 2004-08-27 15:36:02 [5566] [6] INFO: Fetching http://192.168.1.100:8080/wap/allMenu.jsp?userId=99passWd=99devId=2 ok, unfortunatly I don't have the time to dig into this, but _at least_ from the ERRORs, we see that the libxml2 XML compiler fails. So I have to assume the given WML/XML input served by the HTTP server is not ok, right? Stipe mailto:stolj_{at}_wapme.de --- Wapme Systems AG Vogelsanger Weg 80 40470 Dsseldorf, NRW, Germany phone: +49.211.74845.0 fax: +49.211.74845.299 mailto:info_{at}_wapme-systems.de http://www.wapme-systems.de/ --- -BEGIN PGP PUBLIC KEY BLOCK- Version: GnuPG v1.2.2 (Cygwin) mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2 nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H g2HyLAEKQIp30Q== =aYCI -END PGP PUBLIC KEY BLOCK-
compilation error
hi,everybody I had a compilation trouble with kannel-1.3.2, my operation system is RedHat Linux Fedora 2. Now my application system does not work in kannel, but can works in WinWAP Browser 3.1 and Nokia WAP Gateway Simulator. here is log: 2004-08-27 15:34:38 [5566] [0] INFO: Connected to bearerbox at localhost port 13 002. 2004-08-27 15:35:41 [5566] [6] INFO: Fetching http://192.168.1.100:8080/wap/login.jsp 2004-08-27 15:35:41 [5566] [7] INFO: WBXML: No wbxml version given, assuming 1.1 2004-08-27 15:36:02 [5566] [6] INFO: Fetching http://192.168.1.100:8080/wap/login.jsp 2004-08-27 15:36:02 [5566] [7] ERROR: WML compiler: Compiling error: libxml retu rned a NULL pointer 2004-08-27 15:36:02 [5566] [7] WARNING: WSP: WML compilation failed. 2004-08-27 15:36:02 [5566] [7] WARNING: WSP: All converters for `text/vnd.wap.wml' at `http://192.168.1.100:8080/wap/login.jsp' failed. 2004-08-27 15:36:02 [5566] [6] INFO: Fetching http://192.168.1.100:8080/wap/allMenu.jsp?userId=99passWd=99devId=2 Entity: line 1: parser error : Input is not proper UTF-8, indicate encoding ! [EMAIL PROTECTED] [EMAIL PROTECTED] ^ Entity: line 1: error: Bytes: 0xBB 0xF1 0xC8 0xA1 [EMAIL PROTECTED] [EMAIL PROTECTED] ^ Entity: line 2: parser error : XML declaration allowed only at the start of the document ?xml version=1.0 ? ^ Entity: line 21: parser error : EntityRef: expecting ';' a href=http://192.168.1.100:8080/wap/renYuan.jsp?userId=99passWd ^ Entity: line 21: parser error : EntityRef: expecting ';' ref=http://192.168.1.100:8080/wap/renYuan.jsp?userId=99passWd=99devId ^ Entity: line 24: parser error : EntityRef: expecting ';' a href=http://192.168.1.100:8080/wap/wuPin.jsp?userId=99passWd ^ Entity: line 24: parser error : EntityRef: expecting ';' href=http://192.168.1.100:8080/wap/wuPin.jsp?userId=99passWd=99devId ^ Entity: line 36: parser error : EntityRef: expecting ';' a href=http://192.168.1.100:8080/wap/tongJiInput.jsp?userId=99passWd ^ Entity: line 36: parser error : EntityRef: expecting ';' http://192.168.1.100:8080/wap/tongJiInput.jsp?userId=99passWd=99devId ^ Entity: line 39: parser error : EntityRef: expecting ';' a href=http://192.168.1.100:8080/wap/System.jsp?userId=99; passWd= ^ Entity: line 39: parser error : EntityRef: expecting ';' href=http://192.168.1.100:8080/wap/System.jsp?userId=99passWd=99devId ^ 2004-08-27 15:36:06 [5566] [7] ERROR: WML compiler: Compiling error: libxml retu rned a NULL pointer 2004-08-27 15:36:06 [5566] [7] WARNING: WSP: WML compilation failed. 2004-08-27 15:36:06 [5566] [7] WARNING: WSP: All converters for `text/vnd.wap.wm l' at `http://192.168.1.100:8080/wap/allMenu.jsp?userId=99passWd=99dev Id=2' failed. here is login.jsp: %@ page contentType=text/vnd.wap.wml; % %@ page import = wap.util.* % % System.out.println(mhb0827); String infoTip = ; // remind infomation UserInfo userInfo = new UserInfo(request); int isLogOn = userInfo.isLogOn(); // //judge user and key if(isLogOn == 1) response.sendRedirect(response.encodeRedirectURL(allMenu.jsp? + userInfo.getOutput())); else if(isLogOn == -1) infoTip = Native2UnicodeForWAP2.convert(!); //this is chinese char else if(isLogOn == -2) infoTip = Native2UnicodeForWAP2.convert(!); //this is chinese char else infoTip = Native2UnicodeForWAP2.convert(); //this is chinese char % %= Util.getWapDocPrologue() % wml card id = form title=%= Native2UnicodeForWAP2.convert()% //this is chinese char p align=center %= infoTip%br/ fieldset %= Native2UnicodeForWAP2.convert()%:input name=userIdInput format=*M maxlength=10/br/ %= Native2UnicodeForWAP2.convert()%:input type=password name=pwd format=*N maxlength=10/ /fieldset do type=submit label=%= Native2UnicodeForWAP2.convert( )% go href=%= Util.getAppServerPath(request)%/wap/login.jsp method=post postfield name=userId value=$(userIdInput)/ postfield name=passWd value=$(pwd)/ postfield name=devId value=2/ /go /do /p /card /wml here is allMenu.jsp: %@ page contentType=text/vnd.wap.wml;% %@ page import=java.util.*, java.net.*, wap.util.*,