LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (http://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   hostapd refuses to compile (http://www.linuxquestions.org/questions/linux-wireless-networking-41/hostapd-refuses-to-compile-747590/)

gregnorc 08-14-2009 01:23 PM

hostapd refuses to compile
 
so I'm trying to compile hostapd on Fedora. When I run make it spits out a ton of errors.

Here's my kernel version:
Linux localhost.localdomain 2.6.27.5-117.fc10.i686 #1 SMP Tue Nov 18
12:19:59 EST 2008 i686 i686 i386 GNU/Linux

And here's the output when I try and run make (this is only the tail end of it believe it or not, there's so many errors it fills the bash history, I can't even get back to the start of the errors if I scroll all the way up):
Code:

../src/drivers/driver_nl80211.c: In function ‘i802_read_sta_data’:
../src/drivers/driver_nl80211.c:3653: warning: assignment makes
pointer from integer without a cast
../src/drivers/driver_nl80211.c:3663: warning: passing argument 2 of
‘send_and_recv_msgs’ from incompatible pointer type
../src/drivers/driver_nl80211.c:3663: warning: passing argument 3 of
‘send_and_recv_msgs’ from incompatible pointer type
../src/drivers/driver_nl80211.c:3664: warning: label ‘nla_put_failure’
defined but not used
../src/drivers/driver_nl80211.c: In function ‘i802_set_tx_queue_params’:
../src/drivers/driver_nl80211.c:3676: warning: assignment makes
pointer from integer without a cast
../src/drivers/driver_nl80211.c:3685: warning: implicit declaration of
function ‘nla_nest_start’
../src/drivers/driver_nl80211.c:3685: warning: assignment makes
pointer from integer without a cast
../src/drivers/driver_nl80211.c:3690: warning: assignment makes
pointer from integer without a cast
../src/drivers/driver_nl80211.c:3702: warning: implicit declaration of
function ‘nla_nest_end’
../src/drivers/driver_nl80211.c:3706: warning: passing argument 2 of
‘send_and_recv_msgs’ from incompatible pointer type
../src/drivers/driver_nl80211.c: In function ‘i802_set_bss’:
../src/drivers/driver_nl80211.c:3777: warning: assignment makes
pointer from integer without a cast
../src/drivers/driver_nl80211.c:3794: warning: passing argument 2 of
‘send_and_recv_msgs’ from incompatible pointer type
../src/drivers/driver_nl80211.c:3795: warning: label ‘nla_put_failure’
defined but not used
../src/drivers/driver_nl80211.c: In function ‘i802_set_sta_vlan’:
../src/drivers/driver_nl80211.c:3860: warning: assignment makes
pointer from integer without a cast
../src/drivers/driver_nl80211.c:3873: warning: passing argument 2 of
‘send_and_recv_msgs’ from incompatible pointer type
../src/drivers/driver_nl80211.c:3874: warning: label ‘nla_put_failure’
defined but not used
make: *** [../src/drivers/driver_nl80211.o] Error 1


MS3FGX 08-14-2009 02:38 PM

None of that appears to have logged any information of use. You need to get the log right before it starts dumping out those messages. That is the part that will tell you what the problem is.

gregnorc 08-14-2009 03:11 PM

How can I do that?

I tried "sudo make > ~/error_log.txt" but when I go into the file it's blank.

MS3FGX 08-16-2009 04:20 PM

Try:

Code:

sudo make &> ~/error_log.txt

gregnorc 08-18-2009 12:26 PM

Here's the error I get when I run make:

Quote:

cc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I../src -I../src/crypto -I../src/utils -I../src/common -I/usr/src/libnl/include -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -DCONFIG_IAPP -DCONFIG_RSN_PREAUTH -DCONFIG_PEERKEY -DCONFIG_DRIVER_HOSTAP -DCONFIG_DRIVER_NL80211 -DEAP_MD5 -DEAP_TLS -DEAP_PEAP -DEAP_TTLS -DEAP_MSCHAPv2 -DEAP_GTC -DEAP_SERVER -DEAP_TLS_FUNCS -DPKCS12_FUNCS -DINTERNAL_SHA256 -DCONFIG_NO_FIPS186_2_PRF -DCONFIG_NO_T_PRF -DCONFIG_IPV6 -c -o driver_nl80211.o driver_nl80211.c
driver_nl80211.c:21:31: warning: netlink/genl/genl.h: No such file or directory
driver_nl80211.c:22:33: warning: netlink/genl/family.h: No such file or directory
driver_nl80211.c:23:31: warning: netlink/genl/ctrl.h: No such file or directory
driver_nl80211.c:24:25: warning: netlink/msg.h: No such file or directory
driver_nl80211.c:25:26: warning: netlink/attr.h: No such file or directory
driver_nl80211.c:148: warning: ‘struct nl_msg’ declared inside parameter list
driver_nl80211.c:148: warning: its scope is only this definition or declaration, which is probably not what you want
driver_nl80211.c: In function ‘ack_handler’:
driver_nl80211.c:152: error: ‘NL_STOP’ undeclared (first use in this function)
driver_nl80211.c:152: error: (Each undeclared identifier is reported only once
driver_nl80211.c:152: error: for each function it appears in.)
driver_nl80211.c: At top level:
driver_nl80211.c:155: warning: ‘struct nl_msg’ declared inside parameter list
driver_nl80211.c: In function ‘finish_handler’:
driver_nl80211.c:159: error: ‘NL_SKIP’ undeclared (first use in this function)
driver_nl80211.c: At top level:
driver_nl80211.c:163: warning: ‘struct nlmsgerr’ declared inside parameter list
driver_nl80211.c:163: warning: ‘struct sockaddr_nl’ declared inside parameter list
driver_nl80211.c: In function ‘error_handler’:
driver_nl80211.c:166: error: dereferencing pointer to incomplete type
driver_nl80211.c:167: error: ‘NL_SKIP’ undeclared (first use in this function)
driver_nl80211.c: At top level:
driver_nl80211.c:173: warning: ‘struct nl_msg’ declared inside parameter list
driver_nl80211.c: In function ‘send_and_recv_msgs’:
driver_nl80211.c:178: warning: implicit declaration of function ‘nl_cb_clone’
driver_nl80211.c:178: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:182: warning: implicit declaration of function ‘nl_send_auto_complete’
driver_nl80211.c:188: warning: implicit declaration of function ‘nl_cb_err’
driver_nl80211.c:188: error: ‘NL_CB_CUSTOM’ undeclared (first use in this function)
driver_nl80211.c:189: warning: implicit declaration of function ‘nl_cb_set’
driver_nl80211.c:189: error: ‘NL_CB_FINISH’ undeclared (first use in this function)
driver_nl80211.c:190: error: ‘NL_CB_ACK’ undeclared (first use in this function)
driver_nl80211.c:193: error: ‘NL_CB_VALID’ undeclared (first use in this function)
driver_nl80211.c:197: warning: implicit declaration of function ‘nl_recvmsgs’
driver_nl80211.c:199: warning: implicit declaration of function ‘nl_cb_put’
driver_nl80211.c:200: warning: implicit declaration of function ‘nlmsg_free’
driver_nl80211.c: In function ‘nl_set_encr’:
driver_nl80211.c:243: warning: implicit declaration of function ‘nlmsg_alloc’
driver_nl80211.c:243: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:248: warning: implicit declaration of function ‘genlmsg_put’
driver_nl80211.c:248: warning: implicit declaration of function ‘genl_family_get_id’
driver_nl80211.c:253: warning: implicit declaration of function ‘NLA_PUT’
driver_nl80211.c:256: warning: implicit declaration of function ‘NLA_PUT_U32’
driver_nl80211.c:277: warning: implicit declaration of function ‘NLA_PUT_U8’
driver_nl80211.c:280: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c:291: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:300: warning: implicit declaration of function ‘NLA_PUT_FLAG’
driver_nl80211.c:304: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c:308: warning: label ‘nla_put_failure’ defined but not used
driver_nl80211.c: At top level:
driver_nl80211.c:337: warning: ‘struct nl_msg’ declared inside parameter list
driver_nl80211.c: In function ‘get_key_handler’:
driver_nl80211.c:340: warning: implicit declaration of function ‘nlmsg_data’
driver_nl80211.c:340: warning: implicit declaration of function ‘nlmsg_hdr’
driver_nl80211.c:340: warning: initialization makes pointer from integer without a cast
driver_nl80211.c:342: warning: implicit declaration of function ‘nla_parse’
driver_nl80211.c:342: warning: implicit declaration of function ‘genlmsg_attrdata’
driver_nl80211.c:343: warning: implicit declaration of function ‘genlmsg_attrlen’
driver_nl80211.c:352: warning: implicit declaration of function ‘nla_data’
driver_nl80211.c:353: warning: implicit declaration of function ‘nla_len’
driver_nl80211.c:353: warning: passing argument 2 of ‘memcpy’ makes pointer from integer without a cast
/usr/include/string.h:43: note: expected ‘const void * __restrict__’ but argument is of type ‘int’
driver_nl80211.c:354: error: ‘NL_SKIP’ undeclared (first use in this function)
driver_nl80211.c: In function ‘i802_get_seqnum’:
driver_nl80211.c:364: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:378: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c:378: warning: passing argument 3 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘int (*)(struct nl_msg *, void *)’ but argument is of type ‘int (*)(struct nl_msg *, void *)’
driver_nl80211.c:379: warning: label ‘nla_put_failure’ defined but not used
driver_nl80211.c: In function ‘i802_set_rate_sets’:
driver_nl80211.c:393: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:408: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c:409: warning: label ‘nla_put_failure’ defined but not used
driver_nl80211.c: In function ‘i802_set_freq2’:
driver_nl80211.c:487: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:516: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c:518: warning: label ‘nla_put_failure’ defined but not used
driver_nl80211.c: In function ‘i802_flush’:
driver_nl80211.c:656: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:669: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c:670: warning: label ‘nla_put_failure’ defined but not used
driver_nl80211.c: At top level:
driver_nl80211.c:675: warning: ‘struct nl_msg’ declared inside parameter list
driver_nl80211.c: In function ‘get_sta_handler’:
driver_nl80211.c:678: warning: initialization makes pointer from integer without a cast
driver_nl80211.c:681: error: array type has incomplete element type
driver_nl80211.c:682: error: array index in non-array initializer
driver_nl80211.c:682: error: (near initialization for ‘stats_policy’)
driver_nl80211.c:682: error: field name not in record or union initializer
driver_nl80211.c:682: error: (near initialization for ‘stats_policy’)
driver_nl80211.c:682: error: ‘NLA_U32’ undeclared (first use in this function)
driver_nl80211.c:683: error: array index in non-array initializer
driver_nl80211.c:683: error: (near initialization for ‘stats_policy’)
driver_nl80211.c:683: error: field name not in record or union initializer
driver_nl80211.c:683: error: (near initialization for ‘stats_policy’)
driver_nl80211.c:684: error: array index in non-array initializer
driver_nl80211.c:684: error: (near initialization for ‘stats_policy’)
driver_nl80211.c:684: error: field name not in record or union initializer
driver_nl80211.c:684: error: (near initialization for ‘stats_policy’)
driver_nl80211.c:685: error: array index in non-array initializer
driver_nl80211.c:685: error: (near initialization for ‘stats_policy’)
driver_nl80211.c:685: error: field name not in record or union initializer
driver_nl80211.c:685: error: (near initialization for ‘stats_policy’)
driver_nl80211.c:686: error: array index in non-array initializer
driver_nl80211.c:686: error: (near initialization for ‘stats_policy’)
driver_nl80211.c:686: error: field name not in record or union initializer
driver_nl80211.c:686: error: (near initialization for ‘stats_policy’)
driver_nl80211.c:700: error: ‘NL_SKIP’ undeclared (first use in this function)
driver_nl80211.c:702: warning: implicit declaration of function ‘nla_parse_nested’
driver_nl80211.c:711: warning: implicit declaration of function ‘nla_get_u32’
driver_nl80211.c:681: warning: unused variable ‘stats_policy’
driver_nl80211.c: In function ‘i802_read_sta_data’:
driver_nl80211.c:733: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:743: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c:743: warning: passing argument 3 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘int (*)(struct nl_msg *, void *)’ but argument is of type ‘int (*)(struct nl_msg *, void *)’
driver_nl80211.c:744: warning: label ‘nla_put_failure’ defined but not used
driver_nl80211.c: In function ‘i802_sta_add2’:
driver_nl80211.c:824: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:834: warning: implicit declaration of function ‘NLA_PUT_U16’
driver_nl80211.c:848: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c:854: warning: label ‘nla_put_failure’ defined but not used
driver_nl80211.c: In function ‘i802_sta_remove’:
driver_nl80211.c:865: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:876: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c:880: warning: label ‘nla_put_failure’ defined but not used
driver_nl80211.c: In function ‘i802_sta_set_flags’:
driver_nl80211.c:891: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:895: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:920: warning: implicit declaration of function ‘nla_put_nested’
driver_nl80211.c:925: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c: In function ‘i802_set_tx_queue_params’:
driver_nl80211.c:945: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:954: warning: implicit declaration of function ‘nla_nest_start’
driver_nl80211.c:954: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:959: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:971: warning: implicit declaration of function ‘nla_nest_end’
driver_nl80211.c:975: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c: In function ‘nl80211_remove_iface’:
driver_nl80211.c:989: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:997: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c: In function ‘nl80211_create_iface’:
driver_nl80211.c:1015: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:1023: warning: implicit declaration of function ‘NLA_PUT_STRING’
driver_nl80211.c:1029: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:1043: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c: In function ‘i802_set_beacon’:
driver_nl80211.c:1126: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:1144: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c:1148: warning: label ‘nla_put_failure’ defined but not used
driver_nl80211.c: In function ‘i802_del_beacon’:
driver_nl80211.c:1157: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:1165: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c:1166: warning: label ‘nla_put_failure’ defined but not used
driver_nl80211.c: In function ‘i802_set_beacon_int’:
driver_nl80211.c:1217: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:1227: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c:1228: warning: label ‘nla_put_failure’ defined but not used
driver_nl80211.c: In function ‘i802_set_dtim_period’:
driver_nl80211.c:1238: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:1249: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c:1250: warning: label ‘nla_put_failure’ defined but not used
driver_nl80211.c: In function ‘i802_set_bss’:
driver_nl80211.c:1260: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:1277: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c:1278: warning: label ‘nla_put_failure’ defined but not used
driver_nl80211.c: At top level:
driver_nl80211.c:1344: warning: ‘struct nl_msg’ declared inside parameter list
driver_nl80211.c: In function ‘phy_info_handler’:
driver_nl80211.c:1347: warning: initialization makes pointer from integer without a cast
driver_nl80211.c:1353: error: array type has incomplete element type
driver_nl80211.c:1354: error: array index in non-array initializer
driver_nl80211.c:1354: error: (near initialization for ‘freq_policy’)
driver_nl80211.c:1354: error: field name not in record or union initializer
driver_nl80211.c:1354: error: (near initialization for ‘freq_policy’)
driver_nl80211.c:1354: error: ‘NLA_U32’ undeclared (first use in this function)
driver_nl80211.c:1355: error: array index in non-array initializer
driver_nl80211.c:1355: error: (near initialization for ‘freq_policy’)
driver_nl80211.c:1355: error: field name not in record or union initializer
driver_nl80211.c:1355: error: (near initialization for ‘freq_policy’)
driver_nl80211.c:1355: error: ‘NLA_FLAG’ undeclared (first use in this function)
driver_nl80211.c:1356: error: array index in non-array initializer
driver_nl80211.c:1356: error: (near initialization for ‘freq_policy’)
driver_nl80211.c:1356: error: field name not in record or union initializer
driver_nl80211.c:1356: error: (near initialization for ‘freq_policy’)
driver_nl80211.c:1357: error: array index in non-array initializer
driver_nl80211.c:1357: error: (near initialization for ‘freq_policy’)
driver_nl80211.c:1357: error: field name not in record or union initializer
driver_nl80211.c:1357: error: (near initialization for ‘freq_policy’)
driver_nl80211.c:1358: error: array index in non-array initializer
driver_nl80211.c:1358: error: (near initialization for ‘freq_policy’)
driver_nl80211.c:1358: error: field name not in record or union initializer
driver_nl80211.c:1358: error: (near initialization for ‘freq_policy’)
driver_nl80211.c:1359: error: array index in non-array initializer
driver_nl80211.c:1359: error: (near initialization for ‘freq_policy’)
driver_nl80211.c:1359: error: field name not in record or union initializer
driver_nl80211.c:1359: error: (near initialization for ‘freq_policy’)
driver_nl80211.c:1363: error: array type has incomplete element type
driver_nl80211.c:1364: error: array index in non-array initializer
driver_nl80211.c:1364: error: (near initialization for ‘rate_policy’)
driver_nl80211.c:1364: error: field name not in record or union initializer
driver_nl80211.c:1364: error: (near initialization for ‘rate_policy’)
driver_nl80211.c:1365: error: array index in non-array initializer
driver_nl80211.c:1365: error: (near initialization for ‘rate_policy’)
driver_nl80211.c:1365: error: field name not in record or union initializer
driver_nl80211.c:1365: error: (near initialization for ‘rate_policy’)
driver_nl80211.c:1379: error: ‘NL_SKIP’ undeclared (first use in this function)
driver_nl80211.c:1381: warning: implicit declaration of function ‘nla_for_each_nested’
driver_nl80211.c:1381: error: expected ‘;’ before ‘{’ token
driver_nl80211.c:1373: warning: unused variable ‘mode_is_set’
driver_nl80211.c:1373: warning: unused variable ‘idx’
driver_nl80211.c:1372: warning: unused variable ‘mode’
driver_nl80211.c:1371: warning: unused variable ‘rem_rate’
driver_nl80211.c:1371: warning: unused variable ‘rem_freq’
driver_nl80211.c:1370: warning: unused variable ‘nl_rate’
driver_nl80211.c:1369: warning: unused variable ‘nl_freq’
driver_nl80211.c:1363: warning: unused variable ‘rate_policy’
driver_nl80211.c:1362: warning: unused variable ‘tb_rate’
driver_nl80211.c:1353: warning: unused variable ‘freq_policy’
driver_nl80211.c:1352: warning: unused variable ‘tb_freq’
driver_nl80211.c:1350: warning: unused variable ‘tb_band’
driver_nl80211.c:1348: warning: unused variable ‘phy_info’
driver_nl80211.c: In function ‘i802_get_hw_feature_data’:
driver_nl80211.c:1587: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:1596: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c:1596: warning: passing argument 3 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘int (*)(struct nl_msg *, void *)’ but argument is of type ‘int (*)(struct nl_msg *, void *)’
driver_nl80211.c:1598: warning: label ‘nla_put_failure’ defined but not used
driver_nl80211.c: In function ‘i802_set_sta_vlan’:
driver_nl80211.c:1609: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:1622: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c:1623: warning: label ‘nla_put_failure’ defined but not used
driver_nl80211.c: In function ‘i802_set_country’:
driver_nl80211.c:1634: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:1646: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c:1647: warning: label ‘nla_put_failure’ defined but not used
driver_nl80211.c: In function ‘nl80211_set_master_mode’:
driver_nl80211.c:2141: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:2151: warning: passing argument 2 of ‘send_and_recv_msgs’ from incompatible pointer type
driver_nl80211.c:170: note: expected ‘struct nl_msg *’ but argument is of type ‘struct nl_msg *’
driver_nl80211.c:2154: warning: label ‘nla_put_failure’ defined but not used
driver_nl80211.c: In function ‘i802_init_sockets’:
driver_nl80211.c:2192: warning: implicit declaration of function ‘nl_cb_alloc’
driver_nl80211.c:2192: error: ‘NL_CB_DEFAULT’ undeclared (first use in this function)
driver_nl80211.c:2192: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:2198: warning: implicit declaration of function ‘nl_handle_alloc_cb’
driver_nl80211.c:2198: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:2204: warning: implicit declaration of function ‘genl_connect’
driver_nl80211.c:2215: warning: implicit declaration of function ‘genl_ctrl_alloc_cache’
driver_nl80211.c:2215: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:2222: warning: implicit declaration of function ‘genl_ctrl_search_by_name’
driver_nl80211.c:2222: warning: assignment makes pointer from integer without a cast
driver_nl80211.c: At top level:
driver_nl80211.c:2380: warning: ‘struct nlmsghdr’ declared inside parameter list
driver_nl80211.c: In function ‘hostapd_wireless_event_rtm_newlink’:
driver_nl80211.c:2386: error: dereferencing pointer to incomplete type
driver_nl80211.c:2389: warning: implicit declaration of function ‘NLMSG_DATA’
driver_nl80211.c:2389: warning: assignment makes pointer from integer without a cast
driver_nl80211.c:2394: warning: implicit declaration of function ‘NLMSG_ALIGN’
driver_nl80211.c:2394: error: invalid application of ‘sizeof’ to incomplete type ‘struct ifinfomsg’
driver_nl80211.c:2396: error: dereferencing pointer to incomplete type
driver_nl80211.c:2402: warning: implicit declaration of function ‘RTA_ALIGN’
driver_nl80211.c:2402: error: invalid application of ‘sizeof’ to incomplete type ‘struct rtattr’
driver_nl80211.c:2403: warning: implicit declaration of function ‘RTA_OK’
driver_nl80211.c:2404: error: dereferencing pointer to incomplete type
driver_nl80211.c:2404: error: ‘IFLA_WIRELESS’ undeclared (first use in this function)
driver_nl80211.c:2407: error: dereferencing pointer to incomplete type
driver_nl80211.c:2409: warning: implicit declaration of function ‘RTA_NEXT’
driver_nl80211.c:2409: warning: assignment makes pointer from integer without a cast
driver_nl80211.c: In function ‘hostapd_wireless_event_receive’:
driver_nl80211.c:2419: error: storage size of ‘from’ isn’t known
driver_nl80211.c:2434: error: dereferencing pointer to incomplete type
driver_nl80211.c:2437: error: dereferencing pointer to incomplete type
driver_nl80211.c:2438: error: dereferencing pointer to incomplete type
driver_nl80211.c:2446: error: dereferencing pointer to incomplete type
driver_nl80211.c:2447: error: ‘RTM_NEWLINK’ undeclared (first use in this function)
driver_nl80211.c:2448: warning: passing argument 2 of ‘hostapd_wireless_event_rtm_newlink’ from incompatible pointer type
driver_nl80211.c:2379: note: expected ‘struct nlmsghdr *’ but argument is of type ‘struct nlmsghdr *’
driver_nl80211.c:2419: warning: unused variable ‘from’
driver_nl80211.c: In function ‘i802_wireless_event_init’:
driver_nl80211.c:2512: error: storage size of ‘local’ isn’t known
driver_nl80211.c:2518: error: ‘NETLINK_ROUTE’ undeclared (first use in this function)
driver_nl80211.c:2526: error: ‘RTMGRP_LINK’ undeclared (first use in this function)
driver_nl80211.c:2512: warning: unused variable ‘local’
driver_nl80211.c: In function ‘i802_deinit’:
driver_nl80211.c:2649: warning: implicit declaration of function ‘genl_family_put’
driver_nl80211.c:2650: warning: implicit declaration of function ‘nl_cache_free’
driver_nl80211.c:2651: warning: implicit declaration of function ‘nl_handle_destroy’
make: *** [driver_nl80211.o] Error 1

MS3FGX 08-18-2009 01:50 PM

The error says you are missing the netlink library, or at least, you have an older version installed.

gregnorc 08-24-2009 03:41 PM

That's impossible, I just ran yum -y install libnl and was told it was up to date.

I think the .config file I created is not pointing in the right place (a directory in /usr/src) but I have no clue where libnl actually is and thus can't point make in the right direction.

aadel 08-28-2009 08:20 PM

You will need to install the development library to solve this issue

juanjoa 11-18-2009 07:14 AM

thx
 
aadel thanks very much
Good solution

juanjoa
Un saludo!


All times are GMT -5. The time now is 07:10 AM.