vs2005 linking errors

Reiner Rodriguez reinerra
Thu Jan 17 04:36:17 PST 2013


I solved the errors

c:\dev\wpa_supplicant-2.0\src\utils\os.h(195) : error C2054: expected '('
to follow 'inline'
c:\dev\wpa_supplicant-2.0\src\utils\os.h(489) : error C2054: expected '('
to follow 'inline'
Solution
Replace inline with an __inline '

c:\dev\wpa_supplicant-2.0\src\utils\wpa_debug.h(150) : error C2010: '.' :
unexpected in macro formal parameter list
// #define wpa_dbg(args...) wpa_msg(args)
Solution
#define wpa_dbg(args, ...) wpa_msg(args, __VA_ARGS__)

------------------ but I got  new errors at at linking time    -----------

Generating Code...
Compiling manifest to resources...
Linking...
sha1.obj : error LNK2005: _hmac_sha1_vector already defined in
crypto_openssl.obj
sha1.obj : error LNK2005: _hmac_sha1 already defined in crypto_openssl.obj
sha1-pbkdf2.obj : error LNK2005: _pbkdf2_sha1 already defined in
crypto_openssl.obj
wpa.obj : error LNK2019: unresolved external symbol _random_get_bytes
referenced in function _wpa_sm_aborted_cached
eap_leap.obj : error LNK2001: unresolved external symbol _random_get_bytes
eap_mschapv2.obj : error LNK2001: unresolved external symbol
_random_get_bytes
eap_sim.obj : error LNK2001: unresolved external symbol _random_get_bytes
eap_sim_common.obj : error LNK2001: unresolved external symbol
_random_get_bytes
events.obj : error LNK2019: unresolved external symbol
_random_add_randomness referenced in function
__wpa_supplicant_event_scan_results
tls_openssl.obj : error LNK2019: unresolved external symbol
_SSL_clear_options referenced in function _tls_connection_set_params
tls_openssl.obj : error LNK2019: unresolved external symbol
_SSL_CTX_clear_options referenced in function _tls_global_set_params
wpa_supplicant.obj : error LNK2019: unresolved external symbol _random_init
referenced in function _wpa_supplicant_init
wpa_supplicant.obj : error LNK2019: unresolved external symbol
_driver_ndis_init_ops referenced in function _wpa_supplicant_init
wpa_supplicant.obj : error LNK2019: unresolved external symbol
_random_deinit referenced in function _wpa_supplicant_deinit

Linking...
sha1.obj : error LNK2005: _hmac_sha1_vector already defined in
crypto_openssl.obj
sha1.obj : error LNK2005: _hmac_sha1 already defined in crypto_openssl.obj
sha1-pbkdf2.obj : error LNK2005: _pbkdf2_sha1 already defined in
crypto_openssl.obj
eap_leap.obj : error LNK2019: unresolved external symbol _random_get_bytes
referenced in function _eap_leap_process_success
eap_mschapv2.obj : error LNK2001: unresolved external symbol
_random_get_bytes
wpa.obj : error LNK2001: unresolved external symbol _random_get_bytes
events.obj : error LNK2019: unresolved external symbol
_random_add_randomness referenced in function
__wpa_supplicant_event_scan_results
tls_openssl.obj : error LNK2019: unresolved external symbol
_SSL_clear_options referenced in function _tls_connection_set_params
tls_openssl.obj : error LNK2019: unresolved external symbol
_SSL_CTX_clear_options referenced in function _tls_global_set_params
wpa_supplicant.obj : error LNK2019: unresolved external symbol _random_init
referenced in function _wpa_supplicant_init
wpa_supplicant.obj : error LNK2019: unresolved external symbol
_random_deinit referenced in function _wpa_supplicant_deinit

Generating Code...
Compiling manifest to resources...
Linking...
wpa_cli.obj : error LNK2019: unresolved external symbol _eloop_terminate
referenced in function _wpa_cli_cmd_quit
wpa_cli.obj : error LNK2019: unresolved external symbol
_eloop_register_read_sock referenced in function _wpa_cli_open_connection
wpa_cli.obj : error LNK2019: unresolved external symbol
_eloop_unregister_read_sock referenced in function _wpa_cli_close_connection
wpa_cli.obj : error LNK2019: unresolved external symbol _edit_redraw
referenced in function _wpa_cli_recv_pending
wpa_cli.obj : error LNK2019: unresolved external symbol _edit_clear_line
referenced in function _wpa_cli_recv_pending
wpa_cli.obj : error LNK2019: unresolved external symbol _eloop_destroy
referenced in function _main
wpa_cli.obj : error LNK2019: unresolved external symbol
_eloop_register_signal_terminate referenced in function _main
wpa_cli.obj : error LNK2019: unresolved external symbol _eloop_init
referenced in function _main
wpa_cli.obj : error LNK2019: unresolved external symbol _edit_deinit
referenced in function _wpa_cli_interactive
wpa_cli.obj : error LNK2019: unresolved external symbol
_eloop_cancel_timeout referenced in function _wpa_cli_interactive
wpa_cli.obj : error LNK2019: unresolved external symbol _eloop_run
referenced in function _wpa_cli_interactive
wpa_cli.obj : error LNK2019: unresolved external symbol
_eloop_register_timeout referenced in function _wpa_cli_interactive
wpa_cli.obj : error LNK2019: unresolved external symbol _edit_init
referenced in function _start_edit
sha1.obj : error LNK2005: _hmac_sha1_vector already defined in
crypto_openssl.obj
sha1.obj : error LNK2005: _hmac_sha1 already defined in crypto_openssl.obj
sha1-pbkdf2.obj : error LNK2005: _pbkdf2_sha1 already defined in
crypto_openssl.obj
eap_leap.obj : error LNK2019: unresolved external symbol _random_get_bytes
referenced in function _eap_leap_process_success
eap_mschapv2.obj : error LNK2001: unresolved external symbol
_random_get_bytes
wpa.obj : error LNK2001: unresolved external symbol _random_get_bytes
events.obj : error LNK2019: unresolved external symbol
_random_add_randomness referenced in function
__wpa_supplicant_event_scan_results
tls_openssl.obj : error LNK2019: unresolved external symbol
_SSL_clear_options referenced in function _tls_connection_set_params
tls_openssl.obj : error LNK2019: unresolved external symbol
_SSL_CTX_clear_options referenced in function _tls_global_set_params
wpa_supplicant.obj : error LNK2019: unresolved external symbol _random_init
referenced in function _wpa_supplicant_init
wpa_supplicant.obj : error LNK2019: unresolved external symbol
_random_deinit referenced in function _wpa_supplicant_deinit

Build log was saved at
"file://c:\dev\wpa_supplicant-2.0\wpa_supplicant\vs2005\wpa_supplicant\Debug\BuildLog.htm"
wpa_supplicant - 12 error(s), 4 warning(s)
========== Rebuild All: 2 succeeded, 4 failed, 0 skipped ==========
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20130117/90819f4d/attachment-0001.htm 



More information about the Hostap mailing list