Ric wrote:
> Author: Ric
> Email: [EMAIL PROTECTED]
> Message:
> Hello,
> I was looking at cache.c as matthew suggested,using 3.15 version
> os is cobalt linux 6.0 on raq4i,It was suggested that I comment out
> qsort()function at lines 899/890..I have tried to comment out these lines and get an
>install error during make..
> These are the lines in question in cache.c
>
> if(header.version!=UdmCalcCacheVersion()){
> close(fd1);
> fprintf(stderr,"Incorect cache file version\n");
> continue;
> }
> }
>
>table=(UDM_CACHETABLE*)malloc((header.ntables+1)*sizeof(UDM_CACHETABLE));
> data_ofs=sizeof(header)+sizeof(UDM_CACHETABLE)*header.ntables;
> read(fd1,table,header.ntables*sizeof(UDM_CACHETABLE));
>
>qsort(&table,(size_t)header.ntables,sizeof(UDM_CACHETABLE),cmptable);
>
> I have tried as I said to comment out any or all of these
> no avail//what exactly did you comment out on yours and I will try it and let you
>know how it works..
Ok 2 points Ric,
1/ commenting out only the qsort() line should not effect the make ... what error are
you getting...?
2/ I was avouding sending this to the list as it may not be a bug-it just worked in my
case, and the idea of you
testing it on your server was that if it worked then I/we know there is a bug to look
at (probably in the OS).
you should be able to change your source from the above to:
read(fd1,table,header.ntables*sizeof(UDM_CACHETABLE));
// qsort(&table,(size_t)header.ntables,sizeof(UDM_CACHETABLE),cmptable);
you should be able to recompile with out any 'make' problems, if you do get any errors
mail the errors.
Test this and if it works let me and the guys on [EMAIL PROTECTED] know that it
'fixed' your installation.
(Please remember this is not actually a fix it's a woraround until it is fixed)
Yours
Matthew
begin:vcard
n:Sullivan;Matthew
tel;cell:+61 (0)414 861 744 (Not for work use)
tel;fax:+61 (0)3 9693 7699
tel;home:+61 (0)3 9397 4859
tel;work:+61 (0)3 9693 7640
x-mozilla-html:TRUE
url:http://people.netscape.com/matthews/
org:<TABLE cols=2 width=350 spacing=0 rows=1><TR><TD width=50><img src="http://people.netscape.com/matthews/penguin.gif"></TD><TD><TABLE width=250 spacing=0 border=0><TR><TD><FONT SIZE=2>Senior Technical Support Engineer<TR><TD><FONT SIZE=2>iPlanet E-Commerce Solutions<TR><TD><FONT SIZE=2>Netscape Communications Australia Pty Ltd<TR><TD><FONT SIZE=2>A division of America On Line Inc.</TABLE></TABLE>
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Netscape Communications Australia=0D=0A;Level 1, The Tea House, 28 Clarendon Street;South Melbourne;VIC 3205;Australia
x-mozilla-cpt:nemesis.netscape.com;-18464
fn:Matthew Sullivan
end:vcard
S/MIME Cryptographic Signature