The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[OpenBSD] compilation error: net/80211/wpa.c:424: warning: format '%d' expects type '
2013-11-28, 23:29
Post: #1
[OpenBSD] compilation error: net/80211/wpa.c:424: warning: format '%d' expects type '
Hi,

I want to build iPXE from source because I want to then embed a script. But building fails...

[undefined=undefined]...snip...
[BUILD] bin/wpa.o
cc1: warnings being treated as errors
net/80211/wpa.c: In function 'wpa_maybe_install_gtk':
net/80211/wpa.c:424: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int'
net/80211/wpa.c: In function 'wpa_handle_1_of_2':
net/80211/wpa.c:804: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int'
net/80211/wpa.c: In function 'eapol_key_rx':
net/80211/wpa.c:880: warning: format '%d' expects type 'int', but argument 3 has type 'long int'
gmake: *** [bin/wpa.o] Error 1[/undefined]

[undefined=undefined]$ gmake -v
GNU Make 3.82
Built for x86_64-unknown-openbsd5.4
Copyright © 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

$ gcc -v
Reading specs from /usr/lib/gcc-lib/amd64-unknown-openbsd5.4/4.2.1/specs
Target: amd64-unknown-openbsd5.4
Configured with: OpenBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070719

$ ld -V
GNU ld version 2.15
Supported emulations:
elf_x86_64_obsd
elf_i386_obsd
elf_i386[/undefined]

jirib
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[OpenBSD] compilation error: net/80211/wpa.c:424: warning: format '%d' expects type ' - jirib - 2013-11-28 23:29



User(s) browsing this thread: 1 Guest(s)