Bonjour,
J'essay de compiler le source de a librairie Jpcap.
Et j'obtiens l'erreur suivante:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
jpcap-0.7/src/c# make
gcc -shared -L. -I/usr/lib/jvm/java-6-sun-1.6.0.16/include -I/usr/lib/jvm/java-6-sun-1.6.0.16/include/linux\
		 -I/usr/include\
		JpcapCaptor.c JpcapSender.c JpcapWriter.c\
          packet_arp.c packet_datalink.c packet_icmp.c packet_ip.c\
          packet_ipv6.c packet_tcp.c packet_udp.c\
		-o libjpcap.so -lpcap
JpcapCaptor.c: In function 'Java_jpcap_JpcapCaptor_processPacket':
JpcapCaptor.c:449: warning: cast to pointer from integer of different size
JpcapCaptor.c: In function 'Java_jpcap_JpcapCaptor_loopPacket':
JpcapCaptor.c:468: warning: cast to pointer from integer of different size
JpcapCaptor.c: In function 'dispatcher_handler':
JpcapCaptor.c:682: warning: cast from pointer to integer of different size
JpcapWriter.c: In function 'Java_jpcap_JpcapWriter_close':
JpcapWriter.c:47: warning: incompatible implicit declaration of built-in function 'free'
packet_icmp.c: In function 'analyze_icmp':
packet_icmp.c:81: warning: cast to pointer from integer of different size
packet_icmp.c:83: warning: cast from pointer to integer of different size
/usr/bin/ld: /tmp/cckswYR5.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/tmp/cckswYR5.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libjpcap.so] Error 1
Je pense que l'erreur est liée a mon système.
Quelqu'un a une idée?

Merci,