On Jul 20, 2006, at 10:10 PM, [EMAIL PROTECTED] wrote:
[1]: If I could only get net/py-pcap to build, I might be able to do a little
more...  :-)

You only need net/py-pypcap, but if that's what you meant please let
me know what the build problem is.

Interesting-- basicly, your tests commonly use a construct like "from pcap import pcap", which isn't working here with either port:

35-pi# cd /usr/ports/net/py-pcap
36-pi# make
===>  Extracting for py24-pcap-0.5
=> MD5 Checksum OK for pylibpcap-0.5.tar.gz.
=> SHA256 Checksum OK for pylibpcap-0.5.tar.gz.
=> MD5 Checksum OK for pylibpcap-doc.i.1.4.
=> SHA256 Checksum OK for pylibpcap-doc.i.1.4.
install -o root -g wheel -m 444 /usr/ports/distfiles/pylibpcap-doc.i. 1.4 /usr/ports/net/py-pcap/work/pylibpcap-0.5/doc.i
===>  Patching for py24-pcap-0.5
===>  Applying FreeBSD patches for py24-pcap-0.5
===>   py24-pcap-0.5 depends on executable: swig - found
===>   py24-pcap-0.5 depends on file: /usr/local/bin/python - found
===>  Configuring for py24-pcap-0.5
/usr/local/lib/python2.4/distutils/dist.py:222: UserWarning: 'licence' distribution option is deprecated; use 'license'
  warnings.warn(msg)
running config
===>  Building for py24-pcap-0.5
/usr/local/lib/python2.4/distutils/dist.py:222: UserWarning: 'licence' distribution option is deprecated; use 'license'
  warnings.warn(msg)
running build
running build_ext
building '_pcapmodule' extension
generating constants.c from mk-constants.py
swig -python -shadow -ISWIG -o pcap.c pcap.i
pcap.i:72: Warning(124): Specifying the language name in %typemap is deprecated - use #ifdef SWIG<LANG> instead. pcap.i:77: Warning(124): Specifying the language name in %typemap is deprecated - use #ifdef SWIG<LANG> instead. pcap.i:82: Warning(124): Specifying the language name in %typemap is deprecated - use #ifdef SWIG<LANG> instead.
creating build
creating build/temp.freebsd-5.5-PRERELEASE-i386-2.4
cc -fno-strict-aliasing -DNDEBUG -O -pipe -march=pentium - D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -O -pipe - march=pentium -fPIC -DSWIG_COBJECT_TYPES -I/usr/local/include/ python2.4 -c pcap.c -o build/temp.freebsd-5.5-PRERELEASE-i386-2.4/pcap.o
pcap.c: In function `init_pcap':
pcap.c:4220: warning: passing arg 2 of `SWIG_Python_InstallConstants' discards qualifiers from pointer target type pcap.c:4230: warning: passing arg 3 of `PyModule_AddStringConstant' discards qualifiers from pointer target type cc -fno-strict-aliasing -DNDEBUG -O -pipe -march=pentium - D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -O -pipe - march=pentium -fPIC -DSWIG_COBJECT_TYPES -I/usr/local/include/ python2.4 -c pcap_interface.c -o build/temp.freebsd-5.5-PRERELEASE- i386-2.4/pcap_interface.o cc -fno-strict-aliasing -DNDEBUG -O -pipe -march=pentium - D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -O -pipe - march=pentium -fPIC -DSWIG_COBJECT_TYPES -I/usr/local/include/ python2.4 -c exception.c -o build/temp.freebsd-5.5-PRERELEASE- i386-2.4/exception.o cc -fno-strict-aliasing -DNDEBUG -O -pipe -march=pentium - D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -O -pipe - march=pentium -fPIC -DSWIG_COBJECT_TYPES -I/usr/local/include/ python2.4 -c error.c -o build/temp.freebsd-5.5-PRERELEASE-i386-2.4/ error.o
creating build/lib.freebsd-5.5-PRERELEASE-i386-2.4
cc -shared -pthread -O -pipe -march=pentium build/temp.freebsd-5.5- PRERELEASE-i386-2.4/pcap.o build/temp.freebsd-5.5-PRERELEASE-i386-2.4/ pcap_interface.o build/temp.freebsd-5.5-PRERELEASE-i386-2.4/ exception.o build/temp.freebsd-5.5-PRERELEASE-i386-2.4/error.o -lpcap -o build/lib.freebsd-5.5-PRERELEASE-i386-2.4/_pcapmodule.so
running build_py
copying pcap.py -> build/lib.freebsd-5.5-PRERELEASE-i386-2.4
5.61s real  4.65s user  0.86s system  98%
37-pi# make install
===>  Installing for py24-pcap-0.5
===>   py24-pcap-0.5 depends on file: /usr/local/bin/python - found
===>   Generating temporary packing list
===>  Checking if net/py-pcap already installed
/usr/local/lib/python2.4/distutils/dist.py:222: UserWarning: 'licence' distribution option is deprecated; use 'license'
  warnings.warn(msg)
running install
running build
running build_ext
running build_py
running install_lib
copying build/lib.freebsd-5.5-PRERELEASE-i386-2.4/_pcapmodule.so -> / usr/local/lib/python2.4/site-packages copying build/lib.freebsd-5.5-PRERELEASE-i386-2.4/pcap.py -> /usr/ local/lib/python2.4/site-packages byte-compiling /usr/local/lib/python2.4/site-packages/pcap.py to pcap.pyc
writing byte-compilation script '/tmp/tmpv6RYOP.py'
/usr/local/bin/python -O /tmp/tmpv6RYOP.py
removing /tmp/tmpv6RYOP.py
===>   Registering installation for py24-pcap-0.5
38-pi# python /usr/ports/net/py-pcap
Python 2.4.3 (#2, May 15 2006, 15:15:09)
[GCC 3.4.2 [FreeBSD] 20040728] on freebsd5
Type "help", "copyright", "credits" or "license" for more information.
>>> import pcap
>>> from pcap import pcap
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: cannot import name pcap
>>>
39-pi# make deinstall
===>  Deinstalling for net/py-pcap
===>   Deinstalling py24-pcap-0.5
40-pi# cd ../py-pypcap
41-pi# make deinstall
===>  Deinstalling for net/py-pypcap
===>   py24-pypcap not installed, skipping
42-pi# make install
===>  Installing for py24-pypcap-1.1
===>   py24-pypcap-1.1 depends on file: /usr/local/bin/python - found
===>   Generating temporary packing list
===>  Checking if net/py-pypcap already installed
python setup.py install
running install
running build
running build_ext
running install_lib
copying build/lib.freebsd-5.5-PRERELEASE-i386-2.4/pcap.so -> /usr/ local/lib/python2.4/site-packages
===>   Registering installation for py24-pypcap-1.1
43-pi# python
Python 2.4.3 (#2, May 15 2006, 15:15:09)
[GCC 3.4.2 [FreeBSD] 20040728] on freebsd5
Type "help", "copyright", "credits" or "license" for more information.
>>> import pcap
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: /usr/local/lib/python2.4/site-packages/pcap.so: Undefined symbol "pcap_inject"
>>>
44-pi# grep -l pcap_inject /usr/lib/libpcap*
45-pi# nm -g /usr/local/lib/python2.4/site-packages/pcap.so | grep pcap_inject
         U pcap_inject

Thanks for your time,
--
-Chuck
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to