On 25/02/08 at 14:40 -0600, Manoj Srivastava wrote: > Hi, > > I get this compilation error with the current release of > libselinux (2.0.35): > > Function `selinux_default_type_path' implicitly converted to pointer > at selinuxswig_wrap.c:7457 > Function `selinux_default_type_path' implicitly converted to pointer > at selinuxswig_wrap.c:7457 > > In libselinux/src/selinuxswig_wrap.c > --8<---------------cut here---------------start------------->8--- > 7446 SWIGINTERN PyObject *_wrap_selinux_default_type_path(PyObject > *SWIGUNUSEDPARM(self), PyObject *args) { > 7447 PyObject *resultobj = 0; > 7448 char *result = 0 ; > 7449 > 7450 if (!PyArg_ParseTuple(args,(char *)":selinux_default_type_path")) > SWIG_fail; > 7451 result = (char *)selinux_default_type_path(); > 7452 resultobj = SWIG_FromCharPtr((const char *)result); > 7453 return resultobj; > 7454 fail: > 7455 return NULL; > 7456 } > 7457 > --8<---------------cut here---------------end--------------->8--- > > At this point, there is no prototype for > selinux_default_type_path in effect, so the return value is converted > into int; which loses on 64bit arches. > > --8<---------------cut here---------------start------------->8--- > __> egrep \#include src/selinuxswig_wrap.c > #include <Python.h> > #include <string.h> > #include "selinux/selinux.h" > #include "selinux/selinux.h" > #include <limits.h> > #include <float.h> > #include <math.h> > --8<---------------cut here---------------end--------------->8--- > > I think this has been corrected in SVN: > --8<---------------cut here---------------start------------->8--- > __> egrep \#include > ../../../selinux/SVN/selinux/libselinux/src/selinuxswig_wrap.c > #include <Python.h> > #include <string.h> > #include "selinux/selinux.h" > #include "selinux/selinux.h" > #include "../include/selinux/selinux.h" > #include "../include/selinux/get_default_type.h" > #include "../include/selinux/get_context_list.h" > #include <limits.h> > #include <float.h> > #include <math.h> > --8<---------------cut here---------------end--------------->8--- > > Are there any plans to release the current SVN HEAD soonish?
Hi Manoj, This bug is preventing libselinux from migrating to testing since it causes it to fail to build on ia64. And it also prevents other packages (e.g coreutils) from migrating. Could you consider backporting this specific change from upstream, so libselinux and depending packages can migrate? Thank you, -- | Lucas Nussbaum | [EMAIL PROTECTED] http://www.lucas-nussbaum.net/ | | jabber: [EMAIL PROTECTED] GPG: 1024D/023B3F4F | -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]