Rup0rt / pcapfix

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

Build on OSX #8

Open wapowell opened 7 years ago

wapowell commented 7 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 parameterLFS_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

I used the latest from the repository.
I'm on 10.10.5 Yosemite.
Rup0rt commented 6 years ago

Can somebody using OSX tell me how to fix this?

Rup0rt commented 3 years ago

Some changes have been made to the makefile. Can you check the devel branch whether this problem still exists?

wolveix commented 11 months ago

@Rup0rt working here on the latest version of macOS (10.14, Sonoma)