First, I have fixed compilation on at least FreeBSD 4.4-20010827-RC2.
So please get the latest CVS and see if it compiles on your box.
Second, can you try to change two lines like this
if (csize >= 20000)
to something like
if (csize >=0)
in sqldb.cpp, lines 1649 and 1686, and see if it helps.
Denis Mysenko wrote:
>
> It looks to be still buggy on *BSD:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x80729a3 in CSQLDatabase::SaveContents (this=0x81aea50,
> content=0xbfafd854, wordCount=1888, changed=1, hrefs=0xbfaf24f4, hsz=14,
>sqlUpdate=@0xbfaf8d24)
> at sqldb.cpp:1658
> 1658 memcpy(buf, (char*)&size, sizeof(size));
>
> And it seems that only ONE thread does all the job.
>
> On Thu, 15 Nov 2001, Kir Kolyshkin wrote:
>
> > As always with *BSD, some includes are missing. I will try to find out
> > what is missing, and will send you a patch. You can probably do it
> > yourself, too.
> >
> > Denis Mysenko wrote:
> > >
> > > Doesn't compile at least on FreeBSD 4.4-STABLE and FreeBSD 4.3-RELEASE.
> > >
> > > ...
> > > /usr/include/sys/proc.h:66: implicit declaration of function `int roundup(...)'
> > > /usr/include/sys/proc.h:222: `MAXCOMLEN' was not declared in this scope
> > > In file included from /usr/include/sys/user.h:53,
> > > from ../../include/buddy.h:26,
> > > from ../../include/content.h:32,
> > > from ../../include/sqldbi.h:29,
> > > from ../../include/mysqldbi.h:25,
> > > from mysqldb.cpp:27:
> > > /usr/include/sys/user.h: At top level:
> > > /usr/include/sys/user.h:90: `MAXLOGNAME' was not declared in this scope
> > > ...
> >
> >
> > --
> > [EMAIL PROTECTED] ICQ 7551596 Phone +7 903 6722750
> > Hard work may not kill you, but why take chances?
> > --
> >
>
> --
> Denis Mysenko
> Siberian Internet Company
> +7 382 2420471
--
[EMAIL PROTECTED] ICQ 7551596 Phone +7 903 6722750
Hard work may not kill you, but why take chances?
--