Caveat for BSD proggers...
Caveat for BSD proggers...
I restarted development of PDCLib after switching my laptop from Gentoo Linux to FreeBSD.
And you know what? My test drivers caught an error - in the BSD libc... ;D
Verily, let it be known that you shan't attempt to qsort() an array of length 0 if you're using the BSD libc, for thou shalt find yourself in an endless loop...
And you know what? My test drivers caught an error - in the BSD libc... ;D
Verily, let it be known that you shan't attempt to qsort() an array of length 0 if you're using the BSD libc, for thou shalt find yourself in an endless loop...
Every good solution is obvious once you've found it.
Re:Caveat for BSD proggers...
Interesting.Solar wrote: I restarted development of PDCLib after switching my laptop from Gentoo Linux to FreeBSD.
And you know what? My test drivers caught an error - in the BSD libc... ;D
Verily, let it be known that you shan't attempt to qsort() an array of length 0 if you're using the BSD libc, for thou shalt find yourself in an endless loop...
Out of interest, why thou on FreeBSD now
Re:Caveat for BSD proggers...
Heh, surely that'd be one of the most obvious boundary cases for the library to account for?
Re:Caveat for BSD proggers...
I was using (Gentoo) Linux before. I was always uneasy about the GPL. With the discussion about non-GPL drivers being disallowed, a recent incompatibility between the Linux kernel and my WLAN drivers (atmel), and the fact that my elderly laptop takes ages to compile and install a package from source... well, the choice was obvious.srg wrote: Out of interest, why thou on FreeBSD now
Every good solution is obvious once you've found it.
Re:Caveat for BSD proggers...
i would have thought a bug like that would have already been caught? which libc are you using/linking against? libc or libc_r ?
-- Stu --
Re:Caveat for BSD proggers...
The libc_r is dead, no longer development in 6.x and above. Even the build has been disabled in 7.x. To link should be -pthread.
Re:Caveat for BSD proggers...
FreeBSD 6.0 is the current release, 6 the current "stable" branch. The libc used in that branch falls into an endless loop on a completely trivial corner case. End of story.
Every good solution is obvious once you've found it.
Re:Caveat for BSD proggers...
But ports compiles from source?Solar wrote:I was using (Gentoo) Linux before. I was always uneasy about the GPL. With the discussion about non-GPL drivers being disallowed, a recent incompatibility between the Linux kernel and my WLAN drivers (atmel), and the fact that my elderly laptop takes ages to compile and install a package from source... well, the choice was obvious.srg wrote: Out of interest, why thou on FreeBSD now
FreeBSD 6????
what license does PDCLib come under?
Re:Caveat for BSD proggers...
PDCLib stands for "Public Domain C Library"... Guess what the license is?srg wrote: what license does PDCLib come under?
Re:Caveat for BSD proggers...
I guess there isn't one.Candy wrote:PDCLib stands for "Public Domain C Library"... Guess what the license is?srg wrote: what license does PDCLib come under?
I always misinterpret what Public Domain means.
Re:Caveat for BSD proggers...
Ports do compile from source, you are right. But under FreeBSD, ports isn't the only way to install packages, there is a binary package manager on top of it (don't remember the name though). Unlike under Gentoo, you'll find a binary package for probably every single port.srg wrote: But ports compiles from source?
cheers Joe
Re:Caveat for BSD proggers...
Nice I was always annoyed at how long it took to compile ports based apps.JoeKayzA wrote:Ports do compile from source, you are right. But under FreeBSD, ports isn't the only way to install packages, there is a binary package manager on top of it (don't remember the name though). Unlike under Gentoo, you'll find a binary package for probably every single port.srg wrote: But ports compiles from source?
cheers Joe
(BTW I've always profered FreeBSD to Linux, I just wish it had the same level of driver support)
Re:Caveat for BSD proggers...
Actually, for me the FreeBSD driver support is better, as my WLAN chipset is supported by the kernel directly.
As for Public Domain, German law doesn't really know the concept of "placing into PD", so PDCLib has a bit of legaleze at the top of its Readme file - but it sums up to "take it and be happy".
As for Public Domain, German law doesn't really know the concept of "placing into PD", so PDCLib has a bit of legaleze at the top of its Readme file - but it sums up to "take it and be happy".
Every good solution is obvious once you've found it.