Error make ping6x dan traceroute6x pada FreeBSD 7.0

[root@cypher_q /usr/xcast6/ping6x]# make
Warning: Object directory not changed from original /usr/xcast6/ping6x
cc -O2 -fno-strict-aliasing -pipe  -DINET6 -DIPSEC -DKAME_SCOPEID  -c ping6x.c
In file included from ping6x.c:141:
/usr/include/netinet6/ah.h:45:50: error: netkey/keydb.h: No such file or directory
In file included from ping6x.c:142:
/usr/include/netinet6/ipsec.h:45:26: error: netkey/keyv2.h: No such file or directory
In file included from ping6x.c:142:
/usr/include/netinet6/ipsec.h:122: error: ‘SADB_EALG_MAX’ undeclared here (not in a function)
/usr/include/netinet6/ipsec.h:123: error: ‘SADB_AALG_MAX’ undeclared here (not in a function)
ping6x.c: In function ‘pr_rthdr’:
ping6x.c:1690: warning: assignment makes pointer from integer without a cast
ping6x.c: In function ‘setpolicy’:
ping6x.c:2443: error: too few arguments to function ‘ipsec_set_policy’
*** Error code 1

14 November 2008 jam 00:59
dengan FreeBSD 7.0 dan tambahan pada netinet6

jam 01:20 telah di tambah semua dari include, terdapat netkey.
Tapi setelah di make ternyata tetap aja ada yang error

[root@cypher_q /usr/xcast6/ping6x]# make
Warning: Object directory not changed from original /usr/xcast6/ping6x
cc -O2 -fno-strict-aliasing -pipe  -DINET6 -DIPSEC -DKAME_SCOPEID  -c ping6x.c
ping6x.c: In function ‘main’:
ping6x.c:365: error: ‘NI_NODEADDR_FLAG_COMPAT’ undeclared (first use in this function)
ping6x.c:365: error: (Each undeclared identifier is reported only once
ping6x.c:365: error: for each function it appears in.)
ping6x.c: In function ‘pinger’:
ping6x.c:1125: error: ‘ICMP6_NI_SUBJ_IPV6’ undeclared (first use in this function)
ping6x.c:1130: warning: passing argument 1 of ‘memcpy’ makes pointer from integer without a cast
ping6x.c:1131: warning: cast to pointer from integer of different size
ping6x.c:1145: warning: passing argument 1 of ‘memcpy’ makes pointer from integer without a cast
ping6x.c:1146: warning: cast to pointer from integer of different size
ping6x.c:1157: warning: passing argument 1 of ‘memcpy’ makes pointer from integer without a cast
ping6x.c:1158: warning: cast to pointer from integer of different size
ping6x.c:1166: error: ‘ICMP6_NI_SUBJ_FQDN’ undeclared (first use in this function)
ping6x.c:1172: warning: passing argument 1 of ‘memcpy’ makes pointer from integer without a cast
ping6x.c:1173: warning: cast to pointer from integer of different size
ping6x.c: In function ‘mynireply’:
ping6x.c:1223: warning: passing argument 1 of ‘memcmp’ makes pointer from integer without a cast
ping6x.c: In function ‘pr_pack’:
ping6x.c:1417: warning: cast to pointer from integer of different size
ping6x.c:1434: error: ‘ICMP6_NI_SUCCESS’ undeclared (first use in this function)
ping6x.c: In function ‘pr_icmph’:
ping6x.c:2169: error: ‘NI_QTYPE_IPV4ADDR’ undeclared (first use in this function)
ping6x.c:2178: error: ‘ICMP6_NI_SUBJ_IPV6’ undeclared (first use in this function)
ping6x.c:2193: error: ‘ICMP6_NI_SUBJ_FQDN’ undeclared (first use in this function)
ping6x.c:2206: error: ‘ICMP6_NI_SUBJ_IPV4’ undeclared (first use in this function)
ping6x.c: In function ‘setpolicy’:
ping6x.c:2443: error: too few arguments to function ‘ipsec_set_policy’
*** Error code 1

DENGAN INI SAYA PUTUSKAN BAHWA FreeBSD 7.0 belum cocok untuk XCAST6 walaupun sudah berhasil saya patch ke kernel tetapi masih terdapat kegagalan.
Telah saya temukan cara kompile kernel yang benar yaitu

Yang benar dari erlang

/home/erlang/softs/ping6x $ make
Warning: Object directory not changed from original /home/erlang/fun/video/ping6x
cc -O2 -fno-strict-aliasing -pipe -march=pentium4 -DINET6 -DIPSEC -DKAME_SCOPEID  -c ping6x.c
cc -O2 -fno-strict-aliasing -pipe -march=pentium4 -DINET6 -DIPSEC -DKAME_SCOPEID   -o ping6x ping6x.o -lipsec -lm -lmd
gzip -cn ping6x.8 > ping6x.8.gz

/home/erlang/softs/libxcast $ make
Warning: Object directory not changed from original /home/erlang/softs/libxcast
cc -O2 -fno-strict-aliasing -pipe -march=pentium4 -I. -Wall -g  -c group.c
cc -O2 -fno-strict-aliasing -pipe -march=pentium4 -I. -Wall -g  -c member.c
cc -O2 -fno-strict-aliasing -pipe -march=pentium4 -I. -Wall -g  -c send.c
cc -O2 -fno-strict-aliasing -pipe -march=pentium4 -I. -Wall -g  -c sockopt.c
cc -O2 -fno-strict-aliasing -pipe -march=pentium4 -I. -Wall -g  -c hdrlen.c
building static xcast library
ranlib libxcast.a
cc -pg -O2 -fno-strict-aliasing -pipe -march=pentium4 -I. -Wall -g  -c group.c -o group.po
cc -pg -O2 -fno-strict-aliasing -pipe -march=pentium4 -I. -Wall -g  -c member.c -o member.po
cc -pg -O2 -fno-strict-aliasing -pipe -march=pentium4 -I. -Wall -g  -c send.c -o send.po
cc -pg -O2 -fno-strict-aliasing -pipe -march=pentium4 -I. -Wall -g  -c sockopt.c -o sockopt.po
cc -pg -O2 -fno-strict-aliasing -pipe -march=pentium4 -I. -Wall -g  -c hdrlen.c -o hdrlen.po
building profiled xcast library
ranlib libxcast_p.a
cc -fpic -DPIC -O2 -fno-strict-aliasing -pipe -march=pentium4 -I. -Wall -g  -c group.c -o group.So
cc -fpic -DPIC -O2 -fno-strict-aliasing -pipe -march=pentium4 -I. -Wall -g  -c member.c -o member.So
cc -fpic -DPIC -O2 -fno-strict-aliasing -pipe -march=pentium4 -I. -Wall -g  -c send.c -o send.So
cc -fpic -DPIC -O2 -fno-strict-aliasing -pipe -march=pentium4 -I. -Wall -g  -c sockopt.c -o sockopt.So
cc -fpic -DPIC -O2 -fno-strict-aliasing -pipe -march=pentium4 -I. -Wall -g  -c hdrlen.c -o hdrlen.So
building shared library libxcast.so.0


About this entry