search for: pycapsule_new

Displaying 20 results from an estimated 105 matches for "pycapsule_new".

2014 Nov 04
1
Re: [PATCH 7/9] python: fix detection of libpython features
...symbols in libpython. > - old_LIBS="$LIBS" > - > - PYTHON_BLDLIBRARY=`$PYTHON -c "import distutils.sysconfig; \ > - print (distutils.sysconfig.get_config_var('BLDLIBRARY'))"` > AC_CHECK_LIB([c],[PyCapsule_New], > [AC_DEFINE([HAVE_PYCAPSULE_NEW],1, > [Found PyCapsule_New in libpython.])], > - [],[$PYTHON_BLDLIBRARY]) > + [],[$PYTHON_LIBS]) > AC_CHECK_LIB([c],[PyString_AsString], >...
2011 Dec 10
1
[PATCH] Fixed checks for libpython features
...N="python${PYTHON_VERSION}mu" - else - LIBPYTHON="python$PYTHON_VERSION" - fi - AC_CHECK_LIB([$LIBPYTHON], [PyList_Size], [], - [AC_MSG_FAILURE([$LIBPYTHON is not installed])]) - AC_CHECK_FUNCS([PyCapsule_New \ - PyString_AsString]) + PYTHON_BLDLIBRARY=`$PYTHON -c "import distutils.sysconfig; \ + print (distutils.sysconfig.get_config_var('BLDLIBRARY'))"` + AC_CHECK_LIB([c],[PyCapsule_New], +...
2018 Jan 29
0
Re: python 3 bindings on libguestfs
...3.1 > checking for PYTHON... no > checking for PYTHON... no > checking Python prefix... /opt/python/x86_64/3.1.1 > checking for Python site-packages path... /opt/python/x86_64/3.1.1/lib/python3.1/site-packages > checking for Python extension suffix (PEP-3149)... .so > checking for PyCapsule_New in -lc... no > checking for PyString_AsString in -lc... no are generated by this code: https://github.com/libguestfs/libguestfs/blob/7021a234aa1496ca552ec82ff73747a302a1b80b/m4/guestfs-python.m4#L28 As you can see from the output above you are missing all of the Python development libraries (...
2011 Jun 16
0
libguestfsmod.so.0.0.0
On Thu, Jun 16, 2011 at 01:02:21PM +0300, C?neyt Sina Koca wrote: > Since the code im trying to gave this error : > > ImportError: /usr/lib/pymodules/python2.6/libguestfsmod.so: undefined > symbol: PyCapsule_New > > I copied this libguestfsmod.so.0.0.0 > from python-libguestfs-1.9.10-1.1.x86_64.rpm package and the code works fine > now. > > When I compared the sizes of these files, libguestfsmod.so.0.0.0 file > in python-libguestfs-1.9.10-1.1.x86_64.rpm package and libguestfs.so.0.28...
2014 Nov 04
0
[PATCH 7/9] python: fix detection of libpython features
...nl Look for some optional symbols in libpython. - old_LIBS="$LIBS" - - PYTHON_BLDLIBRARY=`$PYTHON -c "import distutils.sysconfig; \ - print (distutils.sysconfig.get_config_var('BLDLIBRARY'))"` AC_CHECK_LIB([c],[PyCapsule_New], [AC_DEFINE([HAVE_PYCAPSULE_NEW],1, [Found PyCapsule_New in libpython.])], - [],[$PYTHON_BLDLIBRARY]) + [],[$PYTHON_LIBS]) AC_CHECK_LIB([c],[PyString_AsString], [AC_DEFINE(...
2020 Jan 09
9
[PATCH 0/7] Various Python cleanups.
Patch #7 depends on: https://www.redhat.com/archives/libguestfs/2020-January/msg00035.html No, Python < 3 support is not dropped yet, however it will be easier after this series. Pino Toscano (7): build: enforce a minimum Python version python: drop code for Python < 2.5 python: assume support for Capsules python: remove compile time check for PyString_AsString python: replace
2018 Jan 31
1
Re: python 3 bindings on libguestfs
...> checking for PYTHON... yes > checking Python prefix... /opt/python/x86_64/3.6.3-1 > checking for Python site-packages path... /opt/python/x86_64/3.6.3-1/lib/python3.6/site-packages > checking for Python extension suffix (PEP-3149)... .cpython-36m-x86_64-linux-gnu.so > checking for PyCapsule_New in -lc... no This is supposed to be ‘yes’ which is why it's failing. You'll have to debug m4/guestfs_python.m4 and config.log to find out why that is but something is obviously broken about your Python installation. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.re...
2014 Nov 04
13
[PATCH 0/9] Small bits of non-Linux porting - #2
Hi, continuing what started a couple of weeks ago [1], the attached patch series continues the work in making it easier to build and run libguestfs (in fixed appliance mode) on OSes different than Linux. The provided changes should cause no functional changes on Linux. [1] https://www.redhat.com/archives/libguestfs/2014-October/msg00176.html Thanks, -- Pino Pino Toscano (9): build: check
2015 Oct 27
1
[PATCH] configure: Move language binding detection to separate files.
This commit starts to split our massive, monolithic configure.ac file into smaller files, using the m4_include mechanism to combine them. I don't know if we should really do this, so I'm open to comments about it. However: - Our configure.ac script is 1800+ lines long, and that's pretty long. - configure.ac lacks structure; splitting it up might improve that. - From what I read,
2014 Aug 08
2
[PATCH 1/2] Add type checking, support integers as value
...deletions(-) create mode 100644 python/t/300-setvalue-types.py diff --git a/configure.ac b/configure.ac index f50daff..4566a32 100644 --- a/configure.ac +++ b/configure.ac @@ -345,10 +345,6 @@ AS_IF([test "x$enable_python" != "xno"], [AC_DEFINE([HAVE_PYCAPSULE_NEW],1, [Found PyCapsule_New in libpython])], [],[$PYTHON_BLDLIBRARY]) - AC_CHECK_LIB([c],[PyString_AsString], - [AC_DEFINE([HAVE_PYSTRING_ASSTRING],1, - [Found PyString_...
2014 Aug 04
6
[hivex] Segfault for an integer value to node_set_value
Hi, When an integer argument is passed as value, node_set_value segfaults. Reproducer is at the end of this message The backtrace points at hivex-py.c, function get_value. While obj is non-NULL, `bytes = PyUnicode_AsUTF8String (obj);` returns NULL. Kind regards, Peter https://lekensteyn.nl #!/usr/bin/env python3 import hivex, sys h = hivex.Hivex(sys.argv[1]) print(h) val = {
2014 Aug 16
7
[hivex] [PATCH 0/6] Python fixes for node_set_value
Hi, This patch series is based on a prior patch[1], splitting off changes as requested and incorporating feedback from Richard Jones. It introduces type validation to avoid segmentation faults (instead, it reports an exception) and fixes handling of the bytes type in Python 3. Major changes since that series: - Drop newly introduced support for integer types for DWORD/QWORDS - Reject Unicode
2015 Oct 29
16
[PATCH 00/16] Refactoring of configure.ac and guestfs.pod
Two (not related to each other) refactorings: Patches 1-12 split configure.ac into smaller files using the m4_include mechanism. Patches 13-15 split out parts of guestfs.pod (ie. guestfs(3)) into three new manual pages: guestfs-hacking(3) - how to extend and contribute to libguestfs guestfs-internals(3) - architecture and internals guestfs-security(3) - security and CVEs Patch 16 is a
2014 May 29
3
Re: libguestfs error
...ecking for ExtUtils::MakeMaker... yes checking for python... python checking Python version... 2.7 checking for PYTHON... yes checking Python prefix... /usr checking for Python site-packages path... /usr/lib/python2.7/dist-packages checking for Python extension suffix (PEP-3149)... .so checking for PyCapsule_New in -lc... yes checking for PyString_AsString in -lc... yes checking for ruby... ruby checking for rake... no checking for C library for Ruby extensions... -lruby-1.9.1 checking for ruby_init in -lruby-1.9.1... no checking for ghc... no checking for php... php checking for phpize... no checking for...
2014 May 29
2
Re: libguestfs error
Hi Rich Yes Rich I have tried libguesftfs on powerpc and it was working fine.For some reason i had to format my hard disk and now when I'm again compiling it,I'm getting following error.... Below is the status of configure .. This is how we have configured the optional components for you today: Daemon .............................. yes Appliance ........................... yes QEMU
2010 Dec 07
1
builder-ubuntu libguestfs FAILED build step 4b8f70d46dcfed1489c97f822e263b8615f21ea0
...usr/lib64/python2.6/site-packages... not found checking for /usr/lib/python2.6/site-packages... not found checking for /usr/lib64/python2.6/site-packages... not found checking for /usr/lib/python2.6/site-packages... not found checking for /usr/local/lib/python2.6/site-packages... found checking for PyCapsule_New... no checking for ruby_init in -lruby... no checking for rake... rake checking for JDK in /usr/lib/jvm/java-6-openjdk... found java version "1.6.0_20" in /usr/lib/jvm/java-6-openjdk checking for jni.h... -I/usr/lib/jvm/java-6-openjdk/include checking for jni_md.h... -I/usr/lib/jvm/java-6...
2010 Dec 07
0
builder-ubuntu libguestfs FAILED build step 21810ade12e43fb4d8bfdcefb37a7d8bbe9eef8c
...usr/lib64/python2.6/site-packages... not found checking for /usr/lib/python2.6/site-packages... not found checking for /usr/lib64/python2.6/site-packages... not found checking for /usr/lib/python2.6/site-packages... not found checking for /usr/local/lib/python2.6/site-packages... found checking for PyCapsule_New... no checking for ruby_init in -lruby... no checking for rake... rake checking for JDK in /usr/lib/jvm/java-6-openjdk... found java version "1.6.0_20" in /usr/lib/jvm/java-6-openjdk checking for jni.h... -I/usr/lib/jvm/java-6-openjdk/include checking for jni_md.h... -I/usr/lib/jvm/java-6...
2011 Jun 21
0
builder-ubuntu libguestfs FAILED build step e1e78bcef5e4654bd2456bd696840329359d35cd
...or Test::More... yes checking for ExtUtils::MakeMaker... yes checking for python... python checking Python prefix... /usr checking Python version... 2.7 checking for Python include path... /usr/include/python2.7 checking for Python site-packages path... /usr/lib/python2.7/dist-packages checking for PyCapsule_New... yes checking for ruby_init in -lruby... no checking for rake... rake checking for JDK in /usr/lib/jvm/java-6-openjdk... found java version "1.6.0_22" in /usr/lib/jvm/java-6-openjdk checking for jni.h... -I/usr/lib/jvm/java-6-openjdk/include checking for jni_md.h... -I/usr/lib/jvm/java-...
2011 Jan 28
0
builder-ubuntu libguestfs FAILED build step f060d5bcd40b4a6506d7994e67d57dccab1651b8
...usr/lib64/python2.7/site-packages... not found checking for /usr/lib/python2.7/site-packages... not found checking for /usr/lib64/python2.7/site-packages... not found checking for /usr/lib/python2.7/site-packages... not found checking for /usr/local/lib/python2.7/site-packages... found checking for PyCapsule_New... yes checking for ruby_init in -lruby... no checking for rake... rake checking for JDK in /usr/lib/jvm/java-6-openjdk... found java version "1.6.0_20" in /usr/lib/jvm/java-6-openjdk checking for jni.h... -I/usr/lib/jvm/java-6-openjdk/include checking for jni_md.h... -I/usr/lib/jvm/java-...
2011 Jan 28
1
builder-debian libguestfs FAILED build step 82f5fdb0dbbc0c7b04861edeadf70c86c9342df2
...usr/lib64/python2.6/site-packages... not found checking for /usr/lib/python2.6/site-packages... not found checking for /usr/lib64/python2.6/site-packages... not found checking for /usr/lib/python2.6/site-packages... not found checking for /usr/local/lib/python2.6/site-packages... found checking for PyCapsule_New... no checking for ruby_init in -lruby... no checking for rake... no checking for JDK in /usr/lib/jvm/java-6-openjdk... found java version "1.6.0_18" in /usr/lib/jvm/java-6-openjdk checking for jni.h... -I/usr/lib/jvm/java-6-openjdk/include checking for jni_md.h... -I/usr/lib/jvm/java-6-o...