crda

Tomislav Parčina tomislav.parcina at gmail.com
Tue Nov 3 03:21:35 EST 2009


2009/11/2 Maxence Dalmais <maxence.dalmais at insa-lyon.fr>:
> Hi Ana,
>
> The error message is about gcrypt.
> You could deduce that you need a library call gcrypt.
> If you are still on Ubuntu 9.04  :  `apt-cache search gcrypt` give you the
> exact name :libgcrypt-dev
> you can now install the lib with `apt-get install libgrypt-dev`
>
> Hope I help you.

Hi Maxence!

I'm experiencing the same problem on Ubuntu 9.04 server. I have
installed the libgcrypt-dev and when I execute sudo make I get error
*1.

Then I have installed the libnfnetlink-dev and now when I execute sudo
make I get almost (except forst few lines) the same error *2.

Can you please help me to resolve this one?

Best regards!



ERROR *!
/usr/src/crda-1.0.1$ sudo make
/bin/sh: pkg-config: not found
/bin/sh: pkg-config: not found
  CC   crda.o
/bin/sh: pkg-config: not found
crda.c:14:31: error: netlink/genl/genl.h: No such file or directory
crda.c:15:33: error: netlink/genl/family.h: No such file or directory
crda.c:16:31: error: netlink/genl/ctrl.h: No such file or directory
crda.c:17:25: error: netlink/msg.h: No such file or directory
crda.c:18:26: error: netlink/attr.h: No such file or directory
crda.c: In function ‘nl_socket_alloc’:
crda.c:28: warning: implicit declaration of function ‘nl_handle_alloc’
crda.c:28: warning: return makes pointer from integer without a cast
crda.c: In function ‘nl_socket_free’:
crda.c:33: warning: implicit declaration of function ‘nl_handle_destroy’
crda.c: At top level:
crda.c:36: warning: ‘struct nl_cache’ declared inside parameter list
crda.c:36: warning: its scope is only this definition or declaration,
which is probably not what you want
crda.c: In function ‘__genl_ctrl_alloc_cache’:
crda.c:38: warning: implicit declaration of function ‘genl_ctrl_alloc_cache’
crda.c:38: warning: initialization makes pointer from integer without a cast
crda.c: In function ‘nl80211_init’:
crda.c:64: warning: implicit declaration of function ‘genl_connect’
crda.c:70: warning: passing argument 2 of ‘__genl_ctrl_alloc_cache’
from incompatible pointer type
crda.c:76: warning: implicit declaration of function ‘genl_ctrl_search_by_name’
crda.c:76: warning: assignment makes pointer from integer without a cast
crda.c:86: warning: implicit declaration of function ‘nl_cache_free’
crda.c: In function ‘nl80211_cleanup’:
crda.c:94: warning: implicit declaration of function ‘genl_family_put’
crda.c: At top level:
crda.c:100: warning: ‘struct nl_msg’ declared inside parameter list
crda.c: In function ‘reg_handler’:
crda.c:102: error: ‘NL_SKIP’ undeclared (first use in this function)
crda.c:102: error: (Each undeclared identifier is reported only once
crda.c:102: error: for each function it appears in.)
crda.c:103: warning: control reaches end of non-void function
crda.c: At top level:
crda.c:105: warning: ‘struct nl_msg’ declared inside parameter list
crda.c: In function ‘wait_handler’:
crda.c:109: error: ‘NL_STOP’ undeclared (first use in this function)
crda.c:110: warning: control reaches end of non-void function
crda.c: At top level:
crda.c:114: warning: ‘struct nlmsgerr’ declared inside parameter list
crda.c:114: warning: ‘struct sockaddr_nl’ declared inside parameter list
crda.c: In function ‘error_handler’:
crda.c:116: error: dereferencing pointer to incomplete type
crda.c:117: error: dereferencing pointer to incomplete type
crda.c:118: warning: control reaches end of non-void function
crda.c: At top level:
crda.c:120: warning: ‘struct nl_msg’ declared inside parameter list
crda.c: In function ‘put_reg_rule’:
crda.c:130: warning: implicit declaration of function ‘NLA_PUT_U32’
crda.c:139: warning: label ‘nla_put_failure’ defined but not used
crda.c: In function ‘main’:
crda.c:183: warning: implicit declaration of function ‘memcpy’
crda.c:183: warning: incompatible implicit declaration of built-in
function ‘memcpy’
crda.c:237: warning: implicit declaration of function ‘memcmp’
crda.c:252: warning: implicit declaration of function ‘nlmsg_alloc’
crda.c:252: warning: assignment makes pointer from integer without a cast
crda.c:259: warning: implicit declaration of function ‘genlmsg_put’
crda.c:259: warning: implicit declaration of function ‘genl_family_get_id’
crda.c:270: warning: implicit declaration of function ‘NLA_PUT_STRING’
crda.c:272: warning: implicit declaration of function ‘nla_nest_start’
crda.c:272: warning: assignment makes pointer from integer without a cast
crda.c:280: warning: assignment makes pointer from integer without a cast
crda.c:284: warning: passing argument 4 of ‘put_reg_rule’ from
incompatible pointer type
crda.c:288: warning: implicit declaration of function ‘nla_nest_end’
crda.c:293: warning: implicit declaration of function ‘nl_cb_alloc’
crda.c:293: error: ‘NL_CB_CUSTOM’ undeclared (first use in this function)
crda.c:293: warning: assignment makes pointer from integer without a cast
crda.c:297: warning: implicit declaration of function ‘nl_send_auto_complete’
crda.c:304: warning: implicit declaration of function ‘nl_cb_set’
crda.c:304: error: ‘NL_CB_VALID’ undeclared (first use in this function)
crda.c:305: error: ‘NL_CB_ACK’ undeclared (first use in this function)
crda.c:306: warning: implicit declaration of function ‘nl_cb_err’
crda.c:309: warning: implicit declaration of function ‘nl_wait_for_ack’
crda.c:318: warning: implicit declaration of function ‘nl_cb_put’
crda.c:320: warning: implicit declaration of function ‘nlmsg_free’
make: *** [crda.o] Error 1


