[PyKDE] FreeBSD build problems error 23512
Steve Simmons
scs at di.org
Fri Aug 30 19:42:01 BST 2002
Jim Bublitz <jbublitz at nwinternet.com> wrote:
>Quoting from an earlier post by Steve Simmons:
. . .
>To make a long story short, atoll() is coming into FreeBSD but
>isn't there yet. The source shows it to be a one-liner, so adding
>this to the appropriate kio module did the trick:
>inline kiofilesize_t atoll( char * s ) { return (kiofilesize_t)
> strtoll(s, (char **)NULL, 10); }
Sorry, I should have given a bit more detail when originally posting.
After the atoll() error that Chris describes, I added the above
inline definition at line 5493 to kio/kiohuge.cpp.
Geez, I gotta take better notes. :-) It took 10 minutes to
find where the change had been made.
Please also note that adding the line there is a very shakey hack, not
a long-term fix. I'm trying to figure out where the real fix goes,
because (a) I strongly suspect that this line should *not* be applied
when building on systems that already define atoll(), and (b) I think
kiohuge.cpp gets built by other things so a new build will wipe out
the fix.
Over the weekend I'm going to try applying some test patches that
Jim sent me and do a new build. We'll no doubt go back and forth a
bit, but Chris, would you be willing to guinea pig the BSD port for
me once we're ready?
More information about the PyQt
mailing list