Thanks for looking into this, KK.  I was hesitant to push the change
without seeing why it was needed in this particular case.  Is the system
64 bit?

-- Murphy

On Thu, 2010-08-05 at 20:39 -0700, kk yap wrote:
> Ok,
> 
> I borrowed Nikhil's machine for a quick test.  The problem boils down
> to ssize_t is not int all the time.  I will fix that and push it.
> Thanks.
> 
> Regards
> KK
> 
> On 5 August 2010 20:04, Nikhil Handigol <nikh...@cs.stanford.edu> wrote:
> > Changing json-util.cc line 50 to:
> > jo = new json_object((const uint8_t *)str.get(), (ssize_t &)len);
> > worked for me.
> > Can someone with write permissions push the change to the destiny branch
> > main repository?
> > Thanks,
> > Nikhil
> >
> >
> > On Thu, Aug 5, 2010 at 6:30 PM, James "Murphy" McCauley <jam...@nau.edu>
> > wrote:
> >>
> >> I've built on Debian lenny using g++ 4.4.4 or 4.4.5 pulled from sid
> >> without running into this.  When you installed g++ 4.4.4, did you also
> >> get the updated C++ libraries and STL?
> >>
> >> You might try changing json-util.cc line 50 to:
> >> jo = new json_object((const uint8_t *)str.get(), len);
> >>
> >> -- Murphy
> >>
> >> On Thu, 2010-08-05 at 16:23 -0700, Nikhil Handigol wrote:
> >> > I'm trying to compile nox destiny branch (commit no.
> >> > 1df14bf6edbf2de1762dbfd27680e609094d6330) on debian lenny with gcc
> >> > version 4.4.4.
> >> >
> >> >
> >> > I get the following error:
> >> > ../../../src/lib/json-util.cc: In function ‘vigil::json_object*
> >> > vigil::json::load_document(const std::string&)’:
> >> > ../../../src/lib/json-util.cc:50: error: no matching function for call
> >> > to ‘vigil::json_object::json_object(unsigned char*, int&)’
> >> > ../../../src/include/json_object.hh:43: note: candidates are:
> >> > vigil::json_object::json_object(int)
> >> > ../../../src/include/json_object.hh:37: note:
> >> > vigil::json_object::json_object(const uint8_t*, ssize_t&, int)
> >> > ../../../src/include/json_object.hh:30: note:
> >> > vigil::json_object::json_object(const vigil::json_object&)
> >> > make[5]: *** [json-util.lo] Error 1
> >> >
> >> >
> >> > Is this an error due to some gcc version incompatibility? Or, am I
> >> > doing something wrong? Please let me know you need any further info.
> >> >
> >> >
> >> > Thanks,
> >> > Nikhil
> >> >
> >> >
> >> > _______________________________________________
> >> > nox-dev mailing list
> >> > nox-dev@noxrepo.org
> >> > http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
> >>
> >>
> >
> >
> > _______________________________________________
> > nox-dev mailing list
> > nox-dev@noxrepo.org
> > http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
> >
> >



_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to