Rup0rt / pcapfix

repair corrupted pcap files
http://f00l.de/pcapfix/
GNU General Public License v3.0
202 stars 34 forks source link

OS X build error #4

Closed mathiasbynens closed 9 years ago

mathiasbynens commented 9 years ago
$ make
getconf: no such configuration parameter `LFS_CFLAGS'
gcc   -D_FORTIFY_SOURCE=2 -O2 -fstack-protector --param=ssp-buffer-size=4 -Wall -Wextra -std=gnu99 -pedantic -Wformat -Werror=format-security -g -c pcap.c -o pcap.o
getconf: no such configuration parameter `LFS_CFLAGS'
gcc   -D_FORTIFY_SOURCE=2 -O2 -fstack-protector --param=ssp-buffer-size=4 -Wall -Wextra -std=gnu99 -pedantic -Wformat -Werror=format-security -g -c pcapng.c -o pcapng.o
pcapng.c:377:118: warning: format specifies type 'unsigned long long' but the
      argument has type 'unsigned long' [-Wformat]
  ...(%" PRIu64 " > %" PRId64 ") ==> SKIPPING.\n", packets, sizeof(pb), left);
      ~~~                                                   ^~~~~~~~~~
1 warning generated.
getconf: no such configuration parameter `LFS_CFLAGS'
gcc   -D_FORTIFY_SOURCE=2 -O2 -fstack-protector --param=ssp-buffer-size=4 -Wall -Wextra -std=gnu99 -pedantic -Wformat -Werror=format-security -g -Wl,-z,relro pcapfix.c pcap.o pcapng.o -o pcapfix
ld: unknown option: -z
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [all] Error 1
Rup0rt commented 9 years ago

thanks for your report. issue fixed with commit 5d4fd02084768229cc74d09c64b259d9b5029d9b