#21 pylibpcap-0.6.3 fails to build


pylibpcap-0.6.3 fails to build. I use SWIG 2.0.4.

$ python2.7 setup.py build
running build
running build_ext
building '_pcapmodule' extension
swig -Wall -python -shadow -ISWIG -o pcap.c pcap.i
/usr/bin/python2.7 ./build-tools/docify.py pcap.c
/usr/bin/python2.7 ./build-tools/docify-shadow.py pcap.py
creating build
creating build/temp.linux-x86_64-2.7
x86_64-pc-linux-gnu-gcc -pthread -fPIC -DSWIG_COBJECT_TYPES -I/usr/include/python2.7 -c pcap.c -o build/temp.linux-x86_64-2.7/pcap.o
pcap.c:4143:41: error: ‘_wrap_SWIG_PyInstanceMethod_New’ undeclared here (not in a function)
pcap.c:4143:88: error: ‘_doc_SWIG_PyInstanceMethod_New’ undeclared here (not in a function)
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1


  • kean

    kean - 2012-01-11

    I have the same problem

  • Wim Lewis

    Wim Lewis - 2012-01-14
    • assigned_to: nobody --> wiml
  • Wim Lewis

    Wim Lewis - 2012-01-14

    This is a packaging error, sorry. You can do any of:

    - edit setup.py to comment out the sourcefiles line containing pcap.i and uncomment the one containing pcap.c;
    - use SWIG version 1.3.x;
    - wait for me to release 0.6.4 shortly;
    - use CVS head (which works with SWIG 2.x and will become 0.6.5, I guess).

  • Wim Lewis

    Wim Lewis - 2012-01-14
    • status: open --> open-fixed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks