[hipl-users] Re: loading HIPL on OpenWRT problem

  • From: "antonio quisillo" <antonio.quisillo@xxxxxxxxx>
  • To: hipl-users@xxxxxxxxxxxxx
  • Date: Wed, 10 Dec 2008 15:18:11 +0100

2008/12/10 Dongsu Park <dpark1978@xxxxxxxxx>

> Hi Antonio,
>
> it's also the same story as before. libipq.h should have been installed on
> your staging_dir in the kamikaze tree. Does the header file
> staging_dir/i386/usr/include/libipq/libipq.h exist?


Yes, the header file exist.

>
>
> If not, try to clean up iptables package and recompile it. If that's not
> installed even after doing that, your package/iptables/Makefile has some
> problem.
>
> If it exists, then try to check package/hipl/Makefile. It should include
> appropriate path flags in CONFIGURE_VARS like below:
>
> CONFIGURE_VARS += \
>    LIBS="-lxml2 -lcrypto -lm -lz" \
>    CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/libxml2
> -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
> -I$(TOOLCHAIN_DIR)/include" \
>    LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
> -L$(TOOLCHAIN_DIR)/lib" \
>    OPENWRT="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
> -L$(TOOLCHAIN_DIR)/lib" \
>    OPENWRT_LIB_STATIC="$(TOOLCHAIN_DIR)/lib/libc.a"
>

The path flags is the same.

What's wrong?

Thanks for your patience.




