sctincman / freeocl

OpenCL 1.2 implementation targeting CPUs, utilizing an external C++ compiler
GNU Lesser General Public License v3.0
0 stars 0 forks source link

run-time errors on freebsd (sysctl-related) #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install freebsd
2. run anything that wants freeocl
3. bingo

What is the expected output? What do you see instead?
expected: nothing
what I get: "sysctl: unknown oid 'kernel.ostype'"

What version of the product are you using? On what operating system?
version: 0.3.6
OS: FreeBSD 9.2-prerelease

Please provide any additional information below.
sysctl has a quiet-mode (-q). in linux it seems to be default and the flag does 
nothing, in BSD is barks if you don't pass it.
I've attached a patch to fix the issue (only kern{,el}.ostype needs it, as 
that's the only one that seems faulty)

Another way would be to just flip the order so kern.ostype is first (so freebsd 
is happy) as linux doesn't mind.

(P.S. why do you support an OS that isn't tested? ;) )

Original issue reported on code.google.com by kim.carl...@gmail.com on 24 Aug 2013 at 6:17

Attachments: