Re: Error compiling MySQL support on RedHat 9 - SOLVED!

2004-08-31 Thread Alejandro Guerrieri
Yep, I agree it would be good if it's fixed. The "sed" method I've
tried worked for me, it's just a little mod on one line of the script
and it shouldn't break anything in other platforms.

BTW, 1.3.2 and MySQL DLR are working like a charm on RH9.

Regards,


On Tue, 31 Aug 2004 10:14:12 +0100, James Coleman <[EMAIL PROTECTED]> wrote:
> Brilliant Alejandro! You and Stipe did all the work. Not me.
> 
> mysql_config
> Usage: /usr/bin/mysql_config [OPTIONS]
> Options:
>--cflags[-I'/usr/include/mysql']
>--libs  [-L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl -lm]
>--socket[/var/lib/mysql/mysql.sock]
>--port  [3306]
>--version   [3.23.58]
> 
> Hmmm. The configure for 1.2.1 works with this.
> I wonder does it use mysql_config ?
> yes. And lots of the code in configure looks the same ... but I boggle
> again. :(   Possibly in 1.2.1 the mysql_config check fails but
> a later check sets up mysql libs and vars correctly ... urngh.
> 
> I went through the configure script for 1.2.1 to try see what was happening
> and how it works there but it would take me more time that I don't have now.
> I think it would be good to fix this in the configure as I
> guess it happens at least on all redhat systems.
> 
> James.
> 
> On Fri, Aug 27, 2004 at 02:23:39AM +0200, Alejandro Guerrieri wrote:
> > Hi list,
> >
> > I've finally managed to find the problem compiling MySQL support on RedHat
> > 9.
> >
> > The error comes from the single quotes around the library path on
> > mysql_config output.
> >
> > James, you were right on the nail!:
> > >SO ... ??? could it be the  -L'/usr/lib/mysql'  those single quotes?
> > >I've looked but nasty to find exactly where that is set in $LIBS
> >
> > :)
> >
> > It seems at least that version of mysql (RedHat RPMs: mysql-3.23.58-1.9 and
> > mysql-devel-3.23.58-1.9) output libraries that way...
> >
> > ]$ mysql_config
> > Usage: /usr/bin/mysql_config [OPTIONS]
> > Options:
> > --cflags[-I'/usr/include/mysql']
> > --libs
> >  [-L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl -lm]
> > --socket[/var/lib/mysql/mysql.sock]
> > --port  [3306]
> > --version   [3.23.58]
> >
> > And more specifically:
> >
> > ]$ mysql_config --libs
> > -L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl -lm
> >
> > Probably a silly status bug on mysql_config output. Fortunately, a very
> > easy-to-solve one!
> >
> > Looking at configure.log, those buggers are there on -L'/usr/lib/mysql'
> >
> > configure:4459: checking for mysql_init in -lmysqlclient
> > configure:4478: gcc -o
> > conftest  -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/include/libxml2   -rdynam
> > ic
> > conftest.c -lmysqlclient  -L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl
> >  -lm  -lresolv -lnsl -lm  -lpthread -L/usr/lib -lxml2 -lz -lm 1>&5
> > /usr/bin/ld: cannot find -lmysqlclient
> > collect2: ld returned 1 exit status
> >
> > The funny part is, if you run that line on the terminal, the shell mangles
> > things somehow and it works, but from the sh script it causes trouble.
> >
> > So, what I did was to modify the configure script on line 4453:
> >
> > Before:
> > MYSQL_LIBS="$($MYSQL_CONFIG --libs)"
> >
> > After:
> > MYSQL_LIBS="$($MYSQL_CONFIG --libs | sed 's/\x27//g')"
> >
> > Very simple: I've run the output for mysql_config through "sed" and removed
> > hex character 27 (the single quote character) globally.
> >
> > After that, it compiled like a charm!
> >
> > I also did the mod on configure.in and tried to run autoconf, but it
> > complained about libobjs:
> >
> > ]$ autoconf
> > configure.in:135: error: do not use LIBOBJS directly, use AC_LIBOBJ (see
> > section `AC_LIBOBJ vs LIBOBJS'
> >   If this token and others are legitimate, please use m4_pattern_allow.
> >   See the Autoconf documentation.
> >
> > So I left the excercise for you autoconf gurus ;)
> >
> > Anyway, the change to make on configure.in is on line 798:
> >
> > Before:
> > MYSQL_LIBS="$($MYSQL_CONFIG --libs)"
> >
> > After:
> > MYSQL_LIBS="$($MYSQL_CONFIG --libs | sed 's/\x27//g')"
> >
> > (Sorry, I'm too lazy to make a diff just for this small mod ;)  )
> >
> > The mod could be applied harmlessly to any installation. If the single
> > quotes are missing (as they should be!) sed won´t change anything and it
> > will compile as always, so I suggest this (or at least an equivalent mod)
> > could be applied to CVS to allow to us RedHat 9 Kannellers to compile MySQL
> > support. Moreover, sed is used many times on the configure script, so it
> > won´t add any new dependencies.
> >
> > Hope it helps someone!
> >
> > Best regards and thank you all people who helped me to find the solution
> > (Stipe and James specially!)
> >
> >
> 
>



Re: Ericsson R520 -> CMS

2004-08-31 Thread Matti Ärmänen
Now I tried, but there is no difference.
Here is the log:
2004-08-31 14:24:02 [25007] [7] DEBUG: AT2[ttyS0]: --> AT+CNMI=3,2,0,0,0^M
2004-08-31 14:24:02 [25007] [7] DEBUG: AT2[ttyS0]: <-- OK
...
2004-08-31 14:29:27 [25007] [7] DEBUG: AT2[ttyS0]: <-- +CMT: 126
2004-08-31 14:29:28 [25007] [7] DEBUG: AT2[ttyS0]: <-- 
0791534850020200040C915348501075743900408013419222807AD47ABB1DA683F27CBA0B240DC3EBEAB21B144EAFC3611728C96E87E7F330E8ED06D1C3E97538EC0221D3EB779A5D07B1DF7078BDEE0215D96FF7FA2D57D7EBA0307B1D0EBB40D4FD9CBE47EFDDA079383D4F83E8E1F01C144EA3CB6537485D47B3D36E7A38ECFE81A8BA26
2004-08-31 14:29:28 [25007] [7] ERROR: AT2[ttyS0]: got +CMT but 
pdu_extract failed

Matti
Stipe Tolj wrote:
Matti Ärmänen wrote:
Hello!
SonyEricsson GT-47 does not work either with AT+CNMI=3,2,0,0, but 
works with AT+CNMI=3,1,0,0
Here is the log:
2004-08-30 13:31:44 [23220] [7] DEBUG: AT2[ttyS0]: --> AT+CNMI=3,2,0,0^M
2004-08-30 13:31:45 [23220] [7] DEBUG: AT2[ttyS0]: <-- OK
2004-08-30 13:31:45 [23220] [7] INFO: AT2[ttyS0]: AT SMSC 
successfully opened.
2004-08-30 13:31:46 [23232] [9] DEBUG: Thread 9 
(gw/bb_boxc.c:function) maps to pid 23232.
2004-08-30 13:31:46 [23232] [9] INFO: Client connected from <127.0.0.1>
2004-08-30 13:31:46 [23232] [9] DEBUG: Started thread 10 
(gw/bb_boxc.c:boxc_sender)
2004-08-30 13:31:46 [23234] [10] DEBUG: Thread 10 
(gw/bb_boxc.c:boxc_sender) maps to pid 23234.
2004-08-30 13:31:46 [23219] [6] DEBUG: Started thread 9 
(gw/bb_boxc.c:function)
2004-08-30 13:31:47 [23220] [7] DEBUG: AT2[ttyS0]: --> AT^M
2004-08-30 13:31:47 [23220] [7] DEBUG: AT2[ttyS0]: <-- OK
2004-08-30 13:33:49 [23220] [7] DEBUG: AT2[ttyS0]: --> AT^M
2004-08-30 13:33:49 [23220] [7] DEBUG: AT2[ttyS0]: <-- OK
2004-08-30 13:35:51 [23220] [7] DEBUG: AT2[ttyS0]: --> AT^M
2004-08-30 13:35:51 [23220] [7] DEBUG: AT2[ttyS0]: <-- OK
2004-08-30 13:35:51 [23220] [7] DEBUG: AT2[ttyS0]: <-- +CMT: 23
2004-08-30 13:35:52 [23220] [7] DEBUG: AT2[ttyS0]: <-- 
0791534850028200040C9153486503234600114080033153748004D4F29C0E
2004-08-30 13:35:52 [23220] [7] ERROR: AT2[ttyS0]: got +CMT but 
pdu_extract failed

thanks Matti for the information. Did you try "3,2,0,0,0" too (with 3 
zeros)?

There are still posts that complain that this should work.
Stipe




Re: compilation error

2004-08-31 Thread Stipe Tolj
蒋 勇 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 
> 
> 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 
> 
> 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 
>  

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 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/
---

-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-



Re: Ericsson R520 -> CMS

2004-08-31 Thread Stipe Tolj
Matti Ärmänen wrote:
Hello!
SonyEricsson GT-47 does not work either with AT+CNMI=3,2,0,0, but works 
with AT+CNMI=3,1,0,0
Here is the log:
2004-08-30 13:31:44 [23220] [7] DEBUG: AT2[ttyS0]: --> AT+CNMI=3,2,0,0^M
2004-08-30 13:31:45 [23220] [7] DEBUG: AT2[ttyS0]: <-- OK
2004-08-30 13:31:45 [23220] [7] INFO: AT2[ttyS0]: AT SMSC successfully 
opened.
2004-08-30 13:31:46 [23232] [9] DEBUG: Thread 9 (gw/bb_boxc.c:function) 
maps to pid 23232.
2004-08-30 13:31:46 [23232] [9] INFO: Client connected from <127.0.0.1>
2004-08-30 13:31:46 [23232] [9] DEBUG: Started thread 10 
(gw/bb_boxc.c:boxc_sender)
2004-08-30 13:31:46 [23234] [10] DEBUG: Thread 10 
(gw/bb_boxc.c:boxc_sender) maps to pid 23234.
2004-08-30 13:31:46 [23219] [6] DEBUG: Started thread 9 
(gw/bb_boxc.c:function)
2004-08-30 13:31:47 [23220] [7] DEBUG: AT2[ttyS0]: --> AT^M
2004-08-30 13:31:47 [23220] [7] DEBUG: AT2[ttyS0]: <-- OK
2004-08-30 13:33:49 [23220] [7] DEBUG: AT2[ttyS0]: --> AT^M
2004-08-30 13:33:49 [23220] [7] DEBUG: AT2[ttyS0]: <-- OK
2004-08-30 13:35:51 [23220] [7] DEBUG: AT2[ttyS0]: --> AT^M
2004-08-30 13:35:51 [23220] [7] DEBUG: AT2[ttyS0]: <-- OK
2004-08-30 13:35:51 [23220] [7] DEBUG: AT2[ttyS0]: <-- +CMT: 23
2004-08-30 13:35:52 [23220] [7] DEBUG: AT2[ttyS0]: <-- 
0791534850028200040C9153486503234600114080033153748004D4F29C0E
2004-08-30 13:35:52 [23220] [7] ERROR: AT2[ttyS0]: got +CMT but 
pdu_extract failed
thanks Matti for the information. Did you try "3,2,0,0,0" too (with 3 
zeros)?

There are still posts that complain that this should work.
Stipe
mailto:stolj_{at}_wapme.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/
---
-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-


Re: Error compiling MySQL support on RedHat 9 - SOLVED!

2004-08-31 Thread James Coleman
Brilliant Alejandro! You and Stipe did all the work. Not me.

mysql_config
Usage: /usr/bin/mysql_config [OPTIONS]
Options:
--cflags[-I'/usr/include/mysql']
--libs  [-L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl -lm]
--socket[/var/lib/mysql/mysql.sock]
--port  [3306]
--version   [3.23.58]

Hmmm. The configure for 1.2.1 works with this.
I wonder does it use mysql_config ?
yes. And lots of the code in configure looks the same ... but I boggle
again. :(   Possibly in 1.2.1 the mysql_config check fails but
a later check sets up mysql libs and vars correctly ... urngh.

I went through the configure script for 1.2.1 to try see what was happening 
and how it works there but it would take me more time that I don't have now.
I think it would be good to fix this in the configure as I
guess it happens at least on all redhat systems.

James.

On Fri, Aug 27, 2004 at 02:23:39AM +0200, Alejandro Guerrieri wrote:
> Hi list,
> 
> I've finally managed to find the problem compiling MySQL support on RedHat
> 9.
> 
> The error comes from the single quotes around the library path on
> mysql_config output.
> 
> James, you were right on the nail!:
> >SO ... ??? could it be the  -L'/usr/lib/mysql'  those single quotes?
> >I've looked but nasty to find exactly where that is set in $LIBS
> 
> :)
> 
> It seems at least that version of mysql (RedHat RPMs: mysql-3.23.58-1.9 and
> mysql-devel-3.23.58-1.9) output libraries that way...
> 
> ]$ mysql_config
> Usage: /usr/bin/mysql_config [OPTIONS]
> Options:
> --cflags[-I'/usr/include/mysql']
> --libs
>  [-L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl -lm]
> --socket[/var/lib/mysql/mysql.sock]
> --port  [3306]
> --version   [3.23.58]
> 
> And more specifically:
> 
> ]$ mysql_config --libs
> -L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl -lm
> 
> Probably a silly status bug on mysql_config output. Fortunately, a very
> easy-to-solve one!
> 
> Looking at configure.log, those buggers are there on -L'/usr/lib/mysql'
> 
> configure:4459: checking for mysql_init in -lmysqlclient
> configure:4478: gcc -o
> conftest  -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/include/libxml2   -rdynam
> ic
> conftest.c -lmysqlclient  -L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl
>  -lm  -lresolv -lnsl -lm  -lpthread -L/usr/lib -lxml2 -lz -lm 1>&5
> /usr/bin/ld: cannot find -lmysqlclient
> collect2: ld returned 1 exit status
> 
> The funny part is, if you run that line on the terminal, the shell mangles
> things somehow and it works, but from the sh script it causes trouble.
> 
> So, what I did was to modify the configure script on line 4453:
> 
> Before:
> MYSQL_LIBS="$($MYSQL_CONFIG --libs)"
> 
> After:
> MYSQL_LIBS="$($MYSQL_CONFIG --libs | sed 's/\x27//g')"
> 
> Very simple: I've run the output for mysql_config through "sed" and removed
> hex character 27 (the single quote character) globally.
> 
> After that, it compiled like a charm!
> 
> I also did the mod on configure.in and tried to run autoconf, but it
> complained about libobjs:
> 
> ]$ autoconf
> configure.in:135: error: do not use LIBOBJS directly, use AC_LIBOBJ (see
> section `AC_LIBOBJ vs LIBOBJS'
>   If this token and others are legitimate, please use m4_pattern_allow.
>   See the Autoconf documentation.
> 
> So I left the excercise for you autoconf gurus ;)
> 
> Anyway, the change to make on configure.in is on line 798:
> 
> Before:
> MYSQL_LIBS="$($MYSQL_CONFIG --libs)"
> 
> After:
> MYSQL_LIBS="$($MYSQL_CONFIG --libs | sed 's/\x27//g')"
> 
> (Sorry, I'm too lazy to make a diff just for this small mod ;)  )
> 
> The mod could be applied harmlessly to any installation. If the single
> quotes are missing (as they should be!) sed won´t change anything and it
> will compile as always, so I suggest this (or at least an equivalent mod)
> could be applied to CVS to allow to us RedHat 9 Kannellers to compile MySQL
> support. Moreover, sed is used many times on the configure script, so it
> won´t add any new dependencies.
> 
> Hope it helps someone!
> 
> Best regards and thank you all people who helped me to find the solution
> (Stipe and James specially!)
> 
>