oremanj / python-netfilterqueue

Python bindings for libnetfilter_queue
MIT License
250 stars 96 forks source link

ImportError: /usr/local/lib/python2.6/dist-packages/netfilterqueue.so: undefined symbol: nfq_set_verdict2 #16

Closed NoraGithub closed 8 years ago

NoraGithub commented 8 years ago

My Environment: Ubuntu Server 10.04 LTS 32bit python 2.6.5

According to the instruction here: already done:

apt-get install build-essential python-dev libnetfilter-queue-dev and tried installing from both ways of From PYPI and From source.

Everytime when I executed from netfilterqueue import NetfilterQueue, I got this error:

ImportError: /usr/local/lib/python2.6/dist-packages/netfilterqueue.so: undefined symbol: nfq_set_verdict2

Already searched google for a whole day, hope to hear from you.

more info: 1.I need to use sudo before all the scripts , because it's not the root. 2.If I executednm /usr/local/lib/python2.6/dist-packages/netfilterqueue.so, I would get:

0000d30b t .L1524 0000d90b t .L1525 0000d8e7 t .L1531 0000d8ed t .L1533 0000d8f3 t .L1534 0000d8f9 t .L1535 0000d8ff t .L1536 0000d905 t .L1537 0000db50 t .L1539 0000db7d t .L1540 0000dbaa t .L1541 0000dbdd t .L1542 0000dc10 t .L1543 0000dc3f t .L1544 0000d3b8 t .L1560 0000d3be t .L1562 0000d3c4 t .L1563 0000d3ca t .L1564 0000d3d0 t .L1565 U PyBaseObject_Type U PyBaseString_Type U PyByteArray_Type U PyCFunction_Type U PyCObject_FromVoidPtr U PyCode_New U PyDict_Copy U PyDict_GetItem U PyDict_New U PyDict_Next U PyDict_SetItem U PyDict_Size U PyErr_Fetch U PyErr_Format U PyErr_GivenExceptionMatches U PyErr_NormalizeException U PyErr_Occurred U PyErr_Restore U PyErr_SetString U PyErr_WarnEx U PyErr_WriteUnraisable U PyEval_RestoreThread U PyEval_SaveThread U PyExc_BaseException U PyExc_ImportError U PyExc_NameError U PyExc_OverflowError U PyExc_SystemError U PyExc_TypeError U PyFloat_AsDouble U PyFloat_FromDouble U PyFloat_Type U PyFrame_New U PyGILState_Ensure U PyGILState_Release U PyImport_AddModule U PyInt_AsSsize_t U PyInt_FromLong U PyInt_FromSsize_t U PyInt_Type U PyList_New U PyList_Type U PyLong_AsLong U PyLong_AsSsize_t U PyLong_AsUnsignedLong U PyLong_FromUnsignedLong U PyLong_Type U PyMem_Malloc U PyMem_Realloc U PyMethod_Type U PyModule_GetDict U PyNumber_Index U PyNumber_Int U PyNumber_Long U PyOS_snprintf U PyObject_Call U PyObject_CallFunctionObjArgs U PyObject_CallMethodObjArgs U PyObject_GC_UnTrack U PyObject_GetAttr U PyObject_GetItem U PyObject_IsTrue U PyObject_RichCompare U PyObject_SetAttrString U PyObject_Size U PyString_AsString U PyString_AsStringAndSize U PyString_Format U PyString_FromFormat U PyString_FromString U PyString_FromStringAndSize U PyString_InternFromString U PyString_Type U PyTraceBack_Here U PyTraceBack_Type U PyTuple_New U PyTuple_Pack U PyTuple_Type U PyType_IsSubtype U PyType_Ready U PyUnicodeUCS4_Compare U PyUnicodeUCS4_DecodeUTF8 U PyUnicodeUCS4_FromStringAndSize U PyUnicode_Type U Py_GetVersion U Py_InitModule4 00004180 t T.1294 00005e30 t T.1295 00004340 t T.1297 000046c0 t T.1298 00011ea8 a _DYNAMIC 00011ff4 a _GLOBAL_OFFSETTABLE w _Jv_RegisterClasses U _PyByteArray_empty_string U _PyString_Eq U _PyThreadState_Current U _Py_CheckRecursionLimit U _Py_CheckRecursiveCall U _Py_NoneStruct U _Py_TrueStruct U _Py_ZeroStruct 00011e94 d CTOR_END__ 00011e90 d CTOR_LIST 00011e9c d DTOR_END 00011e98 d DTOR_LIST 00010f40 r FRAME_END 00011ea0 d JCR_END 00011ea0 d JCR_LIST 00003a20 t **Pyx_AddTraceback 00006f10 t Pyx_GetBuiltinName 00003620 t Pyx_PyInt_As_int 00003880 t __Pyx_PyInt_As_u_int16_t 000037d0 t Pyx_PyInt_As_u_int32_t 000036f0 t Pyx_PyInt_As_u_int8_t 00003510 t Pyx_PyNumber_IntOrLong 00004260 t Pyx_PyObject_CallNoArg 000049e0 t Pyx_PyObject_CallOneArg 00003470 t Pyx_PyObject_GetAttrStr 000034c0 t Pyx_PyObject_IsTrue 00003230 t PyxExceptionReset 00013520 A bss_start w cxa_finalize@@GLIBC_2.1.3 0000ff30 t do_global_ctors_aux 00003060 t __do_global_dtors_aux 00012180 d dso_handle U errno_location@@GLIBC_2.0 w gmon_start 00003117 t i686.get_pc_thunk.bx 00013574 b pyx_b 000032c0 t __pyx_bisect_code_objects 00013590 b pyx_builtin_OSError 00013594 b pyx_builtin_RuntimeWarning 00011ea4 d pyx_cfilenm 00013544 b pyx_clineno 00013560 b pyx_code_cache 00013570 b pyx_d 000122ae d pyx_doc_14netfilterqueue_14NetfilterQueue_10run 000122e0 d pyx_doc_14netfilterqueue_14NetfilterQueue_12run_socket 00012240 d pyx_doc_14netfilterqueue_14NetfilterQueue_4bind 00012260 d pyx_doc_14netfilterqueue_14NetfilterQueue_6unbind 00012280 d __pyx_doc_14netfilterqueue_14NetfilterQueue_8get_fd 000121e0 d pyx_doc_14netfilterqueue_6Packet_10set_payload 00012204 d pyx_doc_14netfilterqueue_6Packet_16accept 00012217 d pyx_doc_14netfilterqueue_6Packet_18drop 00012228 d pyx_doc_14netfilterqueue_6Packet_20repeat 000121a0 d pyx_doc_14netfilterqueue_6Packet_4get_payload 0001357c b pyx_empty_bytes 00013578 b pyx_empty_tuple 00013580 b pyx_empty_unicode 000050a0 t pyx_f_14netfilterqueue_6Packet_accept 00004dd0 t pyx_f_14netfilterqueue_6Packet_drop 00005370 t pyx_f_14netfilterqueue_6Packet_get_mark 00005f60 t pyx_f_14netfilterqueue_6Packet_get_payload_len 00006350 t pyx_f_14netfilterqueue_6Packet_get_timestamp 00004b00 t pyx_f_14netfilterqueue_6Packet_repeat 000056b0 t pyx_f_14netfilterqueue_6Packet_set_mark 00004590 t pyx_f_14netfilterqueue_6Packet_set_nfq_data 00005a30 t pyx_f_14netfilterqueue_6Packet_set_payload 0000fbc0 t pyx_f_14netfilterqueue_6Packet_verdict 0000f5e0 t pyx_f_14netfilterqueue_global_callback 00013588 b pyx_filename 00003f70 t pyx_getprop_14netfilterqueue_6Packet_hook 00003ff0 t pyx_getprop_14netfilterqueue_6Packet_hw_protocol 00004070 t pyx_getprop_14netfilterqueue_6Packet_id 00003ef0 t pyx_getprop_14netfilterqueue_6Packet_mark 00003e70 t pyx_getprop_14netfilterqueue_6Packet_payload 00013440 d pyx_getsets_14netfilterqueue_Packet 00013878 b pyx_int_0 0001387c b pyx_int_1 000138a0 b pyx_int_10 00013a08 b pyx_int_100 00013a0c b pyx_int_101 00013a10 b pyx_int_102 00013a14 b pyx_int_103 00013a18 b pyx_int_104 00013a1c b pyx_int_105 00013a20 b pyx_int_106 00013a24 b pyx_int_107 00013a28 b pyx_int_108 00013a2c b pyx_int_109 000138a4 b pyx_int_11 00013a30 b pyx_int_110 00013a34 b pyx_int_111 00013a38 b pyx_int_112 00013a3c b pyx_int_113 00013a40 b pyx_int_114 00013a44 b pyx_int_115 00013a48 b pyx_int_116 00013a4c b pyx_int_117 00013a50 b pyx_int_118 00013a54 b pyx_int_119 000138a8 b pyx_int_12 00013a58 b pyx_int_120 00013a5c b pyx_int_121 00013a60 b pyx_int_122 00013a64 b pyx_int_123 00013a68 b pyx_int_124 00013a6c b pyx_int_125 00013a70 b pyx_int_126 00013a74 b pyx_int_127 00013a78 b pyx_int_128 00013a7c b pyx_int_129 000138ac b pyx_int_13 00013a80 b pyx_int_130 00013a84 b pyx_int_131 00013a88 b pyx_int_132 00013a8c b pyx_int_133 00013a90 b pyx_int_134 00013a94 b pyx_int_135 00013a98 b pyx_int_136 00013a9c b pyx_int_137 00013aa0 b pyx_int_138 00013aa4 b pyx_int_139 000138b0 b pyx_int_14 00013aa8 b pyx_int_140 000138b4 b pyx_int_15 000138b8 b pyx_int_16 000138bc b pyx_int_17 000138c0 b pyx_int_18 000138c4 b pyx_int_19 00013880 b pyx_int_2 000138c8 b pyx_int_20 000138cc b pyx_int_21 000138d0 b pyx_int_22 000138d4 b pyx_int_23 000138d8 b pyx_int_24 000138dc b pyx_int_25 00013aac b pyx_int_255 000138e0 b pyx_int_26 000138e4 b pyx_int_27 000138e8 b pyx_int_28 000138ec b pyx_int_29 00013884 b pyx_int_3 000138f0 b pyx_int_30 000138f4 b pyx_int_31 000138f8 b pyx_int_32 000138fc b pyx_int_33 00013900 b pyx_int_34 00013904 b pyx_int_35 00013908 b pyx_int_36 0001390c b pyx_int_37 00013910 b pyx_int_38 00013914 b pyx_int_39 00013888 b pyx_int_4 00013918 b pyx_int_40 00013ab0 b pyx_int_4096 0001391c b pyx_int_41 00013920 b pyx_int_42 00013924 b pyx_int_43 00013928 b pyx_int_44 0001392c b pyx_int_45 00013930 b pyx_int_46 00013934 b pyx_int_47 00013938 b pyx_int_48 0001393c b pyx_int_49 0001388c b pyx_int_5 00013940 b pyx_int_50 00013944 b pyx_int_51 00013948 b pyx_int_52 0001394c b pyx_int_53 00013950 b pyx_int_54 00013954 b pyx_int_55 00013958 b pyx_int_56 0001395c b pyx_int_57 00013960 b pyx_int_58 00013964 b pyx_int_59 00013890 b pyx_int_6 00013968 b pyx_int_60 0001396c b pyx_int_61 00013970 b pyx_int_62 00013974 b pyx_int_63 00013978 b pyx_int_64 0001397c b pyx_int_65 00013980 b pyx_int_66 00013984 b pyx_int_67 00013988 b pyx_int_68 0001398c b pyx_int_69 00013894 b pyx_int_7 00013990 b pyx_int_70 00013994 b pyx_int_71 00013998 b pyx_int_72 0001399c b pyx_int_73 000139a0 b pyx_int_74 000139a4 b pyx_int_75 000139a8 b pyx_int_76 000139ac b pyx_int_77 000139b0 b pyx_int_78 000139b4 b pyx_int_79 00013898 b pyx_int_8 000139b8 b pyx_int_80 000139bc b pyx_int_81 000139c0 b pyx_int_82 000139c4 b pyx_int_83 000139c8 b pyx_int_84 000139cc b pyx_int_85 000139d0 b pyx_int_86 000139d4 b pyx_int_87 000139d8 b pyx_int_88 000139dc b pyx_int_89 0001389c b pyx_int_9 000139e0 b pyx_int_90 000139e4 b pyx_int_91 000139e8 b pyx_int_92 000139ec b pyx_int_93 000139f0 b pyx_int_94 000139f4 b pyx_int_95 000139f8 b pyx_int_96 000139fc b pyx_int_97 00013a00 b pyx_int_98 00013a04 b pyx_int_99 00010906 r pyx_k_3PC 0001090a r pyx_k_AH 0001090d r pyx_k_ARGUS 00010913 r pyx_k_ARIS 00010918 r pyx_k_AX_25 0001091e r pyx_k_A_N 00010922 r pyx_k_BBN_RCC_MON 0001092e r pyx_k_BNA 00010932 r pyx_k_BR_SAT_MON 00010860 r pyx_k_Bind_to_a_Linux_netfilter_queue 0001093d r pyx_k_CBT 00010941 r pyx_k_CFTP 00010946 r pyx_k_CHAOS 0001094c r pyx_k_COPY_META 00010956 r pyx_k_COPY_NONE 00010960 r __pyx_k_COPY_PACKET 0001096c r pyx_k_CPHB 00010971 r pyx_k_CPNX 00010976 r pyx_k_CRTP 0001097b r pyx_k_CRUDP 00010981 r pyx_k_Compaq_Peer 0001098d r pyx_k_DCCP 00010992 r pyx_k_DCN_MEAS 0001099b r pyx_k_DDP 0001099f r pyx_k_DDX 000109a3 r pyx_k_DGP 000109a7 r pyx_k_DSR 000109ab r pyx_k_EGP 000109af r pyx_k_EIGRP 000109b5 r pyx_k_EMCON 000109bb r pyx_k_ENCAP 000109c1 r pyx_k_ESP 000109c5 r pyx_k_ETHERIP 000109cd r pyx_k_FC 000109d0 r pyx_k_FIRE 000109e0 r pyx_k_Failed_to_bind_family_s_Are_you 00010a08 r pyx_k_Failed_to_create_queue_s 00010a40 r pyx_k_Failed_to_get_payload_of_packet 00010a61 r __pyx_k_Failed_to_open_NFQueue 00010a80 r pyx_k_Failed_to_set_packet_copy_mode 00010aa0 r pyx_k_GGP 00010aa4 r pyx_k_GMTP 00010aa9 r pyx_k_GRE 00010aad r pyx_k_HIP 00010ab1 r pyx_k_HMP 00010ab5 r pyx_k_HOPOPT 00010abc r pyx_k_IATP 00010ac1 r pyx_k_ICMP 00010ac6 r pyx_k_IDPR 00010acb r pyx_k_IDPR_CMTP 00010ad5 r pyx_k_IDRP 00010ada r pyx_k_IFMP 00010adf r pyx_k_IGMP 00010ae4 r pyx_k_IGP 00010ae8 r pyx_k_IL 00010aeb r pyx_k_IP 00010aee r pyx_k_IPCV 00010af3 r pyx_k_IPComp 00010afa r pyx_k_IPIP 00010aff r pyx_k_IPLT 00010b04 r pyx_k_IPPC 00010b09 r pyx_k_IPX_in_IP 00010b13 r pyx_k_IPv6 00010b18 r pyx_k_IPv6_Frag 00010b22 r pyx_k_IPv6_ICMP 00010b2c r __pyx_k_IPv6_NoNxt 00010b37 r pyx_k_IPv6_Opts 00010b41 r pyx_k_IPv6_Route 00010b4c r pyx_k_IRTP 00010b51 r pyx_k_ISIS 00010b56 r __pyx_k_ISO_IP 00010b5d r pyx_k_ISO_TP4 00010b65 r pyx_k_I_NLSP 00010b6c r pyx_k_KRYPTOLAN 00010b76 r pyx_k_L2TP 00010b7b r pyx_k_LARP 00010b80 r pyx_k_LEAF_1 00010b87 r pyx_k_LEAF_2 00010b8e r pyx_k_MERIT_INP 00010b98 r __pyx_k_MFE_NSP 00010ba0 r pyx_k_MICP 00010ba5 r pyx_k_MOBILE 00010bac r pyx_k_MPLS_in_IP 00010bb7 r pyx_k_MTP 00010bbb r pyx_k_MUX 00010bbf r pyx_k_Mobility 00010bc8 r pyx_k_NARP 00010bcd r pyx_k_NETBLT 00010bd4 r pyx_k_NSFNET_IGP 00010bdf r pyx_k_NVP_II 00010be6 r pyx_k_OSError 00010bee r pyx_k_OSPFIGP 00010bf6 r pyx_k_PGM 00010bfa r pyx_k_PIM 00010bfe r pyx_k_PIPE 00010c03 r pyx_k_PNNI 00010c08 r pyx_k_PRM 00010c0c r pyx_k_PROTOCOLS 00010c16 r pyx_k_PTP 00010c1a r pyx_k_PUP 00010c1e r pyx_k_PVP 00010c22 r pyx_k_QNX 00010c26 r pyx_k_RDP 00010c2a r pyx_k_RSVP 00010c2f r pyx_k_RSVP_E2E_IGNORE 00010c3f r pyx_k_RVD 00010c43 r pyx_k_Reserved 00010c4c r pyx_k_RuntimeWarning 00010c5b r __pyx_k_SAT_EXPAK 00010c65 r pyx_k_SAT_MON 00010c6d r pyx_k_SCC_SP 00010c74 r pyx_k_SCPS 00010c79 r pyx_k_SCTP 00010c7e r pyx_k_SDRP 00010c83 r pyx_k_SECURE_VMTP 00010c8f r pyx_k_SKIP 00010c94 r pyx_k_SM 00010c97 r pyx_k_SMP 00010c9b r pyx_k_SNP 00010c9f r pyx_k_SPS 00010ca3 r pyx_k_SRP 00010ca7 r pyx_k_SSCOPMCE 00010cb0 r pyx_k_ST 00010cb3 r pyx_k_STP 00010cb7 r pyx_k_SUN_ND 00010cbe r pyx_k_SWIPE 00010cc4 r pyx_k_Shim6 00010ce0 r pyx_k_Socket_rcvbuf_limit_is_now_d_req 00010d0d r pyx_k_Sprite_RPC 00010d18 r pyx_k_TCF 00010d1c r pyx_k_TCP 00010d20 r pyx_k_TLSP 00010d25 r pyx_k_TP 00010d2a r pyx_k_TRUNK_1 00010d32 r pyx_k_TRUNK_2 00010d3a r pyx_k_TTP 00010d3e r pyx_k_UDP 00010d42 r pyx_k_UDPLite 00010d4a r pyx_k_UTI 00010d4e r __pyx_k_Unknown_protocol 00010d5f r pyx_k_VERSION 00010d67 r pyx_k_VINES 00010d6d r pyx_k_VISA 00010d72 r pyx_k_VMTP 00010d77 r pyx_k_VRRP 00010d80 r pyx_k_Verdict_already_given_for_this_p 00010da7 r __pyx_k_WB_EXPAK 00010db0 r pyx_k_WB_MON 00010db7 r pyx_k_WSN 00010dbb r pyx_k_XNET 00010dc0 r pyx_k_XNS_IDP 00010dc8 r pyx_k_XTP 00013ab4 b pyx_k4 00010dcc r pyx_k_accept 00010dd3 r pyx_k_af 00010dd6 r pyx_k_any_0_hop_protocol 00010de9 r __pyx_k_any_distributed_file_system 00010e05 r pyx_k_any_host_internal_protocol 00010e20 r pyx_k_any_local_network 00010e32 r pyx_k_any_private_encryption_scheme 00010e50 r pyx_k_args 00010e55 r pyx_k_block 00010e5b r pyx_k_drop 00010e60 r pyx_k_error 00010e66 r pyx_k_get 00010e6a r pyx_k_get_fd 00010e71 r pyx_k_get_mark 00010e7a r pyx_k_get_payload_len 00010e8a r pyx_k_get_timestamp 00010e98 r pyx_k_import 00010ea3 r pyx_k_main 00010eac r pyx_k_manet 00010eb2 r pyx_k_max_len 00010eba r pyx_k_mode 00010ebf r pyx_k_pyx_vtable 00010ece r pyx_k_queue_num 00010ed8 r pyx_k_range 00010ede r pyx_k_recv 00010ee3 r pyx_k_repeat 00010eea r pyx_k_s_packet_s_bytes 00010efe r pyx_k_set_mark 00010f07 r __pyx_k_set_payload 00010f13 r pyx_k_sock_len 00010f1c r pyx_k_socket 00010f23 r pyx_k_test 00010f2c r pyx_k_user_callback 00013598 b __pyx_kp_s_3PC 000135a8 b pyx_kp_s_AX_25 000135ac b pyx_kp_s_A_N 000135b0 b pyx_kp_s_BBN_RCC_MON 000135b8 b pyx_kp_s_BR_SAT_MON 000135e4 b pyx_kp_s_Compaq_Peer 000135ec b pyx_kp_s_DCN_MEAS 00013620 b __pyx_kp_s_Failed_to_bind_family_s_Are_you 00013624 b pyx_kp_s_Failed_to_create_queue_s 00013628 b pyx_kp_s_Failed_to_get_payload_of_packet 0001362c b pyx_kp_s_Failed_to_open_NFQueue 00013630 b pyx_kp_s_Failed_to_set_packet_copy_mode 00013658 b pyx_kp_s_IDPR_CMTP 00013688 b pyx_kp_s_IPX_in_IP 00013690 b pyx_kp_s_IPv6_Frag 00013694 b pyx_kp_s_IPv6_ICMP 00013698 b pyx_kp_s_IPv6_NoNxt 0001369c b pyx_kp_s_IPv6_Opts 000136a0 b pyx_kp_s_IPv6_Route 000136ac b pyx_kp_s_ISO_IP 000136b0 b pyx_kp_s_ISO_TP4 000136b4 b pyx_kp_s_I_NLSP 000136c4 b pyx_kp_s_LEAF_1 000136c8 b pyx_kp_s_LEAF_2 000136cc b pyx_kp_s_MERIT_INP 000136d0 b pyx_kp_s_MFE_NSP 000136dc b __pyx_kp_s_MPLS_in_IP 000136f4 b pyx_kp_s_NSFNET_IGP 000136f8 b pyx_kp_s_NVP_II 00013734 b pyx_kp_s_RSVP_E2E_IGNORE 00013744 b pyx_kp_s_SAT_EXPAK 00013748 b pyx_kp_s_SAT_MON 0001374c b pyx_kp_s_SCC_SP 0001375c b pyx_kp_s_SECURE_VMTP 00013784 b pyx_kp_s_SUN_ND 00013790 b pyx_kp_s_Socket_rcvbuf_limit_is_now_d_req 00013794 b pyx_kp_s_Sprite_RPC 000137a4 b pyx_kp_s_TP 000137a8 b pyx_kp_s_TRUNK_1 000137ac b pyx_kp_s_TRUNK_2 000137c0 b pyx_kp_s_Unknown_protocol 000137d8 b pyx_kp_s_Verdict_already_given_for_this_p 000137dc b pyx_kp_s_WB_EXPAK 000137e0 b pyx_kp_s_WB_MON 000137ec b pyx_kp_s_XNS_IDP 000137fc b pyx_kp_s_any_0_hop_protocol 00013800 b pyx_kp_s_any_distributed_file_system 00013804 b pyx_kp_s_any_host_internal_protocol 00013808 b pyx_kp_s_any_local_network 0001380c b pyx_kp_s_any_private_encryption_scheme 0001385c b pyx_kp_s_s_packet_s_bytes 00013584 b __pyx_lineno 0001356c b pyx_m 00013548 b pyx_methods 000134c0 d __pyx_methods_14netfilterqueue_NetfilterQueue 000133a0 d pyx_methods_14netfilterqueue_Packet 00013540 B pyx_module_is_main_netfilterqueue 0001359c b pyx_n_s_AH 000135a0 b pyx_n_s_ARGUS 000135a4 b __pyx_n_s_ARIS 000135b4 b pyx_n_s_BNA 000135bc b pyx_n_s_CBT 000135c0 b __pyx_n_s_CFTP 000135c4 b pyx_n_s_CHAOS 000135c8 b pyx_n_s_COPY_META 000135cc b pyx_n_s_COPY_NONE 000135d0 b pyx_n_s_COPY_PACKET 000135d4 b pyx_n_s_CPHB 000135d8 b pyx_n_s_CPNX 000135dc b __pyx_n_s_CRTP 000135e0 b pyx_n_s_CRUDP 000135e8 b pyx_n_s_DCCP 000135f0 b __pyx_n_s_DDP 000135f4 b pyx_n_s_DDX 000135f8 b pyx_n_s_DGP 000135fc b __pyx_n_s_DSR 00013600 b pyx_n_s_EGP 00013604 b pyx_n_s_EIGRP 00013608 b __pyx_n_s_EMCON 0001360c b pyx_n_s_ENCAP 00013610 b pyx_n_s_ESP 00013614 b __pyx_n_s_ETHERIP 00013618 b pyx_n_s_FC 0001361c b pyx_n_s_FIRE 00013634 b __pyx_n_s_GGP 00013638 b pyx_n_s_GMTP 0001363c b pyx_n_s_GRE 00013640 b __pyx_n_s_HIP 00013644 b pyx_n_s_HMP 00013648 b pyx_n_s_HOPOPT 0001364c b __pyx_n_s_IATP 00013650 b pyx_n_s_ICMP 00013654 b pyx_n_s_IDPR 0001365c b __pyx_n_s_IDRP 00013660 b pyx_n_s_IFMP 00013664 b pyx_n_s_IGMP 00013668 b __pyx_n_s_IGP 0001366c b pyx_n_s_IL 00013670 b pyx_n_s_IP 00013674 b __pyx_n_s_IPCV 00013678 b pyx_n_s_IPComp 0001367c b pyx_n_s_IPIP 00013680 b __pyx_n_s_IPLT 00013684 b pyx_n_s_IPPC 0001368c b pyx_n_s_IPv6 000136a4 b __pyx_n_s_IRTP 000136a8 b pyx_n_s_ISIS 000136b8 b pyx_n_s_KRYPTOLAN 000136bc b __pyx_n_s_L2TP 000136c0 b pyx_n_s_LARP 000136d4 b pyx_n_s_MICP 000136d8 b __pyx_n_s_MOBILE 000136e0 b pyx_n_s_MTP 000136e4 b pyx_n_s_MUX 000136e8 b __pyx_n_s_Mobility 000136ec b pyx_n_s_NARP 000136f0 b pyx_n_s_NETBLT 000136fc b __pyx_n_s_OSError 00013700 b pyx_n_s_OSPFIGP 00013704 b pyx_n_s_PGM 00013708 b __pyx_n_s_PIM 0001370c b pyx_n_s_PIPE 00013710 b pyx_n_s_PNNI 00013714 b __pyx_n_s_PRM 00013718 b pyx_n_s_PROTOCOLS 0001371c b pyx_n_s_PTP 00013720 b __pyx_n_s_PUP 00013724 b pyx_n_s_PVP 00013728 b pyx_n_s_QNX 0001372c b __pyx_n_s_RDP 00013730 b pyx_n_s_RSVP 00013738 b pyx_n_s_RVD 0001373c b __pyx_n_s_Reserved 00013740 b pyx_n_s_RuntimeWarning 00013750 b pyx_n_s_SCPS 00013754 b __pyx_n_s_SCTP 00013758 b pyx_n_s_SDRP 00013760 b pyx_n_s_SKIP 00013764 b __pyx_n_s_SM 00013768 b pyx_n_s_SMP 0001376c b pyx_n_s_SNP 00013770 b __pyx_n_s_SPS 00013774 b pyx_n_s_SRP 00013778 b pyx_n_s_SSCOPMCE 0001377c b __pyx_n_s_ST 00013780 b pyx_n_s_STP 00013788 b pyx_n_s_SWIPE 0001378c b __pyx_n_s_Shim6 00013798 b pyx_n_s_TCF 0001379c b pyx_n_s_TCP 000137a0 b __pyx_n_s_TLSP 000137b0 b pyx_n_s_TTP 000137b4 b pyx_n_s_UDP 000137b8 b __pyx_n_s_UDPLite 000137bc b pyx_n_s_UTI 000137c4 b pyx_n_s_VERSION 000137c8 b __pyx_n_s_VINES 000137cc b pyx_n_s_VISA 000137d0 b pyx_n_s_VMTP 000137d4 b __pyx_n_s_VRRP 000137e4 b pyx_n_s_WSN 000137e8 b pyx_n_s_XNET 000137f0 b __pyx_n_s_XTP 000137f4 b pyx_n_s_accept 000137f8 b pyx_n_s_af 00013810 b __pyx_n_s_args 00013814 b pyx_n_s_block 00013818 b pyx_n_s_drop 0001381c b __pyx_n_s_error 00013820 b pyx_n_s_get 00013824 b pyx_n_s_get_fd 00013828 b pyx_n_s_get_mark 0001382c b pyx_n_s_get_payload_len 00013830 b pyx_n_s_get_timestamp 00013834 b pyx_n_s_import 00013838 b pyx_n_s_main 0001383c b pyx_n_s_manet 00013840 b pyx_n_s_max_len 00013844 b pyx_n_s_mode 00013848 b pyx_n_s_pyx_vtable 0001384c b pyx_n_s_queue_num 00013850 b pyx_n_s_range 00013854 b pyx_n_s_recv 00013858 b __pyx_n_s_repeat 00013860 b pyx_n_s_set_mark 00013864 b pyx_n_s_set_payload 00013868 b pyx_n_s_sock_len 0001386c b pyx_n_s_socket 00013870 b __pyx_n_s_test 00013874 b pyx_n_s_user_callback 0000ca70 t pyx_pf_14netfilterqueue_14NetfilterQueue_10run 0001355c b pyx_ptype_14netfilterqueue_NetfilterQueue 00013558 b pyx_ptype_14netfilterqueue_Packet 0000d100 t pyx_pw_14netfilterqueue_14NetfilterQueue_11run 0000e080 t pyx_pw_14netfilterqueue_14NetfilterQueue_13run_socket 0000d2b0 t pyx_pw_14netfilterqueue_14NetfilterQueue_5bind 000036a0 t pyx_pw_14netfilterqueue_14NetfilterQueue_7unbind 00003df0 t pyx_pw_14netfilterqueue_14NetfilterQueue_9get_fd 00005d30 t pyx_pw_14netfilterqueue_6Packet_11set_payload 00006db0 t __pyx_pw_14netfilterqueue_6Packet_13set_mark 00005630 t pyx_pw_14netfilterqueue_6Packet_15get_mark 000052f0 t pyx_pw_14netfilterqueue_6Packet_17accept 00005020 t pyx_pw_14netfilterqueue_6Packet_19drop 00004d50 t pyx_pw_14netfilterqueue_6Packet_21repeat 0000f030 t pyx_pw_14netfilterqueue_6Packet_3str** 000040f0 t pyx_pw_14netfilterqueue_6Packet_5get_payload 000062c0 t pyx_pw_14netfilterqueue_6Packet_7get_payload_len 00006670 t pyx_pw_14netfilterqueue_6Packet_9get_timestamp 000124ec d pyx_pyargnames.15863 000124e4 d __pyx_pyargnames.16268 00012520 d pyx_string_tab 000031b0 t pyx_tp_clear_14netfilterqueue_NetfilterQueue 00003950 t pyx_tp_dealloc_14netfilterqueue_NetfilterQueue 00003120 t pyx_tp_dealloc_14netfilterqueue_Packet 00006700 t pyx_tp_new_14netfilterqueue_NetfilterQueue 00003330 t pyx_tp_new_14netfilterqueue_Packet 00003160 t pyx_tp_traverse_14netfilterqueue_NetfilterQueue 00013ab8 b pyxtuple 00013abc b pyx_tuple2 00013ac0 b pyx_tuple3 00013ac4 b pyx_tuple5 00013ac8 b pyx_tuple6 00013acc b pyx_tuple7 00012420 d pyx_type_14netfilterqueue_NetfilterQueue 00012340 d pyx_type_14netfilterqueue_Packet 00013ae0 b __pyx_vtable_14netfilterqueue_Packet 0001358c b pyx_vtabptr_14netfilterqueue_Packet U __stack_chk_fail@@GLIBC_2.4 0000ff10 t __stack_chk_fail_local 00013520 A _edata 00013b08 A _end 0000ff68 T _fini 00002a60 T _init 00013520 b completed.7021 00013524 b dtor_idx.7023 000030e0 t frame_dummy 00006fb0 T initnetfilterqueue U nfnl_rcvbufsiz U nfq_bind_pf U nfq_close U nfq_create_queue U nfq_destroy_queue U nfq_fd U nfq_get_msg_packet_hdr U nfq_get_nfmark U nfq_get_payload U nfq_get_timestamp U nfq_handle_packet U nfq_nfnlh U nfq_open U nfq_set_mode U nfq_set_queue_maxlen U nfq_set_verdict U nfq_set_verdict2 U nfq_unbind_pf U recv@@GLIBC_2.0

3.If I executedldd /usr/local/lib/python2.6/dist-packages/netfilterqueue.so , I would get:

linux-gate.so.1 => (0xb77b8000) libnetfilter_queue.so.1 => /usr/lib/libnetfilter_queue.so.1 (0xb7790000) libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7777000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7614000) libnfnetlink.so.0 => /usr/lib/libnfnetlink.so.0 (0xb760c000) /lib/ld-linux.so.2 (0xb77b9000)

4.the warming when executing sudo pip install netfilterqueue --upgrade

DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6 The directory '/home/ubuntu/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/ubuntu/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. /usr/local/lib/python2.6/dist-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning. SNIMissingWarning /usr/local/lib/python2.6/dist-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning Requirement already up-to-date: netfilterqueue in /usr/local/lib/python2.6/dist-packages

NoraGithub commented 8 years ago

This issue might have already been solved. It's caused by my character which is not 'root' and scripts cannot find out the right .h file while importing. From the error message below: ImportError: /usr/local/lib/python2.6/dist-packages/netfilterqueue.so: undefined symbol: nfq_set_verdict2 and netfilterqueue.pxd, which might be used for defined function prototype I re-installed related module from the project and found the .h file in the /url/include hadn't been updated and fixed it

However, it raised another issue.

I would try it fix it later