unable to build wpa_supplicant

mmodem00
Fri Aug 5 20:02:40 PDT 2011


2011/8/6 Pavel Roskin <proski at gnu.org>:
> On Fri, 5 Aug 2011 22:10:11 +0100
> Z? <mmodem00 at gmail.com> wrote:
>
>> I have cloned git repository and isnt possible to build, the output:
>>
>> cc1: warnings being treated as errors
>> ../src/crypto/random.c: In function ?random_write_entropy?:
>> ../src/crypto/random.c:372:8: error: ignoring return value of
>> ?fwrite?, declared with attribute warn_unused_res ult
>> ../src/crypto/random.c:373:8: error: ignoring return value of
>> ?fwrite?, declared with attribute warn_unused_res ult
>
> That should not be hard to fix, if you are interesting is fixing the
> code.
>
> But I guess you simply enabled CONFIG_EAPOL_TEST in .config, which
> enabled the -Werror option for the compiler. ?You may want to disable
> that option and deal with the warnings when you have time and desire
> for that.

Yes, CONFIG_EAPOL_TEST is enabled  in the.config file i use to package
wpa_supplicant

Anyway -Werror its also puled by the distro defaults, check this:

+ CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-b uffer-size=4'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp -buffer-size=4'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-b uffer-size=4'
+ export FFLAGS
+ LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1
-Wl,--build-id -Wl,--enable-new-dtags'

But this kind of problem didnt happened when building version 0.7.3.

By the way, whats wpa_supplicant current version in git?
In what file can be checked the version?

> Alternatively, enable CONFIG_NO_RANDOM_POOL to disable the problematic
> code.
>
> --
> Regards,
> Pavel Roskin
>



-- 
Z?



More information about the Hostap mailing list