Saludos!
Yo uso ubuntu 9.04
mi archivo /etc/ld.so.conf:
==============================
gandalf@gandalf-laptop:~$ cat /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf
include /usr/lib
include /u01/app/oracle/product/11.1.0/db_1/lib
/root/fuck/libnfc/libnfc-read-only/libnfc
/root/fuck/libnfc/libnfc-read-only/libnfc/.libs
/usr/local/lib/
======================================
Can you help me: I get the following error when compiling with
gcc -o mfcuk_keyrecovery_darkside mfcuk_keyrecovery_darkside.c -I/root/fuck/libnfc/libnfc-read-only/include -I. -L/usr/local -L./bin/libnfc.lib -lnfc ./*.o
àrbol de directrios:
Niel de diectorio contenedor
================================================== =
root@gandalf-laptop:~/fuck# ls -la
total 72
drwxr-xr-x 18 root root 4096 2010-08-28 16:04 .
drwx------ 51 root root 4096 2010-08-28 18:04 ..
drwxr-xr-x 3 root root 4096 2010-08-27 22:42 02
drwxr-xr-x 3 root root 4096 2010-08-28 18:03 03
drwxr-xr-x 3 root root 4096 2010-08-28 10:11 04
drwxr-xr-x 5 root root 4096 2010-08-28 16:28 7
drwxr-xr-x 3 root root 4096 2010-08-28 13:20 crapto1
drwxr-xr-x 3 root root 4096 2010-08-27 23:43 craptogui
drwxr-xr-x 4 root root 4096 2010-08-27 13:44 driverlector
drwxr-xr-x 3 root root 4096 2010-08-27 15:36 fuck
drwxr-xr-x 3 root root 4096 2010-08-27 17:06 libnfc
drwxr-xr-x 3 root root 4096 2010-08-27 13:15 libnfc-read-onlyautoreconf
drwxr-xr-x 3 root root 4096 2010-08-28 08:49 librfid
drwxr-xr-x 3 root root 4096 2010-08-27 17:17 mfcuk
drwxr-xr-x 3 root root 4096 2010-08-28 11:09 mfoc
drwxr-xr-x 3 root root 4096 2010-08-28 11:11 mfoc_new
drwxr-xr-x 3 root root 4096 2010-08-27 23:29 rfdump
drwxr-xr-x 3 root root 4096 2010-08-27 23:02 rfidiot
Primer nivel:
================================================== =
root@gandalf-laptop:~/fuck/03# ls -la
total 136
drwxr-xr-x 3 root root 4096 2010-08-28 18:03 .
drwxr-xr-x 18 root root 4096 2010-08-28 16:04 ..
-rwxr-xr-x 1 root root 18329 2010-08-28 17:06 cm
-rw-r--r-- 1 root root 2814 2010-06-04 15:18 cm.c
-rw-r--r-- 1 root root 8699 2010-06-04 15:17 crf.c
-rw-r--r-- 1 root root 9402 2010-06-04 15:18 cryptolib.c
-rw-r--r-- 1 root root 2036 2010-06-04 15:18 cryptolib.h
-rw-r--r-- 1 root root 9324 2010-08-28 17:06 cryptolib.o
-rw-r--r-- 1 root root 12329 2010-08-28 17:06 cryptomemrf.zip
-rw-r--r-- 1 root root 1101 2010-06-04 15:24 defines.h
-rw-r--r-- 1 root root 351 2010-05-07 07:17 Makefile
drwxr-xr-x 5 root root 4096 2010-08-28 09:37 mfcuk-read-only
-rwxr-xr-x 1 root root 18329 2010-08-28 17:06 sm
-rw-r--r-- 1 root root 2372 2010-06-04 15:18 sm.c
-rw-r--r-- 1 root root 1225 2010-06-04 15:24 util.c
-rw-r--r-- 1 root root 1034 2010-06-04 15:24 util.h
-rw-r--r-- 1 root root 1096 2010-08-28 17:06 util.o
Segundo nivel:
================================================== ===
root@gandalf-laptop:~/fuck/03/mfcuk-read-only/src# ls -l
total 220
drwxr-xr-x 4 root root 4096 2010-08-28 17:52 bin
-rw-r--r-- 1 root root 334 2010-08-28 09:37 build_cygwin.sh
-rw-r--r-- 1 root root 14007 2010-08-28 09:37 crapto1.c
-rw-r--r-- 1 root root 3090 2010-08-28 09:37 crapto1.h
-rw-r--r-- 1 root root 8332 2010-08-28 13:30 crapto1.o
-rw-r--r-- 1 root root 2481 2010-08-28 09:37 crypto1.c
-rw-r--r-- 1 root root 2096 2010-08-28 13:30 crypto1.o
-rw-r--r-- 1 root root 321 2010-08-28 09:37 Makefile.am
-rw-r--r-- 1 root root 5781 2010-08-28 09:37 mfcuk_finger.c
-rw-r--r-- 1 root root 2186 2010-08-28 09:37 mfcuk_finger.h
-rw-r--r-- 1 root root 3676 2010-08-28 13:30 mfcuk_finger.o
-rw-r--r-- 1 root root 74442 2010-08-28 12:57 mfcuk_keyrecovery_darkside.c
-rw-r--r-- 1 root root 6653 2010-08-28 09:37 mfcuk_keyrecovery_darkside.h
-rw-r--r-- 1 root root 15747 2010-08-28 09:37 mfcuk_mifare.c
-rw-r--r-- 1 root root 6995 2010-08-28 12:58 mfcuk_mifare.h
-rw-r--r-- 1 root root 6324 2010-08-28 13:31 mfcuk_mifare.o
-rw-r--r-- 1 root root 2377 2010-08-28 09:37 mfcuk_utils.c
-rw-r--r-- 1 root root 3198 2010-08-28 09:37 mfcuk_utils.h
-rw-r--r-- 1 root root 873 2010-08-28 13:32 mfcuk_utils.o
-rw-r--r-- 1 root root 1412 2010-08-28 11:35 mifaretag.h
-rw-r--r-- 1 root root 7083 2010-08-28 09:37 xgetopt.c
-rw-r--r-- 1 root root 655 2010-08-28 09:37 xgetopt.h
-rw-r--r-- 1 root root 1740 2010-08-28 13:32 xgetopt.o
root@gandalf-laptop:~/fuck/03/mfcuk-read-only/src#
aquì, compilando con:
gcc -o mfcuk_keyrecovery_darkside mfcuk_keyrecovery_darkside.c -I/root/fuck/libnfc/libnfc-read-only/include -I. -L/usr/local -L./bin/libnfc.lib -lnfc ./*.o
Obtengo el sig error:
root@gandalf-laptop:~/fuck/03/mfcuk-read-only/src# gcc -o mfcuk_keyrecovery_darkside mfcuk_keyrecovery_darkside.c -I/root/fuck/libnfc/libnfc-read-only/include -I. -L/usr/local -L./bin/libnfc.lib -lnfc ./*.o
mfcuk_keyrecovery_darkside.c: En la función ‘main’:
mfcuk_keyrecovery_darkside.c:893: aviso: la constante entera es demasiado grande para el tipo ‘long’
/tmp/ccgG1DnL.o: In function `mfcuk_verify_key_block':
mfcuk_keyrecovery_darkside.c.text+0x2dc): undefined reference to `swap_endian32'
mfcuk_keyrecovery_darkside.c.text+0x3c4): undefined reference to `oddparity'
mfcuk_keyrecovery_darkside.c.text+0x499): undefined reference to `oddparity'
/tmp/ccgG1DnL.o: In function `mfcuk_key_recovery_block':
mfcuk_keyrecovery_darkside.c.text+0x8c8): undefined reference to `swap_endian32'
mfcuk_keyrecovery_darkside.c.text+0xb86): undefined reference to `oddparity'
mfcuk_keyrecovery_darkside.c.text+0xd38): undefined reference to `oddparity'
/tmp/ccgG1DnL.o: In function `mfcuk_darkside_select_tag':
mfcuk_keyrecovery_darkside.c.text+0x1db4): undefined reference to `nfc_initiator_select_tag'
/tmp/ccgG1DnL.o: In function `main':
mfcuk_keyrecovery_darkside.c.text+0x2525): undefined reference to `swap_endian32'
mfcuk_keyrecovery_darkside.c.text+0x33f0): undefined reference to `print_hex'
mfcuk_keyrecovery_darkside.c.text+0x35b7): undefined reference to `swap_endian32'
mfcuk_keyrecovery_darkside.c.text+0x3765): undefined reference to `swap_endian32'
mfcuk_keyrecovery_darkside.c.text+0x37ac): undefined reference to `swap_endian32'
mfcuk_keyrecovery_darkside.c.text+0x3ab2): undefined reference to `nfc_initiator_select_tag'
mfcuk_keyrecovery_darkside.c.text+0x3b07): undefined reference to `nfc_initiator_mifare_cmd'
con:
gcc -o zv_mf_dark_side zv_mf_dark_side.c ./crapto1-v3.1/crapto1.c
./crapto1-v3.1/crypto1.c ./libnfc-v1.2.1/bin/libnfc.lib -lnfc
-I./libnfc-v1.2.1/include -L./libnfc-v1.2.1/lib
No Compila correctamente.
por cierto el paquete no lo puedo configurar y construir con los comandos que muestras, o talves es otra distro, me puedes decir donde la consigo!?
Gracias.
Marcadores