Re: Problems compiling the latest CVS version

2004-09-17 Thread pete mendoza
error: gw/smsbox.c:897: structure has no member named `priority'


  if (priority != SMS_PARAM_UNDEFINED) { 896 if (urltrans_accept_x_kannel_headers(trans)) 897 msg-sms.priority = priority; 898 else 899 warning(0, "Tried to change priority to '%d', denied.", prio rity); 900 }
i get an error on this field, had to patch something from the top to be able to fit out telco requirements however still no luck on compiling... 


Benjamin Lee [EMAIL PROTECTED] wrote:
Have you tried to update from CVS?cvs -z3 update -dPAbecause line 897 in my gw/smsbox.c doesn't play with 'priority'.Do you have custom code in smsbox.c? So maybe the lines are offset?[EMAIL PROTECTED]:~/cvs/remote/gateway]$ grep -n priority gw/smsbox.c443: int *rpi, Octstr **binfo, int *priority)531: sscanf(octstr_get_cstr(val),"%d", priority);589: Octstr **binfo, int *priority)756: /* priority */757: get_tag(*body, octstr_imm("priority"), tmp, 0, 0);760: *priority = tmplong;803: Octstr *charset, Octstr *binfo, int priority)955: if (priority != SMS_PARAM_UNDEFINED) {957: msg-sms.priority = priority;959: warning(0, "Tried to change priority to '%d', denied.", priority);1038: int validity, deferred, priority;1056: = validity = deferred = priority = SMS_PARAM_UNDEFINED;1074: binfo,
 priority);1084: binfo, priority);1093: binfo, priority);1104: binfo, priority);1124: binfo, priority);1886: List *receiver, Octstr *binfo, int priority)2175: if (priority != SMS_PARAM_UNDEFINED  (priority  0 || priority  3)) {2179: msg-sms.priority = priority;2389: int alt_dcs, rpi, priority;2393: pid = alt_dcs = rpi = priority = SMS_PARAM_UNDEFINED;2461: tmp_string = http_cgi_variable(args, "priority");2463: sscanf(octstr_get_cstr(tmp_string),"%d", priority);2483: pid, alt_dcs, rpi, NULL, binfo, priority);2502: int pid, alt_dcs, rpi, priority;2514: pid = alt_dcs = rpi = priority = SMS_PARAM_UNDEFINED;2528: binfo, priority);2536: binfo, priority);2542: rpi, tolist, charset, binfo, priority);2593: binfo, priority);[Fri, 17 Sep 2004 09:38:00 +1000] Home Sweet Home[EMAIL PROTECTED]:~/cvs/remote/gateway]$
 [EMAIL PROTECTED]:~/cvs/remote/gateway]$ cvs diff -u gw/smsbox.c[Fri, 17 Sep 2004 09:40:09 +1000] Home Sweet Home[EMAIL PROTECTED]:~/cvs/remote/gateway]$ No differences...On Friday, 2004-09-17 at 02:53:22 AM, pete mendoza scribbled:  Hi to all, was trying to compile the latest CVS and keep on getting this error:  gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/include/libxml2 -o gw/smsbox.o -c gw/smsbox.c gw/smsbox.c: In function `fill_message': gw/smsbox.c:897: structure has no member named `priority' gw/smsbox.c: In function `smsbox_req_handle': gw/smsbox.c:2137: structure has no member named `priority' make: *** [gw/smsbox.o] Error 1   I think this has something to do with the latest patch - priority queue  hope you could help. thanks in advance.-- Benjamin LeeMelbourne, Australia +61 416 BEN LEE
 http://www.realthought.net/__Let us not look back in anger or forward in fear, but around us in awareness.-- James Thurber
		Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!

Problems compiling the latest CVS version

2004-09-16 Thread pete mendoza

Hi to all, was trying to compile the latest CVS and keep on getting this error:

gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/include/libxml2 -o gw/smsbox.o -c gw/smsbox.cgw/smsbox.c: In function `fill_message':gw/smsbox.c:897: structure has no member named `priority'gw/smsbox.c: In function `smsbox_req_handle':gw/smsbox.c:2137: structure has no member named `priority'make: *** [gw/smsbox.o] Error 1


I think this has something to do with the latest patch - priority queue

hope you could help. thanks in advance.

~pete



		Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!

Re: CVS version

2003-07-18 Thread Aarno Syvänen
It worked with me, of course :( Can send more detail about the crash ?

Aarno

On Thursday, July 17, 2003, at 07:43 AM, Juan Enrique Gómez wrote:

El mi? 16-07-2003 a las 18:44, Bruno Rodrigues escribió:

Hi!

I haven't tried 1.3.0 but from 1.3.1 it crash in every version till the
latest i have got from CVS .
Thanks!

Juan Enrique Gómez [EMAIL PROTECTED] wrote:
[-- text/plain, encoding quoted-printable, charset: ISO-8859-1, 23  
lines --]

Hi!

Any one has had problems with wapbox causing a segmentation fault  
when
trying to make a wappush?, it works great with 1.2.1 but on way with  
any
devel version.
Does it crash in latest cvs or also in all 1.3.0, 1.3.1 or one week  
late cvs ?

I've done some changes in wap code this week and I need to understand  
if
it could be my code or if it's a old bug

Best.

--  
--- 
---
|Juan Enrique Gomez Perez
|Metropoli2000 Networks, S.L.
| Phone: +34 914250023 Fax: +34 914250136
| email: [EMAIL PROTECTED]
--- 
---
PGP Fingerprint: 6B39 3A2B A17B 1E8E CFFD  FC14 678E 0A22 BD80 C486
Public Key:  
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xBD80C486

If this message hasn't a correct signature please notify
it to [EMAIL PROTECTED] To get the public key please
use the above url. Thanks for your help.
--- 
---
signature.asc



Re: CVS version

2003-07-16 Thread Juan Enrique Gómez
El mi? 16-07-2003 a las 18:44, Bruno Rodrigues escribió:

Hi!

I haven't tried 1.3.0 but from 1.3.1 it crash in every version till the
latest i have got from CVS .

Thanks!

 Juan Enrique Gómez [EMAIL PROTECTED] wrote:
  [-- text/plain, encoding quoted-printable, charset: ISO-8859-1, 23 lines --]
  
  Hi!
  
  Any one has had problems with wapbox causing a segmentation fault when
  trying to make a wappush?, it works great with 1.2.1 but on way with any
  devel version.
 
 Does it crash in latest cvs or also in all 1.3.0, 1.3.1 or one week late cvs ?
 
 I've done some changes in wap code this week and I need to understand if
 it could be my code or if it's a old bug
 
  
  Best.
 
-- 
--
|Juan Enrique Gomez Perez
|Metropoli2000 Networks, S.L.
| Phone: +34 914250023 Fax: +34 914250136
| email: [EMAIL PROTECTED]
--
PGP Fingerprint: 6B39 3A2B A17B 1E8E CFFD  FC14 678E 0A22 BD80 C486
Public Key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xBD80C486

If this message hasn't a correct signature please notify 
it to [EMAIL PROTECTED] To get the public key please
use the above url. Thanks for your help.
--


signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmadadigitalmente


CVS version

2003-07-15 Thread Juan Enrique Gómez
Hi!

Any one has had problems with wapbox causing a segmentation fault when
trying to make a wappush?, it works great with 1.2.1 but on way with any
devel version.

Best.
-- 
--
|Juan Enrique Gomez Perez
|Metropoli2000 Networks, S.L.
| Phone: +34 914250023 Fax: +34 914250136
| email: [EMAIL PROTECTED]
--
PGP Fingerprint: 6B39 3A2B A17B 1E8E CFFD  FC14 678E 0A22 BD80 C486
Public Key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xBD80C486

If this message hasn't a correct signature please notify 
it to [EMAIL PROTECTED] To get the public key please
use the above url. Thanks for your help.
--


signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmadadigitalmente


Re: CVS version

2003-07-15 Thread Stefan Cars
It would be good with some additional information such as logs to
investigate why this is happening!

/S

On Tue, 15 Jul 2003, Juan Enrique Gómez wrote:

 Hi!

 Any one has had problems with wapbox causing a segmentation fault when
 trying to make a wappush?, it works great with 1.2.1 but on way with any
 devel version.

 Best.
 --
 --
 |Juan Enrique Gomez Perez
 |Metropoli2000 Networks, S.L.
 | Phone: +34 914250023 Fax: +34 914250136
 | email: [EMAIL PROTECTED]
 --
 PGP Fingerprint: 6B39 3A2B A17B 1E8E CFFD  FC14 678E 0A22 BD80 C486
 Public Key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xBD80C486

 If this message hasn't a correct signature please notify
 it to [EMAIL PROTECTED] To get the public key please
 use the above url. Thanks for your help.
 --




Re: CVS version

2003-07-15 Thread Juan Enrique Gómez
El mar, 15-07-2003 a las 17:41, Stefan Cars escribió:

Thanks in advance, here is a strace debug, and a wapbox debug. Thanks
for your interest.


 strace -
20901 08:14:21 --- SIGSTOP (Stopped (signal)) ---
20900 08:14:21 --- SIGSTOP (Stopped (signal)) ---
20899 08:14:21 --- SIGSTOP (Stopped (signal)) ---
20898 08:14:21 --- SIGSTOP (Stopped (signal)) ---
20898 08:14:21 poll( unfinished ...
20897 08:14:21 --- SIGSTOP (Stopped (signal)) ---
20897 08:14:21 poll( unfinished ...
20896 08:14:21 --- SIGSTOP (Stopped (signal)) ---
20895 08:14:21 --- SIGSTOP (Stopped (signal)) ---
20894 08:14:21 --- SIGSTOP (Stopped (signal)) ---
20893 08:14:21 --- SIGSTOP (Stopped (signal)) ---
20892 08:14:21 --- SIGSTOP (Stopped (signal)) ---
20891 08:14:21 --- SIGSTOP (Stopped (signal)) ---
20891 08:14:21 time(NULL)   = 1058249661
20891 08:14:21 poll( unfinished ...
20888 08:14:21 --- SIGSTOP (Stopped (signal)) ---
20890 08:14:21 --- SIGSTOP (Stopped (signal)) ---
20889 08:14:21 --- SIGSTOP (Stopped (signal)) ---
20887 08:14:21 --- SIGSTOP (Stopped (signal)) ---
20887 08:14:21 getppid()= 20886
20887 08:14:21 poll( unfinished ...
20886 08:14:21 read(37, 0xbfffea80, 4096) = -1 EAGAIN (Resource
temporarily unavailable)
20886 08:14:21 poll( unfinished ...
20887 08:14:23 ... poll resumed [{fd=6, events=POLLIN}], 1, 2000) = 0
20887 08:14:23 getppid()= 20886
20887 08:14:23 poll([{fd=6, events=POLLIN}], 1, 2000) = 0
20887 08:14:25 getppid()= 20886
20887 08:14:25 poll([{fd=6, events=POLLIN}], 1, 2000) = 0
20887 08:14:27 getppid()= 20886
20887 08:14:27 poll( unfinished ...
20898 08:14:29 ... poll resumed [{fd=29, events=POLLIN}, {fd=26,
events=POLLIN, revents=POLLIN}], 2, -1) = 1
20898 08:14:29 accept(26, {sin_family=AF_INET, sin_port=htons(49508),
sin_addr=inet_addr(192.168.1.6)}}, [16]) = 40
20898 08:14:29 fcntl64(0x28, 0x3, 0x, 0x3) = 2
20898 08:14:29 fcntl64(0x28, 0x4, 0x802, 0x4) = 0
20898 08:14:29 time([1058249669])   = 1058249669
20898 08:14:29 write(2, 2003-07-15 08:14:29 [11] DEBUG: ..., 77) = 77
20898 08:14:29 write(5, 2003-07-15 08:14:29 [11] DEBUG: ..., 77) = 77
20898 08:14:29 write(28, \0, 1)   = 1
20897 08:14:29 ... poll resumed [{fd=27, events=POLLIN,
revents=POLLIN}], 1, -1) = 1
20898 08:14:29 poll( unfinished ...
20897 08:14:29 read(27, \0, 128)  = 1
20897 08:14:29 read(27, 0x4536b9cc, 128) = -1 EAGAIN (Resource
temporarily unavailable)
20897 08:14:29 poll([{fd=27, events=POLLIN}, {fd=40, events=POLLIN,
revents=POLLIN}], 2, -1) = 1
20897 08:14:29 read(40, POST /wappush HTTP/1.1\r\nHost: 19..., 4096) =
1319
20897 08:14:29 kill(20900, SIGRT_0 unfinished ...
20900 08:14:29 --- SIGRT_0 (Real-time signal 0) ---
20897 08:14:29 ... kill resumed ) = 0
20901 08:14:29 --- SIGRT_0 (Real-time signal 0) ---
20897 08:14:29 poll( unfinished ...
20887 08:14:29 ... poll resumed [{fd=6, events=POLLIN}], 1, 2000) = -1
EINTR (Interrupted system call)
20887 08:14:29 --- SIGRT_1 (Real-time signal 1) ---
20887 08:14:29 sigreturn()  = ? (mask now ~[TRAP KILL STOP])
20887 08:14:29 getppid()= 20886
20887 08:14:29 wait4(-1, [WIFSIGNALED(s)  WTERMSIG(s) == SIGSEGV],
WNOHANG|__WCLONE, NULL) = 20901
20887 08:14:29 modify_ldt(0x1, 0x819fa6c, 0x10) = 0
20887 08:14:29 munmap(0x46b6c000, 8388608) = 0
20887 08:14:29 kill(20904, SIGSEGV) = 0
20887 08:14:29 kill(20900, SIGSEGV) = 0
20887 08:14:29 --- SIGRT_1 (Real-time signal 1) ---
20887 08:14:29 sigreturn()  = ? (mask now ~[TRAP KILL STOP])
20887 08:14:29 kill(20899, SIGSEGV unfinished ...
20899 08:14:29 --- SIGSEGV (Segmentation fault) ---
20887 08:14:29 ... kill resumed ) = 0
20887 08:14:29 kill(20898, SIGSEGV unfinished ...
20898 08:14:29 ... poll resumed [{fd=29, events=POLLIN}, {fd=26,
events=POLLIN}], 2, -1) = -1 EINTR (Interrupted system call)
20887 08:14:29 ... kill resumed ) = 0
20898 08:14:29 --- SIGSEGV (Segmentation fault) ---
20887 08:14:29 --- SIGRT_1 (Real-time signal 1) ---
20887 08:14:29 sigreturn()  = ? (mask now ~[TRAP KILL STOP])
20887 08:14:29 --- SIGRT_1 (Real-time signal 1) ---
20887 08:14:29 sigreturn()  = ? (mask now ~[TRAP KILL STOP])
20887 08:14:29 kill(20897, SIGSEGV unfinished ...
20897 08:14:29 ... poll resumed [{fd=27, events=POLLIN}], 1, -1) = -1
EINTR (Interrupted system call)
20887 08:14:29 ... kill resumed ) = 0
20897 08:14:29 --- SIGSEGV (Segmentation fault) ---
20887 08:14:29 kill(20896, SIGSEGV unfinished ...
20896 08:14:29 --- SIGSEGV (Segmentation fault) ---
20887 08:14:29 ... kill resumed ) = 0
20887 08:14:29 --- SIGRT_1 (Real-time signal 1) ---
20887 08:14:29 sigreturn()  = ? (mask now ~[TRAP KILL STOP])
20887 08:14:29 --- SIGRT_1 (Real-time signal 1) ---
20887 08:14:29 sigreturn()  = ? (mask now ~[TRAP KILL STOP])
20887 08:14:29 kill(20895, SIGSEGV unfinished ...
20895 08:14:29 --- SIGSEGV (Segmentation fault) ---
20887 08:14:29