ERROR *2
/usr/src/crda-1.0.1$ sudo make
  CC   crda.o
Must specify package names on the command line
crda.c:14:31: error: netlink/genl/genl.h: No such file or directory
crda.c:15:33: error: netlink/genl/family.h: No such file or directory
crda.c:16:31: error: netlink/genl/ctrl.h: No such file or directory
crda.c:17:25: error: netlink/msg.h: No such file or directory
crda.c:18:26: error: netlink/attr.h: No such file or directory
crda.c: In function ‘nl_socket_alloc’:
crda.c:28: warning: implicit declaration of function ‘nl_handle_alloc’
crda.c:28: warning: return makes pointer from integer without a cast
crda.c: In function ‘nl_socket_free’:
crda.c:33: warning: implicit declaration of function ‘nl_handle_destroy’
crda.c: At top level:
crda.c:36: warning: ‘struct nl_cache’ declared inside parameter list
crda.c:36: warning: its scope is only this definition or declaration,
which is probably not what you want
crda.c: In function ‘__genl_ctrl_alloc_cache’:
crda.c:38: warning: implicit declaration of function ‘genl_ctrl_alloc_cache’
crda.c:38: warning: initialization makes pointer from integer without a cast
crda.c: In function ‘nl80211_init’:
crda.c:64: warning: implicit declaration of function ‘genl_connect’
crda.c:70: warning: passing argument 2 of ‘__genl_ctrl_alloc_cache’
from incompatible pointer type
crda.c:76: warning: implicit declaration of function ‘genl_ctrl_search_by_name’
crda.c:76: warning: assignment makes pointer from integer without a cast
crda.c:86: warning: implicit declaration of function ‘nl_cache_free’
crda.c: In function ‘nl80211_cleanup’:
crda.c:94: warning: implicit declaration of function ‘genl_family_put’
crda.c: At top level:
crda.c:100: warning: ‘struct nl_msg’ declared inside parameter list
crda.c: In function ‘reg_handler’:
crda.c:102: error: ‘NL_SKIP’ undeclared (first use in this function)
crda.c:102: error: (Each undeclared identifier is reported only once
crda.c:102: error: for each function it appears in.)
crda.c:103: warning: control reaches end of non-void function
crda.c: At top level:
crda.c:105: warning: ‘struct nl_msg’ declared inside parameter list
crda.c: In function ‘wait_handler’:
crda.c:109: error: ‘NL_STOP’ undeclared (first use in this function)
crda.c:110: warning: control reaches end of non-void function
crda.c: At top level:
crda.c:114: warning: ‘struct nlmsgerr’ declared inside parameter list
crda.c:114: warning: ‘struct sockaddr_nl’ declared inside parameter list
crda.c: In function ‘error_handler’:
crda.c:116: error: dereferencing pointer to incomplete type
crda.c:117: error: dereferencing pointer to incomplete type
crda.c:118: warning: control reaches end of non-void function
crda.c: At top level:
crda.c:120: warning: ‘struct nl_msg’ declared inside parameter list
crda.c: In function ‘put_reg_rule’:
crda.c:130: warning: implicit declaration of function ‘NLA_PUT_U32’
crda.c:139: warning: label ‘nla_put_failure’ defined but not used
crda.c: In function ‘main’:
crda.c:183: warning: implicit declaration of function ‘memcpy’
crda.c:183: warning: incompatible implicit declaration of built-in
function ‘memcpy’
crda.c:237: warning: implicit declaration of function ‘memcmp’
crda.c:252: warning: implicit declaration of function ‘nlmsg_alloc’
crda.c:252: warning: assignment makes pointer from integer without a cast
crda.c:259: warning: implicit declaration of function ‘genlmsg_put’
crda.c:259: warning: implicit declaration of function ‘genl_family_get_id’
crda.c:270: warning: implicit declaration of function ‘NLA_PUT_STRING’
crda.c:272: warning: implicit declaration of function ‘nla_nest_start’
crda.c:272: warning: assignment makes pointer from integer without a cast
crda.c:280: warning: assignment makes pointer from integer without a cast
crda.c:284: warning: passing argument 4 of ‘put_reg_rule’ from
incompatible pointer type
crda.c:288: warning: implicit declaration of function ‘nla_nest_end’
crda.c:293: warning: implicit declaration of function ‘nl_cb_alloc’
crda.c:293: error: ‘NL_CB_CUSTOM’ undeclared (first use in this function)
crda.c:293: warning: assignment makes pointer from integer without a cast
crda.c:297: warning: implicit declaration of function ‘nl_send_auto_complete’
crda.c:304: warning: implicit declaration of function ‘nl_cb_set’
crda.c:304: error: ‘NL_CB_VALID’ undeclared (first use in this function)
crda.c:305: error: ‘NL_CB_ACK’ undeclared (first use in this function)
crda.c:306: warning: implicit declaration of function ‘nl_cb_err’
crda.c:309: warning: implicit declaration of function ‘nl_wait_for_ack’
crda.c:318: warning: implicit declaration of function ‘nl_cb_put’
crda.c:320: warning: implicit declaration of function ‘nlmsg_free’
make: *** [crda.o] Error 1


--
Tomislav Parčina


More information about the HostAP mailing list