>
> Cheers,
> Dongsu
>
>
> antonio quisillo wrote:
>
>> Hi,
>>
>> I solved the problem caused by the lack of library libipq but now I have a
>> problem with the firewall. Error messages I get are as follows :
>>
>> In file included from firewall.c:8:
>> firewall.h:7:20: error: libipq.h: No such file or directory
>> In file included from firewall.h:38,
>>                 from firewall.c:8:
>> lsi.h:11: error: expected ')' before '*' token
>> lsi.h:14: error: expected ')' before '*' token
>> lsi.h:18: error: expected declaration specifiers or '...' before
>> 'ipq_packet_msg_t'
>> In file included from firewall.c:8:
>> firewall.h:72: error: expected specifier-qualifier-list before
>> 'ipq_packet_msg_t'
>> firewall.h:143: warning: 'struct ipq_handle' declared inside parameter
>> list
>> firewall.h:143: warning: its scope is only this definition or declaration,
>> which is probably not what you want
>> firewall.h:147: warning: 'struct ipq_handle' declared inside parameter
>> list
>> firewall.h:148: warning: 'struct ipq_handle' declared inside parameter
>> list
>> firewall.h:175: warning: 'struct ipq_handle' declared inside parameter
>> list
>> firewall.c:646: warning: 'struct ipq_handle' declared inside parameter
>> list
>> firewall.c:646: error: conflicting types for 'die'
>> firewall.h:143: error: previous declaration of 'die' was here
>> firewall.c: In function 'hip_fw_init_context':
>> firewall.c:678: error: 'hip_fw_context_t' has no member named
>> 'packet_type'
>> firewall.c:684: error: 'hip_fw_context_t' has no member named 'ipq_packet'
>> firewall.c:687: error: 'hip_fw_context_t' has no member named 'ipq_packet'
>> firewall.c:695: error: 'hip_fw_context_t' has no member named 'ip_version'
>> firewall.c:697: error: 'hip_fw_context_t' has no member named 'ip_version'
>> firewall.c:700: error: 'hip_fw_context_t' has no member named 'ipq_packet'
>> firewall.c:702: error: 'hip_fw_context_t' has no member named 'ip_hdr'
>> firewall.c:709: error: 'hip_fw_context_t' has no member named 'ip_hdr_len'
>> firewall.c:713: error: 'hip_fw_context_t' has no member named 'ipq_packet'
>> firewall.c:716: error: 'hip_fw_context_t' has no member named 'src'
>> firewall.c:716: error: 'hip_fw_context_t' has no member named 'src'
>> firewall.c:716: error: 'hip_fw_context_t' has no member named 'src'
>> firewall.c:716: error: 'hip_fw_context_t' has no member named 'src'
>> firewall.c:716: error: 'hip_fw_context_t' has no member named 'ip_hdr'
>> firewall.c:717: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:717: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:717: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:717: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:717: error: 'hip_fw_context_t' has no member named 'ip_hdr'
>> firewall.c:719: error: 'hip_fw_context_t' has no member named 'src'
>> firewall.c:720: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:730: error: 'hip_fw_context_t' has no member named
>> 'packet_type'
>> firewall.c:731: error: 'hip_fw_context_t' has no member named
>> 'transport_hdr'
>> firewall.c:740: error: 'hip_fw_context_t' has no member named
>> 'packet_type'
>> firewall.c:741: error: 'hip_fw_context_t' has no member named
>> 'transport_hdr'
>> firewall.c:750: error: 'hip_fw_context_t' has no member named
>> 'packet_type'
>> firewall.c:751: error: 'hip_fw_context_t' has no member named
>> 'transport_hdr'
>> firewall.c:767: error: 'hip_fw_context_t' has no member named
>> 'udp_encap_hdr'
>> firewall.c:769: error: 'hip_fw_context_t' has no member named 'ip_version'
>> firewall.c:773: error: 'hip_fw_context_t' has no member named 'ipq_packet'
>> firewall.c:775: error: 'hip_fw_context_t' has no member named 'ip_hdr'
>> firewall.c:780: error: 'hip_fw_context_t' has no member named 'ip_hdr_len'
>> firewall.c:784: error: 'hip_fw_context_t' has no member named 'ipq_packet'
>> firewall.c:787: error: 'hip_fw_context_t' has no member named 'src'
>> firewall.c:788: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:790: error: 'hip_fw_context_t' has no member named 'src'
>> firewall.c:791: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:802: error: 'hip_fw_context_t' has no member named
>> 'packet_type'
>> firewall.c:803: error: 'hip_fw_context_t' has no member named
>> 'transport_hdr'
>> firewall.c:812: error: 'hip_fw_context_t' has no member named
>> 'packet_type'
>> firewall.c:813: error: 'hip_fw_context_t' has no member named
>> 'transport_hdr'
>> firewall.c:822: error: 'hip_fw_context_t' has no member named
>> 'packet_type'
>> firewall.c:823: error: 'hip_fw_context_t' has no member named
>> 'transport_hdr'
>> firewall.c:847: error: 'hip_fw_context_t' has no member named
>> 'udp_encap_hdr'
>> firewall.c:854: error: 'hip_fw_context_t' has no member named 'ip_version'
>> firewall.c:889: error: 'hip_fw_context_t' has no member named 'ip_version'
>> firewall.c:907: error: 'hip_fw_context_t' has no member named
>> 'packet_type'
>> firewall.c:908: error: 'hip_fw_context_t' has no member named
>> 'transport_hdr'
>> firewall.c:921: warning: passing argument 1 of 'pj_stun_msg_check' from
>> incompatible pointer type
>> firewall.c:924: error: 'hip_fw_context_t' has no member named 'is_stun'
>> firewall.c:929: error: 'hip_fw_context_t' has no member named 'ip_version'
>> firewall.c:944: error: 'hip_fw_context_t' has no member named
>> 'packet_type'
>> firewall.c:945: error: 'hip_fw_context_t' has no member named
>> 'transport_hdr'
>> firewall.c: At top level:
>> firewall.c:968: warning: 'struct ipq_handle' declared inside parameter
>> list
>> firewall.c:968: error: conflicting types for 'allow_packet'
>> firewall.h:147: error: previous declaration of 'allow_packet' was here
>> firewall.c:982: warning: 'struct ipq_handle' declared inside parameter
>> list
>> firewall.c:982: error: conflicting types for 'drop_packet'
>> firewall.h:148: error: previous declaration of 'drop_packet' was here
>> firewall.c: In function 'hip_fw_handle_other_output':
>> firewall.c:1269: error: 'hip_fw_context_t' has no member named 'ip_hdr'
>> firewall.c:1270: error: 'hip_fw_context_t' has no member named
>> 'ip_hdr_len'
>> firewall.c:1271: error: 'hip_fw_context_t' has no member named
>> 'ip_hdr_len'
>> firewall.c:1274: error: 'hip_fw_context_t' has no member named
>> 'ip_version'
>> firewall.c:1276: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:1280: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:1280: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:1280: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:1280: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:1285: error: 'hip_fw_context_t' has no member named
>> 'ip_version'
>> firewall.c:1288: error: 'hip_fw_context_t' has no member named 'src'
>> firewall.c:1289: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:1296: error: 'hip_fw_context_t' has no member named
>> 'ipq_packet'
>> firewall.c:1300: error: 'hip_fw_context_t' has no member named 'ip_hdr'
>> firewall.c: In function 'hip_fw_handle_hip_output':
>> firewall.c:1323: error: 'hip_fw_context_t' has no member named 'src'
>> firewall.c:1324: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:1325: error: 'hip_fw_context_t' has no member named
>> 'transport_hdr'
>> firewall.c:1326: error: 'hip_fw_context_t' has no member named
>> 'ipq_packet'
>> firewall.c:1327: error: 'hip_fw_context_t' has no member named
>> 'ipq_packet'
>> firewall.c:1328: error: 'hip_fw_context_t' has no member named
>> 'ipq_packet'
>> firewall.c: In function 'hip_fw_handle_esp_output':
>> firewall.c:1347: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:1348: error: 'hip_fw_context_t' has no member named
>> 'transport_hdr'
>> firewall.c:1349: error: 'hip_fw_context_t' has no member named
>> 'ipq_packet'
>> firewall.c: In function 'hip_fw_handle_other_input':
>> firewall.c:1369: error: 'hip_fw_context_t' has no member named 'src'
>> firewall.c:1370: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:1376: error: 'hip_fw_context_t' has no member named
>> 'ipq_packet'
>> firewall.c:1377: error: 'hip_fw_context_t' has no member named 'src'
>> firewall.c:1379: error: 'hip_fw_context_t' has no member named
>> 'ipq_packet'
>> firewall.c:1380: error: 'hip_fw_context_t' has no member named 'src'
>> firewall.c:1381: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:1385: error: 'hip_fw_context_t' has no member named 'is_stun'
>> firewall.c: In function 'hip_fw_handle_esp_input':
>> firewall.c:1422: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:1423: error: 'hip_fw_context_t' has no member named
>> 'transport_hdr'
>> firewall.c:1424: error: 'hip_fw_context_t' has no member named
>> 'ipq_packet'
>> firewall.c: In function 'hip_fw_handle_tcp_input':
>> firewall.c:1447: error: 'hip_fw_context_t' has no member named 'src'
>> firewall.c:1448: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:1450: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:1451: error: 'hip_fw_context_t' has no member named 'ip_hdr'
>> firewall.c:1452: error: 'hip_fw_context_t' has no member named
>> 'ip_version'
>> firewall.c:1453: error: 'hip_fw_context_t' has no member named
>> 'ip_hdr_len'
>> firewall.c: In function 'hip_fw_handle_other_forward':
>> firewall.c:1472: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:1474: error: 'hip_fw_context_t' has no member named
>> 'ipq_packet'
>> firewall.c:1475: error: 'hip_fw_context_t' has no member named 'src'
>> firewall.c:1476: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:1477: error: 'hip_fw_context_t' has no member named
>> 'ip_hdr_len'
>> firewall.c:1478: error: 'hip_fw_context_t' has no member named
>> 'ip_version'
>> firewall.c: In function 'hip_fw_handle_esp_forward':
>> firewall.c:1504: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:1504: error: 'hip_fw_context_t' has no member named
>> 'transport_hdr'
>> firewall.c:1504: error: 'hip_fw_context_t' has no member named
>> 'ipq_packet'
>> firewall.c: At top level:
>> firewall.c:1533: warning: 'struct ipq_handle' declared inside parameter
>> list
>> firewall.c:1533: error: conflicting types for 'hip_fw_handle_packet'
>> firewall.h:175: error: previous declaration of 'hip_fw_handle_packet' was
>> here
>> firewall.c: In function 'hip_fw_handle_packet':
>> firewall.c:1555: error: 'IPQM_PACKET' undeclared (first use in this
>> function)
>> firewall.c:1555: error: (Each undeclared identifier is reported only once
>> firewall.c:1555: error: for each function it appears in.)
>> firewall.c:1573: error: 'hip_fw_context_t' has no member named
>> 'ipq_packet'
>> firewall.c:1573: error: 'hip_fw_context_t' has no member named
>> 'packet_type'
>> firewall.c:1576: error: 'hip_fw_context_t' has no member named
>> 'ipq_packet'
>> firewall.c:1576: error: 'hip_fw_context_t' has no member named
>> 'packet_type'
>> firewall.c:1577: error: 'hip_fw_context_t' has no member named
>> 'ipq_packet'
>> firewall.c:1577: error: 'hip_fw_context_t' has no member named
>> 'packet_type'
>> firewall.c:1585: error: 'hip_fw_context_t' has no member named
>> 'ipq_packet'
>> firewall.c:1585: warning: passing argument 1 of 'allow_packet' from
>> incompatible pointer type
>> firewall.c:1588: error: 'hip_fw_context_t' has no member named
>> 'ipq_packet'
>> firewall.c:1588: warning: passing argument 1 of 'drop_packet' from
>> incompatible pointer type
>> firewall.c: In function 'main':
>> firewall.c:1788: warning: assignment makes pointer from integer without a
>> cast
>> firewall.c:1791: warning: passing argument 1 of 'die' from incompatible
>> pointer type
>> firewall.c:1795: error: 'IPQ_COPY_PACKET' undeclared (first use in this
>> function)
>> firewall.c:1798: warning: passing argument 1 of 'die' from incompatible
>> pointer type
>> firewall.c:1802: warning: assignment makes pointer from integer without a
>> cast
>> firewall.c:1807: warning: passing argument 1 of 'die' from incompatible
>> pointer type
>> firewall.c:1812: warning: passing argument 1 of 'die' from incompatible
>> pointer type
>> firewall.c:1847: error: dereferencing pointer to incomplete type
>> firewall.c:1847: error: dereferencing pointer to incomplete type
>> firewall.c:1860: error: dereferencing pointer to incomplete type
>> firewall.c:1860: error: dereferencing pointer to incomplete type
>> firewall.c:1861: error: dereferencing pointer to incomplete type
>> firewall.c:1861: error: dereferencing pointer to incomplete type
>> firewall.c:1875: error: dereferencing pointer to incomplete type
>> firewall.c:1875: error: dereferencing pointer to incomplete type
>> firewall.c:1877: warning: passing argument 2 of 'hip_fw_handle_packet'
>> from
>> incompatible pointer type
>> firewall.c:1880: error: dereferencing pointer to incomplete type
>> firewall.c:1880: error: dereferencing pointer to incomplete type
>> firewall.c:1882: warning: passing argument 2 of 'hip_fw_handle_packet'
>> from
>> incompatible pointer type
>> firewall.c:1860: error: invalid lvalue in asm output 0
>> firewall.c:1861: error: invalid lvalue in asm output 0
>> firewall.c:1875: error: memory input 2 is not directly addressable
>> firewall.c:1880: error: memory input 2 is not directly addressable
>> firewall.c: In function 'hip_fw_handle_outgoing_system_based_opp':
>> firewall.c:2113: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:2113: warning: assignment makes pointer from integer without a
>> cast
>> firewall.c:2119: error: 'hip_fw_context_t' has no member named 'src'
>> firewall.c:2120: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:2139: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:2142: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:2142: warning: assignment makes pointer from integer without a
>> cast
>> firewall.c:2154: error: 'hip_fw_context_t' has no member named
>> 'ipq_packet'
>> firewall.c:2154: error: too many arguments to function 'reinject_packet'
>> firewall.c:2162: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:2165: error: 'hip_fw_context_t' has no member named 'src'
>> firewall.c:2165: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:2172: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:2175: error: 'hip_fw_context_t' has no member named
>> 'transport_hdr'
>> firewall.c:2176: error: 'hip_fw_context_t' has no member named
>> 'transport_hdr'
>> firewall.c:2184: error: 'hip_fw_context_t' has no member named 'dst'
>> firewall.c:2187: error: 'hip_fw_context_t' has no member named
>> 'ipq_packet'
>> firewall.c:2187: error: too many arguments to function 'reinject_packet'
>> make[5]: *** [firewall.o] Error 1
>> make[5]: Leaving directory
>>
>> `/home/quisillo/Scrivania/OpenWRT/trunk/build_dir/i386/hipl--openwrt--2.6/firewall'
>> make[4]: *** [all-recursive] Error 1
>> make[4]: Leaving directory
>> `/home/quisillo/Scrivania/OpenWRT/trunk/build_dir/i386/hipl--openwrt--2.6'
>> make[3]: ***
>>
>> [/home/quisillo/Scrivania/OpenWRT/trunk/build_dir/i386/hipl--openwrt--2.6/.built]
>> Error 2
>> make[3]: Leaving directory
>> `/home/quisillo/Scrivania/OpenWRT/trunk/package/hipl'
>> make[2]: *** [package/hipl/compile] Error 2
>> make[2]: Leaving directory `/home/quisillo/Scrivania/OpenWRT/trunk'
>> make[1]: ***
>>
>> [/home/quisillo/Scrivania/OpenWRT/trunk/staging_dir/i386/stamp/.package_compile]
>> Error 2
>> make[1]: Leaving directory `/home/quisillo/Scrivania/OpenWRT/trunk'
>> make: *** [world] Error 2
>>
>> How can I solve them?
>> thank you very much
>>
>>
>
>

Other related posts: