Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Aug 2017 14:45:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 220596] [NEW PORT] shells/xonsh: Python-ish BASH-wards shell
Message-ID:  <bug-220596-21822-h40sqsjPwj@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-220596-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-220596-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220596

--- Comment #27 from Roberto Fernandez Cueto <roberfern@gmail.com> ---
Ok, I have tracked this error until the following conclusion:
I have run the following code in python3.6 and python2.7,

import ctypes
import ctypes.util
libc =3D ctypes.CDLL(find_library('libc.so'), use_errno=3DTrue)
sz =3D ctypes.c_unit(0)
libc.sysctlbyname('kern.boottime', None, ctypes.byref(sz), None, 0)

On python3.6 the result is -1 and errno=3DENOENT, but in python2.7 the
sysctlbyname(3) function returns 0 and the sz variable correctly set.

Xonsh assumes that out machine is not a BSD machine because this function
does not return a valid parameter.

I do not know which will be the best solution.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-220596-21822-h40sqsjPwj>