Obcykany / pyrit

Automatically exported from code.google.com/p/pyrit
0 stars 0 forks source link

Installation/architecture warnings #376

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1.

tar -xzf  “Path to” libdnet-1.12.tgz
cd libdnet-1.12
./configure
make
sudo make install
cd python
sudo python setup.py install

The last line produces a gcc error. The error goes away by replacing the last 
command line with 

sudo env ARCHFLAGS="-arch i386 -arch x86_64" python setup.py build

I tried creating a .bash_profile in the home folder with export 
ARCHFLAGS=”-arch i386 –arch x86_64” but it does nothing so i used the 
above method instead. I comes with all sorts of warnings.

2. The above creates a libdnet folder on the home directory.

3. Everything else in the installation after this (scapy ,etc) seems to go 
fine, including downloading pyrit, but the pyrit command fails in the end.

What is the expected output? What do you see instead?

This is the ouput from the replacement ARCHFLAGS

running build
running build_ext
building 'dnet' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall 
-Wstrict-prototypes -DENABLE_DTRACE -pipe -arch i386 -arch x86_64 -I../include 
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c 
./dnet.c -o build/temp.macosx-10.6-universal-2.6/./dnet.o
./dnet.c:62: warning: this decimal constant is unsigned only in ISO C90
./dnet.c: In function ‘__pyx_f_4dnet___oserror’:
./dnet.c:447: warning: function declaration isn’t a prototype
./dnet.c: In function ‘__pyx_f_4dnet_3eth_get’:
./dnet.c:581: warning: pointer targets in passing argument 1 of 
‘PyString_FromStringAndSize’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_3eth_set’:
./dnet.c:613: warning: pointer targets in passing argument 1 of 
‘__pyx_f_4dnet___memcpy’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_3eth___dealloc__’:
./dnet.c:691: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_eth_ntoa’:
./dnet.c:709: warning: pointer targets in passing argument 1 of 
‘__pyx_f_4dnet___memcpy’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_eth_aton’:
./dnet.c:761: warning: pointer targets in passing argument 1 of 
‘PyString_FromStringAndSize’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_eth_pack_hdr’:
./dnet.c:799: warning: pointer targets in passing argument 1 of 
‘__pyx_f_4dnet___memcpy’ differ in signedness
./dnet.c:803: warning: pointer targets in passing argument 1 of 
‘__pyx_f_4dnet___memcpy’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_2ip___dealloc__’:
./dnet.c:916: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_ip_checksum’:
./dnet.c:1044: warning: passing argument 2 of ‘PyObject_AsReadBuffer’ from 
incompatible pointer type
./dnet.c:1044: warning: passing argument 3 of ‘PyObject_AsReadBuffer’ from 
incompatible pointer type
./dnet.c: In function ‘__pyx_f_4dnet_ip_cksum_add’:
./dnet.c:1125: warning: passing argument 2 of ‘PyObject_AsReadBuffer’ from 
incompatible pointer type
./dnet.c:1125: warning: passing argument 3 of ‘PyObject_AsReadBuffer’ from 
incompatible pointer type
./dnet.c: In function ‘__pyx_f_4dnet_4addr_3eth___get__’:
./dnet.c:1755: warning: pointer targets in passing argument 1 of 
‘PyString_FromStringAndSize’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_4addr_3eth___set__’:
./dnet.c:1805: warning: pointer targets in passing argument 1 of 
‘__pyx_f_4dnet___memcpy’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_4addr_2ip___get__’:
./dnet.c:1864: warning: pointer targets in passing argument 1 of 
‘PyString_FromStringAndSize’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_4addr_2ip___set__’:
./dnet.c:1928: warning: pointer targets in passing argument 1 of 
‘__pyx_f_4dnet___memcpy’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_4addr_3ip6___get__’:
./dnet.c:1989: warning: pointer targets in passing argument 1 of 
‘PyString_FromStringAndSize’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_4addr_3ip6___set__’:
./dnet.c:2039: warning: pointer targets in passing argument 1 of 
‘__pyx_f_4dnet___memcpy’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_4addr___hash__’:
./dnet.c:2464: warning: label ‘__pyx_L4’ defined but not used
./dnet.c:2462: warning: label ‘__pyx_L3’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_3arp_loop’:
./dnet.c:3118: warning: passing argument 2 of ‘arp_loop’ from incompatible 
pointer type
./dnet.c: In function ‘__pyx_f_4dnet_3arp___dealloc__’:
./dnet.c:3211: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_arp_pack_hdr_ethip’:
./dnet.c:3247: warning: pointer targets in passing argument 1 of 
‘__pyx_f_4dnet___memcpy’ differ in signedness
./dnet.c:3251: warning: pointer targets in passing argument 1 of 
‘__pyx_f_4dnet___memcpy’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_ifent_to_dict’:
./dnet.c:3591: warning: label ‘__pyx_L7’ defined but not used
./dnet.c:3589: warning: label ‘__pyx_L6’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_dict_to_ifent’:
./dnet.c:3745: warning: label ‘__pyx_L9’ defined but not used
./dnet.c:3743: warning: label ‘__pyx_L8’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_4intf_loop’:
./dnet.c:4135: warning: passing argument 2 of ‘intf_loop’ from incompatible 
pointer type
./dnet.c: In function ‘__pyx_f_4dnet_4intf___dealloc__’:
./dnet.c:4225: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_5route_loop’:
./dnet.c:4556: warning: passing argument 2 of ‘route_loop’ from 
incompatible pointer type
./dnet.c: In function ‘__pyx_f_4dnet_5route___dealloc__’:
./dnet.c:4646: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_2fw_loop’:
./dnet.c:5216: warning: passing argument 2 of ‘fw_loop’ from incompatible 
pointer type
./dnet.c: In function ‘__pyx_f_4dnet_2fw___dealloc__’:
./dnet.c:5306: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_4rand___dealloc__’:
./dnet.c:5640: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_13__rand_xrange___init__’:
./dnet.c:5736: warning: label ‘__pyx_L5’ defined but not used
./dnet.c:5729: warning: label ‘__pyx_L4’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_13__rand_xrange___iter__’:
./dnet.c:5798: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_13__rand_xrange___len__’:
./dnet.c:5817: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_13__rand_xrange___next__’:
./dnet.c:5890: warning: label ‘__pyx_L6’ defined but not used
./dnet.c:5888: warning: label ‘__pyx_L5’ defined but not used
./dnet.c:5854: warning: label ‘__pyx_L3’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_3tun_close’:
./dnet.c:6146: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_3tun___dealloc__’:
./dnet.c:6180: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_tp_new_4dnet_eth’:
./dnet.c:6402: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet_eth’:
./dnet.c:6407: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet_eth’:
./dnet.c:6422: warning: unused variable ‘p’
./dnet.c:6421: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet_eth’:
./dnet.c:6427: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet_ip’:
./dnet.c:6556: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet_ip’:
./dnet.c:6561: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet_ip’:
./dnet.c:6576: warning: unused variable ‘p’
./dnet.c:6575: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet_ip’:
./dnet.c:6581: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet_addr’:
./dnet.c:6708: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet_addr’:
./dnet.c:6713: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet_addr’:
./dnet.c:6719: warning: unused variable ‘p’
./dnet.c:6718: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet_addr’:
./dnet.c:6724: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet___addr_ip4_iter’:
./dnet.c:6937: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet___addr_ip4_iter’:
./dnet.c:6942: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet___addr_ip4_iter’:
./dnet.c:6948: warning: unused variable ‘p’
./dnet.c:6947: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet___addr_ip4_iter’:
./dnet.c:6953: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet_arp’:
./dnet.c:7079: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet_arp’:
./dnet.c:7084: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet_arp’:
./dnet.c:7099: warning: unused variable ‘p’
./dnet.c:7098: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet_arp’:
./dnet.c:7104: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet_intf’:
./dnet.c:7234: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet_intf’:
./dnet.c:7239: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet_intf’:
./dnet.c:7254: warning: unused variable ‘p’
./dnet.c:7253: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet_intf’:
./dnet.c:7259: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet_route’:
./dnet.c:7390: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet_route’:
./dnet.c:7395: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet_route’:
./dnet.c:7410: warning: unused variable ‘p’
./dnet.c:7409: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet_route’:
./dnet.c:7415: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet_fw’:
./dnet.c:7545: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet_fw’:
./dnet.c:7550: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet_fw’:
./dnet.c:7565: warning: unused variable ‘p’
./dnet.c:7564: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet_fw’:
./dnet.c:7570: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet_rand’:
./dnet.c:7699: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet_rand’:
./dnet.c:7704: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet_rand’:
./dnet.c:7719: warning: unused variable ‘p’
./dnet.c:7718: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet_rand’:
./dnet.c:7724: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet___rand_xrange’:
./dnet.c:7857: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet___rand_xrange’:
./dnet.c:7862: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet___rand_xrange’:
./dnet.c:7868: warning: unused variable ‘p’
./dnet.c:7867: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet___rand_xrange’:
./dnet.c:7873: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet_tun’:
./dnet.c:7999: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet_tun’:
./dnet.c:8004: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet_tun’:
./dnet.c:8019: warning: unused variable ‘p’
./dnet.c:8018: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet_tun’:
./dnet.c:8024: warning: unused variable ‘p’
./dnet.c: In function ‘__Pyx_EndUnpack’:
./dnet.c:9271: warning: suggest parentheses around assignment used as truth 
value
./dnet.c: At top level:
./dnet.c:30: warning: ‘__Pyx_PrintItem’ declared ‘static’ but never 
defined
./dnet.c:31: warning: ‘__Pyx_PrintNewline’ declared ‘static’ but never 
defined
./dnet.c:33: warning: ‘__Pyx_ReRaise’ declared ‘static’ but never 
defined
./dnet.c:34: warning: ‘__Pyx_Import’ declared ‘static’ but never defined
./dnet.c:35: warning: ‘__Pyx_GetExcValue’ declared ‘static’ but never 
defined
./dnet.c:38: warning: ‘__Pyx_GetStarArgs’ declared ‘static’ but never 
defined
./dnet.c:39: warning: ‘__Pyx_WriteUnraisable’ declared ‘static’ but 
never defined
./dnet.c:41: warning: ‘__Pyx_ImportType’ declared ‘static’ but never 
defined
./dnet.c:42: warning: ‘__Pyx_SetVtable’ declared ‘static’ but never 
defined
./dnet.c:43: warning: ‘__Pyx_GetVtable’ declared ‘static’ but never 
defined
./dnet.c:44: warning: ‘__Pyx_CreateClass’ declared ‘static’ but never 
defined
./dnet.c:47: warning: ‘__Pyx_InitCApi’ declared ‘static’ but never 
defined
./dnet.c:48: warning: ‘__Pyx_ImportModuleCApi’ declared ‘static’ but 
never defined
./dnet.c: In function ‘__pyx_f_4dnet_4addr___hash__’:
./dnet.c:2396: warning: ‘__pyx_v_size’ may be used uninitialized in this 
function
./dnet.c: In function ‘__pyx_f_4dnet___oserror’:
./dnet.c:447: warning: function declaration isn’t a prototype
./dnet.c: In function ‘__pyx_f_4dnet_3eth_get’:
./dnet.c:581: warning: pointer targets in passing argument 1 of 
‘PyString_FromStringAndSize’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_3eth_set’:
./dnet.c:613: warning: pointer targets in passing argument 1 of 
‘__pyx_f_4dnet___memcpy’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_3eth___dealloc__’:
./dnet.c:691: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_eth_ntoa’:
./dnet.c:709: warning: pointer targets in passing argument 1 of 
‘__pyx_f_4dnet___memcpy’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_eth_aton’:
./dnet.c:761: warning: pointer targets in passing argument 1 of 
‘PyString_FromStringAndSize’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_eth_pack_hdr’:
./dnet.c:799: warning: pointer targets in passing argument 1 of 
‘__pyx_f_4dnet___memcpy’ differ in signedness
./dnet.c:803: warning: pointer targets in passing argument 1 of 
‘__pyx_f_4dnet___memcpy’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_2ip___dealloc__’:
./dnet.c:916: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_ip_checksum’:
./dnet.c:1044: warning: passing argument 2 of ‘PyObject_AsReadBuffer’ from 
incompatible pointer type
./dnet.c:1044: warning: passing argument 3 of ‘PyObject_AsReadBuffer’ from 
incompatible pointer type
./dnet.c: In function ‘__pyx_f_4dnet_ip_cksum_add’:
./dnet.c:1125: warning: passing argument 2 of ‘PyObject_AsReadBuffer’ from 
incompatible pointer type
./dnet.c:1125: warning: passing argument 3 of ‘PyObject_AsReadBuffer’ from 
incompatible pointer type
./dnet.c: In function ‘__pyx_f_4dnet_4addr_3eth___get__’:
./dnet.c:1755: warning: pointer targets in passing argument 1 of 
‘PyString_FromStringAndSize’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_4addr_3eth___set__’:
./dnet.c:1805: warning: pointer targets in passing argument 1 of 
‘__pyx_f_4dnet___memcpy’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_4addr_2ip___get__’:
./dnet.c:1864: warning: pointer targets in passing argument 1 of 
‘PyString_FromStringAndSize’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_4addr_2ip___set__’:
./dnet.c:1928: warning: pointer targets in passing argument 1 of 
‘__pyx_f_4dnet___memcpy’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_4addr_3ip6___get__’:
./dnet.c:1989: warning: pointer targets in passing argument 1 of 
‘PyString_FromStringAndSize’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_4addr_3ip6___set__’:
./dnet.c:2039: warning: pointer targets in passing argument 1 of 
‘__pyx_f_4dnet___memcpy’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_4addr___hash__’:
./dnet.c:2464: warning: label ‘__pyx_L4’ defined but not used
./dnet.c:2462: warning: label ‘__pyx_L3’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_3arp_loop’:
./dnet.c:3118: warning: passing argument 2 of ‘arp_loop’ from incompatible 
pointer type
./dnet.c: In function ‘__pyx_f_4dnet_3arp___dealloc__’:
./dnet.c:3211: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_arp_pack_hdr_ethip’:
./dnet.c:3247: warning: pointer targets in passing argument 1 of 
‘__pyx_f_4dnet___memcpy’ differ in signedness
./dnet.c:3251: warning: pointer targets in passing argument 1 of 
‘__pyx_f_4dnet___memcpy’ differ in signedness
./dnet.c: In function ‘__pyx_f_4dnet_ifent_to_dict’:
./dnet.c:3591: warning: label ‘__pyx_L7’ defined but not used
./dnet.c:3589: warning: label ‘__pyx_L6’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_dict_to_ifent’:
./dnet.c:3745: warning: label ‘__pyx_L9’ defined but not used
./dnet.c:3743: warning: label ‘__pyx_L8’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_4intf_loop’:
./dnet.c:4135: warning: passing argument 2 of ‘intf_loop’ from incompatible 
pointer type
./dnet.c: In function ‘__pyx_f_4dnet_4intf___dealloc__’:
./dnet.c:4225: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_5route_loop’:
./dnet.c:4556: warning: passing argument 2 of ‘route_loop’ from 
incompatible pointer type
./dnet.c: In function ‘__pyx_f_4dnet_5route___dealloc__’:
./dnet.c:4646: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_2fw_loop’:
./dnet.c:5216: warning: passing argument 2 of ‘fw_loop’ from incompatible 
pointer type
./dnet.c: In function ‘__pyx_f_4dnet_2fw___dealloc__’:
./dnet.c:5306: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_4rand___dealloc__’:
./dnet.c:5640: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_13__rand_xrange___init__’:
./dnet.c:5736: warning: label ‘__pyx_L5’ defined but not used
./dnet.c:5729: warning: label ‘__pyx_L4’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_13__rand_xrange___iter__’:
./dnet.c:5798: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_13__rand_xrange___len__’:
./dnet.c:5817: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_13__rand_xrange___next__’:
./dnet.c:5890: warning: label ‘__pyx_L6’ defined but not used
./dnet.c:5888: warning: label ‘__pyx_L5’ defined but not used
./dnet.c:5854: warning: label ‘__pyx_L3’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_3tun_close’:
./dnet.c:6146: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_f_4dnet_3tun___dealloc__’:
./dnet.c:6180: warning: label ‘__pyx_L1’ defined but not used
./dnet.c: In function ‘__pyx_tp_new_4dnet_eth’:
./dnet.c:6402: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet_eth’:
./dnet.c:6407: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet_eth’:
./dnet.c:6422: warning: unused variable ‘p’
./dnet.c:6421: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet_eth’:
./dnet.c:6427: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet_ip’:
./dnet.c:6556: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet_ip’:
./dnet.c:6561: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet_ip’:
./dnet.c:6576: warning: unused variable ‘p’
./dnet.c:6575: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet_ip’:
./dnet.c:6581: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet_addr’:
./dnet.c:6708: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet_addr’:
./dnet.c:6713: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet_addr’:
./dnet.c:6719: warning: unused variable ‘p’
./dnet.c:6718: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet_addr’:
./dnet.c:6724: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet___addr_ip4_iter’:
./dnet.c:6937: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet___addr_ip4_iter’:
./dnet.c:6942: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet___addr_ip4_iter’:
./dnet.c:6948: warning: unused variable ‘p’
./dnet.c:6947: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet___addr_ip4_iter’:
./dnet.c:6953: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet_arp’:
./dnet.c:7079: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet_arp’:
./dnet.c:7084: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet_arp’:
./dnet.c:7099: warning: unused variable ‘p’
./dnet.c:7098: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet_arp’:
./dnet.c:7104: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet_intf’:
./dnet.c:7234: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet_intf’:
./dnet.c:7239: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet_intf’:
./dnet.c:7254: warning: unused variable ‘p’
./dnet.c:7253: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet_intf’:
./dnet.c:7259: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet_route’:
./dnet.c:7390: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet_route’:
./dnet.c:7395: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet_route’:
./dnet.c:7410: warning: unused variable ‘p’
./dnet.c:7409: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet_route’:
./dnet.c:7415: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet_fw’:
./dnet.c:7545: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet_fw’:
./dnet.c:7550: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet_fw’:
./dnet.c:7565: warning: unused variable ‘p’
./dnet.c:7564: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet_fw’:
./dnet.c:7570: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet_rand’:
./dnet.c:7699: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet_rand’:
./dnet.c:7704: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet_rand’:
./dnet.c:7719: warning: unused variable ‘p’
./dnet.c:7718: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet_rand’:
./dnet.c:7724: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet___rand_xrange’:
./dnet.c:7857: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet___rand_xrange’:
./dnet.c:7862: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet___rand_xrange’:
./dnet.c:7868: warning: unused variable ‘p’
./dnet.c:7867: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet___rand_xrange’:
./dnet.c:7873: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_new_4dnet_tun’:
./dnet.c:7999: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_dealloc_4dnet_tun’:
./dnet.c:8004: warning: unused variable ‘p’
./dnet.c: In function ‘__pyx_tp_traverse_4dnet_tun’:
./dnet.c:8019: warning: unused variable ‘p’
./dnet.c:8018: warning: unused variable ‘e’
./dnet.c: In function ‘__pyx_tp_clear_4dnet_tun’:
./dnet.c:8024: warning: unused variable ‘p’
./dnet.c: In function ‘__Pyx_EndUnpack’:
./dnet.c:9271: warning: suggest parentheses around assignment used as truth 
value
./dnet.c: At top level:
./dnet.c:30: warning: ‘__Pyx_PrintItem’ declared ‘static’ but never 
defined
./dnet.c:31: warning: ‘__Pyx_PrintNewline’ declared ‘static’ but never 
defined
./dnet.c:33: warning: ‘__Pyx_ReRaise’ declared ‘static’ but never 
defined
./dnet.c:34: warning: ‘__Pyx_Import’ declared ‘static’ but never defined
./dnet.c:35: warning: ‘__Pyx_GetExcValue’ declared ‘static’ but never 
defined
./dnet.c:38: warning: ‘__Pyx_GetStarArgs’ declared ‘static’ but never 
defined
./dnet.c:39: warning: ‘__Pyx_WriteUnraisable’ declared ‘static’ but 
never defined
./dnet.c:41: warning: ‘__Pyx_ImportType’ declared ‘static’ but never 
defined
./dnet.c:42: warning: ‘__Pyx_SetVtable’ declared ‘static’ but never 
defined
./dnet.c:43: warning: ‘__Pyx_GetVtable’ declared ‘static’ but never 
defined
./dnet.c:44: warning: ‘__Pyx_CreateClass’ declared ‘static’ but never 
defined
./dnet.c:47: warning: ‘__Pyx_InitCApi’ declared ‘static’ but never 
defined
./dnet.c:48: warning: ‘__Pyx_ImportModuleCApi’ declared ‘static’ but 
never defined
./dnet.c: In function ‘__pyx_f_4dnet_4addr___hash__’:
./dnet.c:2396: warning: ‘__pyx_v_size’ may be used uninitialized in this 
function
creating build/lib.macosx-10.6-universal-2.6
gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 
build/temp.macosx-10.6-universal-2.6/./dnet.o ..//src/.libs/addr-util.o 
..//src/.libs/addr.o ..//src/.libs/arp-bsd.o ..//src/.libs/blob.o 
..//src/.libs/eth-bsd.o ..//src/.libs/fw-ipfw.o ..//src/.libs/intf.o 
..//src/.libs/ip-util.o ..//src/.libs/ip.o ..//src/.libs/ip6.o 
..//src/.libs/rand.o ..//src/.libs/route-bsd.o ..//src/.libs/tun-none.o -o 
build/lib.macosx-10.6-universal-2.6/dnet.so
ld: warning: ignoring file ..//src/.libs/addr-util.o, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file ..//src/.libs/addr.o, file was built for unsupported 
file format which is not the architecture being linked (i386)
ld: warning: ignoring file ..//src/.libs/arp-bsd.o, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file ..//src/.libs/blob.o, file was built for unsupported 
file format which is not the architecture being linked (i386)
ld: warning: ignoring file ..//src/.libs/eth-bsd.o, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file ..//src/.libs/fw-ipfw.o, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file ..//src/.libs/intf.o, file was built for unsupported 
file format which is not the architecture being linked (i386)
ld: warning: ignoring file ..//src/.libs/ip-util.o, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file ..//src/.libs/ip.o, file was built for unsupported 
file format which is not the architecture being linked (i386)
ld: warning: ignoring file ..//src/.libs/ip6.o, file was built for unsupported 
file format which is not the architecture being linked (i386)
ld: warning: ignoring file ..//src/.libs/rand.o, file was built for unsupported 
file format which is not the architecture being linked (i386)
ld: warning: ignoring file ..//src/.libs/route-bsd.o, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file ..//src/.libs/tun-none.o, file was built for 
unsupported file format which is not the architecture being linked (i386)

