Re: Problems compiling the latest CVS version

pete mendoza <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
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 -dPA

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

[ben@xaos:~/cvs/remote/gateway]$ grep -n priority gw/smsbox.c
443: 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
[ben@xaos:~/cvs/remote/gateway]$ 

[ben@xaos:~/cvs/remote/gateway]$ cvs diff -u gw/smsbox.c
[Fri, 17 Sep 2004 09:40:09 +1000] Home Sweet Home
[ben@xaos:~/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 Lee
Melbourne, 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!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.