What version of the product are you using? On what operating system?

0.4.0 and 10.6.8 OS X

Please provide any additional information below.

Installation instructions:
http://easymactips.blogspot.com/2011/07/how-to-install-pyrit-cuda-on-mac.html

Original issue reported on code.google.com by mxbndr on 23 Dec 2011 at 4:14

GoogleCodeExporter commented 8 years ago
Actually, my mistake, the .bash_profile edit did work, but the next step hit a 
gcc error:

pylibpcap-0.6.2 user$ sudo python setup.py install
running install
running build
running build_ext
building '_pcapmodule' extension
creating build
creating build/temp.macosx-10.6-universal-2.6
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall 
-Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe 
-DSWIG_COBJECT_TYPES 
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c 
pcap.c -o build/temp.macosx-10.6-universal-2.6/pcap.o
pcap.c: In function ‘SWIG_Python_AddErrorMsg’:
pcap.c:859: warning: format not a string literal and no format arguments
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler 
(/usr/bin/../libexec/gcc/darwin/ppc/as or 
/usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
pcap.c: In function ‘SWIG_Python_AddErrorMsg’:
pcap.c:859: warning: format not a string literal and no format arguments
pcap.c: In function ‘_wrap_delete_pcapObject’:
pcap.c:3466: warning: ‘argv[0]’ may be used uninitialized in this function
pcap.c: At top level:
pcap.c:4269: fatal error: error writing to -: Broken pipe
compilation terminated.
pcap.c: In function ‘SWIG_Python_AddErrorMsg’:
pcap.c:859: warning: format not a string literal and no format arguments
lipo: can't open input file: /var/tmp//ccovQDOQ.out (No such file or directory)
error: command 'gcc-4.2' failed with exit status 1

Why wouldn't it also solve the above issue?

Original comment by mxbndr on 23 Dec 2011 at 4:33

GoogleCodeExporter commented 8 years ago
OK, I realize I'm still talking to myself here but...

After putting 

export ARCHFLAGS=”-arch i386 –arch x86_64”

in the .bash_profile

and replacing instances of 

python setup.py install

with 

env ARCHFLAGS="-arch i386 -arch x86_64" python setup.py install

everything SEEMS to install properly.

Here's the juicy bit:

cpyrit_cuda username$ sudo LDFLAGS=-L/usr/local/cuda/lib env ARCHFLAGS="-arch 
i386 -arch x86_64" python setup.py install
running install
running build
running build_ext
Skipping rebuild of Nvidia CUDA kernel ...
Building modules...
building 'cpyrit._cpyrit_cuda' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall 
-Wstrict-prototypes -DENABLE_DTRACE -pipe -arch i386 -arch x86_64 
-I/usr/local/cuda/include 
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c 
_cpyrit_cuda.c -o build/temp.macosx-10.6-universal-2.6/_cpyrit_cuda.o -Wall 
-fno-strict-aliasing -DVERSION="0.4.1-dev (svn r308)"
creating build/lib.macosx-10.6-universal-2.6
creating build/lib.macosx-10.6-universal-2.6/cpyrit
gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -L/usr/local/cuda/lib -arch 
i386 -arch x86_64 build/temp.macosx-10.6-universal-2.6/_cpyrit_cuda.o -lcrypto 
-lcuda -lz -o build/lib.macosx-10.6-universal-2.6/cpyrit/_cpyrit_cuda.so
running install_lib
copying build/lib.macosx-10.6-universal-2.6/cpyrit/_cpyrit_cuda.so -> 
/Library/Python/2.6/site-packages/cpyrit
running install_egg_info
Removing 
/Library/Python/2.6/site-packages/cpyrit_cuda-0.4.1_dev._svn.r308_-py2.6.egg-inf
o
Writing 
/Library/Python/2.6/site-packages/cpyrit_cuda-0.4.1_dev._svn.r308_-py2.6.egg-inf
o
MacMini-Business:cpyrit_cuda username$ pyrit list_cores-bash: pyrit: command 
not found
MacMini-Business:cpyrit_cuda username$ cd ..
MacMini-Business:pyrit-read-only username$ cd ..
MacMini-Business:~ username$ cd ..
MacMini-Business:Users username$ cd ..
MacMini-Business:/ username$ cd ..
MacMini-Business:/ username$ cd ..
MacMini-Business:/ username$ pyrit list_cores-bash: pyrit: command not found
MacMini-Business:/ username$ 

And the location of the files (I don't know if it is correct):

MacMini-Business:/ username$ cd /Library/Python/2.6/site-packages 
MacMini-Business:site-packages username$ ls
README dnet.so pyrit_cli.py
_pcapmodule.so pcap.py pyrit_cli.pyc
cpyrit pcap.pyc pyrit_cli.pyo
cpyrit_cuda-0.4.1_dev._svn.r308_-py2.6.egg-info pylibpcap-0.6.2-py2.6.egg-info 
scapy
dnet-1.12-py2.6.egg-info pyrit-0.4.1_dev._svn.r308_-py2.6.egg-info 
scapy-2.1.0-py2.6.egg-info

I know I must be doing something wrong somewhere, but I'm unsure of what the 
expected output should be, so it's hard to compare my results to anything, 
especially when there are no explicit errors anymore. I suspect it has 
something to do with where my files are being installed to....

Original comment by mxbndr on 26 Dec 2011 at 8:48

GoogleCodeExporter commented 8 years ago
Here's something really interesting. I can drag 
/Users/username/pyrit-0.3.0/build/scripts-2.6/pyrit into the Terminal window 
and it runs normally then. Even detects the GPU cores with list_cores. But I 
can't run it as a command

pyrit

even when in that folder. There is also another pyrit UNIX executable 2 folders 
back, in 

/pyrit-0.3.0

but I can't run that one.

Will try to attack using this drag method...

Original comment by mxbndr on 26 Dec 2011 at 2:32

GoogleCodeExporter commented 8 years ago
I believe this issue is resolved. I cannot seem to edit my .profile with the 
proper path in order to get

pyrit

working as a standalone command, but when using it the old fashioned way the 
program works (AFAIK).

Many thanks for putting up with my long and lonely processing.

Original comment by mxbndr on 27 Dec 2011 at 8:18