Comments (5)
That script is actually just here to help create fat binaries, which you probably do not need. However, I am afraid XCode is not directly supported as a build system, as I have absolutely no idea how it works. Reasonably well-supported systems will be Brew or Fink, because they provide automake
, libtool
, etc. which are required for zzuf to build.
The usual procedure to build zzuf on a Unix-like system is:
./bootstrap
./configure
make
I suggest trying it using Brew; I remember successfully building zzuf with Brew.
from zzuf.
Sam,
Thanks for the fast response.
I followed the steps in order; 'make' ended in the following error; are there any ideas as to what can be done to fix it? Thanks
Undefined symbols for architecture x86_64:
"___asan_init_v3", referenced from:
__zz_sys_init in libzzuf_la-sys.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libzzuf.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
from zzuf.
To install from a bottle instead, run with --force-bottle
==> Cloning https://github.com/samhocevar/zzuf.git
git --git-dir /Library/Caches/Homebrew/zzuf--git/.git status -s
Updating /Library/Caches/Homebrew/zzuf--git
git config remote.origin.url https://github.com/samhocevar/zzuf.git
git config remote.origin.fetch +refs/heads/master:refs/remotes/origin/master
git fetch origin
git checkout -f master --
Already on 'master'
Your branch is up-to-date with 'origin/master'.
git reset --hard origin/master
HEAD is now at 613fb6e Disable unnecessary weak symbol declaration.
==> Checking out branch master
==> ./bootstrap
+ test yes = yes
+ glibtoolize --copy --force
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.auto'.
glibtoolize: copying file '.auto/ltmain.sh'
glibtoolize: putting macros in 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
glibtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
glibtoolize: and rerunning glibtoolize and aclocal.
+ test -n .auto -a '!' .auto = . -a -f ltmain.sh
+ aclocal -I .auto -I . -I m4
+ autoconf
+ test yes = yes
+ autoheader
+ test yes = yes
+ automake --foreign --add-missing --copy
configure.ac:9: installing '.auto/compile'
configure.ac:11: installing '.auto/config.guess'
configure.ac:11: installing '.auto/config.sub'
configure.ac:5: installing '.auto/install-sh'
configure.ac:5: installing '.auto/missing'
src/Makefile.am: installing '.auto/depcomp'
parallel-tests: installing '.auto/test-driver'
+ rm -Rf autom4te.cache
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/zzuf/HEAD
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... .auto/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '501' is supported by ustar format... yes
checking whether GID '20' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking for style of include used by make... GNU
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking whether clang understands -c and -o together... yes
checking dependency style of clang... none
checking how to run the C preprocessor... clang -E
checking build system type... x86_64-apple-darwin15.0.0
checking host system type... x86_64-apple-darwin15.0.0
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/local/Library/ENV/4.3/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by clang... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert x86_64-apple-darwin15.0.0 file names to x86_64-apple-darwin15.0.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin15.0.0 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from clang object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fno-common -DPIC
checking if clang PIC flag -fno-common -DPIC works... yes
checking if clang static flag -static works... no
checking if clang supports -c -o file.o... yes
checking if clang supports -c -o file.o... (cached) yes
checking whether the clang linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin15.0.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for pkg-config... /usr/local/opt/pkg-config/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for inline... inline
checking for __func__... __func__
checking if clang supports -std=c99 flags... yes
checking for libzzuf full name... libzzuf.dylib
checking if clang supports -g -O2 flags... yes
checking if clang supports -Wall flags... yes
checking if clang supports -W flags... yes
checking if clang supports -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare flags... yes
checking for unistd.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking endian.h usability... no
checking endian.h presence... no
checking for endian.h... no
checking libc.h usability... yes
checking libc.h presence... yes
checking for libc.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking process.h usability... no
checking process.h presence... no
checking for process.h... no
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking for dlfcn.h... (cached) yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking sys/cdefs.h usability... yes
checking sys/cdefs.h presence... yes
checking for sys/cdefs.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking aio.h usability... yes
checking aio.h presence... yes
checking for aio.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking mach/task.h usability... yes
checking mach/task.h presence... yes
checking for mach/task.h... yes
checking for setenv... yes
checking for waitpid... yes
checking for setrlimit... yes
checking for gettimeofday... yes
checking for fork... yes
checking for kill... yes
checking for pipe... yes
checking for _pipe... no
checking for regexec... yes
checking for regwexec... yes
checking for dup... yes
checking for dup2... yes
checking for ftello... yes
checking for fseeko... yes
checking for _IO_getc... no
checking for getline... yes
checking for getdelim... yes
checking for fgetln... yes
checking for map_fd... no
checking for memalign... no
checking for posix_memalign... yes
checking for aio_read... yes
checking for accept... yes
checking for bind... yes
checking for connect... yes
checking for socket... yes
checking for readv... yes
checking for pread... yes
checking for recv... yes
checking for recvfrom... yes
checking for recvmsg... yes
checking for valloc... yes
checking for sigaction... yes
checking for mmap... yes
checking for getpagesize... yes
checking for getc_unlocked... yes
checking for getchar_unlocked... yes
checking for fgetc_unlocked... no
checking for fread_unlocked... no
checking for fgets_unlocked... no
checking for __getdelim... no
checking for __srefill... yes
checking for __filbuf... no
checking for __srget... yes
checking for __uflow... no
checking for open64... no
checking for lseek64... no
checking for mmap64... no
checking for fopen64... no
checking for freopen64... no
checking for ftello64... no
checking for fseeko64... no
checking for fsetpos64... no
checking for __open64... no
checking for __lseek64... no
checking for __fopen64... no
checking for __freopen64... no
checking for __ftello64... no
checking for __fseeko64... no
checking for __fsetpos64... no
checking for __fgets_chk... no
checking for __fgets_unlocked_chk... no
checking for __fread_chk... no
checking for __fread_unlocked_chk... no
checking for __read_chk... no
checking for __recv_chk... no
checking for __recvfrom_chk... no
checking for CreateFileA... no
checking for CreateFileW... no
checking for ReOpenFile... no
checking for ReadFile... no
checking for CloseHandle... no
checking for AllocConsole... no
checking for AttachConsole... no
checking for SetConsoleMode... no
checking for WriteConsoleOutputA... no
checking for WriteConsoleOutputW... no
checking for sighandler_t... no
checking for sig_t... yes
checking for socklen_t... yes
checking for fpos64_t... no
checking for connect() second argument... const struct sockaddr *
checking for read() prototype... ssize_t read(... size_t);
checking for recv() return value... ssize_t
checking for _IO_read_ptr and _IO_read_end in FILE (glibc-style)... no
checking for _bf._base, _r and _p in FILE (FreeBSD-style)... yes
checking for _base, _cnt and _ptr in FILE (Solaris-style)... no
checking how to access fpos64_t x... unknown
checking for pragma INIT/FINI... yes
checking for __printf__ attribute... yes
checking for dladdr in -ldl... yes
checking for log in -lm... yes
checking for dlopen in -ldl... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating test/Makefile
config.status: creating doc/zzat.1
config.status: creating doc/zzuf.1
config.status: creating doc/libzzuf.3
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
==> make install
Making install in src
clang -DHAVE_CONFIG_H -I. -I.. -DLIBDIR=\"/usr/local/Cellar/zzuf/HEAD/lib/zzuf\" -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o zzuf-zzuf.o `test -f 'zzuf.c' || echo './'`zzuf.c
clang -DHAVE_CONFIG_H -I. -I.. -DLIBDIR=\"/usr/local/Cellar/zzuf/HEAD/lib/zzuf\" -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o zzuf-opts.o `test -f 'opts.c' || echo './'`opts.c
clang -DHAVE_CONFIG_H -I. -I.. -DLIBDIR=\"/usr/local/Cellar/zzuf/HEAD/lib/zzuf\" -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o zzuf-timer.o `test -f 'timer.c' || echo './'`timer.c
clang -DHAVE_CONFIG_H -I. -I.. -DLIBDIR=\"/usr/local/Cellar/zzuf/HEAD/lib/zzuf\" -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o zzuf-myfork.o `test -f 'myfork.c' || echo './'`myfork.c
clang -DHAVE_CONFIG_H -I. -I.. -DLIBDIR=\"/usr/local/Cellar/zzuf/HEAD/lib/zzuf\" -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o common/zzuf-random.o `test -f 'common/random.c' || echo './'`common/random.c
clang -DHAVE_CONFIG_H -I. -I.. -DLIBDIR=\"/usr/local/Cellar/zzuf/HEAD/lib/zzuf\" -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o common/zzuf-ranges.o `test -f 'common/ranges.c' || echo './'`common/ranges.c
clang -DHAVE_CONFIG_H -I. -I.. -DLIBDIR=\"/usr/local/Cellar/zzuf/HEAD/lib/zzuf\" -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o common/zzuf-fd.o `test -f 'common/fd.c' || echo './'`common/fd.c
clang -DHAVE_CONFIG_H -I. -I.. -DLIBDIR=\"/usr/local/Cellar/zzuf/HEAD/lib/zzuf\" -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o common/zzuf-fuzz.o `test -f 'common/fuzz.c' || echo './'`common/fuzz.c
clang -DHAVE_CONFIG_H -I. -I.. -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o zzat.o zzat.c
clang -DHAVE_CONFIG_H -I. -I.. -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o util/getopt.o util/getopt.c
/bin/sh ../libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o libzzuf/libzzuf_la-libzzuf.lo `test -f 'libzzuf/libzzuf.c' || echo './'`libzzuf/libzzuf.c
/bin/sh ../libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o libzzuf/libzzuf_la-debug.lo `test -f 'libzzuf/debug.c' || echo './'`libzzuf/debug.c
/bin/sh ../libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o libzzuf/libzzuf_la-sys.lo `test -f 'libzzuf/sys.c' || echo './'`libzzuf/sys.c
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c libzzuf/libzzuf.c -fno-common -DPIC -o libzzuf/.libs/libzzuf_la-libzzuf.o
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c libzzuf/debug.c -fno-common -DPIC -o libzzuf/.libs/libzzuf_la-debug.o
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c libzzuf/sys.c -fno-common -DPIC -o libzzuf/.libs/libzzuf_la-sys.o
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c libzzuf/libzzuf.c -o libzzuf/libzzuf_la-libzzuf.o >/dev/null 2>&1
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c libzzuf/sys.c -o libzzuf/libzzuf_la-sys.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o libzzuf/libzzuf_la-network.lo `test -f 'libzzuf/network.c' || echo './'`libzzuf/network.c
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c libzzuf/debug.c -o libzzuf/libzzuf_la-debug.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o libzzuf/libzzuf_la-lib-fd.lo `test -f 'libzzuf/lib-fd.c' || echo './'`libzzuf/lib-fd.c
/bin/sh ../libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o libzzuf/libzzuf_la-lib-mem.lo `test -f 'libzzuf/lib-mem.c' || echo './'`libzzuf/lib-mem.c
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c libzzuf/network.c -fno-common -DPIC -o libzzuf/.libs/libzzuf_la-network.o
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c libzzuf/lib-fd.c -fno-common -DPIC -o libzzuf/.libs/libzzuf_la-lib-fd.o
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c libzzuf/lib-mem.c -fno-common -DPIC -o libzzuf/.libs/libzzuf_la-lib-mem.o
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c libzzuf/network.c -o libzzuf/libzzuf_la-network.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o libzzuf/libzzuf_la-lib-signal.lo `test -f 'libzzuf/lib-signal.c' || echo './'`libzzuf/lib-signal.c
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c libzzuf/lib-fd.c -o libzzuf/libzzuf_la-lib-fd.o >/dev/null 2>&1
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c libzzuf/lib-mem.c -o libzzuf/libzzuf_la-lib-mem.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o libzzuf/libzzuf_la-lib-stream.lo `test -f 'libzzuf/lib-stream.c' || echo './'`libzzuf/lib-stream.c
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c libzzuf/lib-signal.c -fno-common -DPIC -o libzzuf/.libs/libzzuf_la-lib-signal.o
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c libzzuf/lib-signal.c -o libzzuf/libzzuf_la-lib-signal.o >/dev/null 2>&1
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c libzzuf/lib-stream.c -fno-common -DPIC -o libzzuf/.libs/libzzuf_la-lib-stream.o
/bin/sh ../libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o libzzuf/libzzuf_la-lib-win32.lo `test -f 'libzzuf/lib-win32.c' || echo './'`libzzuf/lib-win32.c
/bin/sh ../libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o common/libzzuf_la-random.lo `test -f 'common/random.c' || echo './'`common/random.c
/bin/sh ../libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o common/libzzuf_la-ranges.lo `test -f 'common/ranges.c' || echo './'`common/ranges.c
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c libzzuf/lib-win32.c -fno-common -DPIC -o libzzuf/.libs/libzzuf_la-lib-win32.o
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c common/random.c -fno-common -DPIC -o common/.libs/libzzuf_la-random.o
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c common/ranges.c -fno-common -DPIC -o common/.libs/libzzuf_la-ranges.o
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c libzzuf/lib-win32.c -o libzzuf/libzzuf_la-lib-win32.o >/dev/null 2>&1
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c common/random.c -o common/libzzuf_la-random.o >/dev/null 2>&1
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c libzzuf/lib-stream.c -o libzzuf/libzzuf_la-lib-stream.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o common/libzzuf_la-fd.lo `test -f 'common/fd.c' || echo './'`common/fd.c
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c common/ranges.c -o common/libzzuf_la-ranges.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o common/libzzuf_la-fuzz.lo `test -f 'common/fuzz.c' || echo './'`common/fuzz.c
clang -DHAVE_CONFIG_H -I. -I.. -DLIBDIR=\"/usr/local/Cellar/zzuf/HEAD/lib/zzuf\" -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o util/zzuf-getopt.o `test -f 'util/getopt.c' || echo './'`util/getopt.c
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c common/fd.c -fno-common -DPIC -o common/.libs/libzzuf_la-fd.o
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c common/fuzz.c -fno-common -DPIC -o common/.libs/libzzuf_la-fuzz.o
clang -DHAVE_CONFIG_H -I. -I.. -DLIBDIR=\"/usr/local/Cellar/zzuf/HEAD/lib/zzuf\" -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o util/zzuf-md5.o `test -f 'util/md5.c' || echo './'`util/md5.c
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c common/fuzz.c -o common/libzzuf_la-fuzz.o >/dev/null 2>&1
libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c common/fd.c -o common/libzzuf_la-fd.o >/dev/null 2>&1
clang -DHAVE_CONFIG_H -I. -I.. -DLIBDIR=\"/usr/local/Cellar/zzuf/HEAD/lib/zzuf\" -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o util/zzuf-hex.o `test -f 'util/hex.c' || echo './'`util/hex.c
/bin/sh ../libtool --tag=CC --mode=link clang -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -o zzat zzat.o util/getopt.o
/bin/sh ../libtool --tag=CC --mode=link clang -DLIBZZUF -I./libzzuf -I./common -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -avoid-version -no-undefined -o libzzuf.la -rpath /usr/local/Cellar/zzuf/HEAD/lib/zzuf libzzuf/libzzuf_la-libzzuf.lo libzzuf/libzzuf_la-debug.lo libzzuf/libzzuf_la-sys.lo libzzuf/libzzuf_la-network.lo libzzuf/libzzuf_la-lib-fd.lo libzzuf/libzzuf_la-lib-mem.lo libzzuf/libzzuf_la-lib-signal.lo libzzuf/libzzuf_la-lib-stream.lo libzzuf/libzzuf_la-lib-win32.lo common/libzzuf_la-random.lo common/libzzuf_la-ranges.lo common/libzzuf_la-fd.lo common/libzzuf_la-fuzz.lo -ldl -lm
libtool: link: clang -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -o zzat zzat.o util/getopt.o
libtool: link: clang -dynamiclib -o .libs/libzzuf.dylib libzzuf/.libs/libzzuf_la-libzzuf.o libzzuf/.libs/libzzuf_la-debug.o libzzuf/.libs/libzzuf_la-sys.o libzzuf/.libs/libzzuf_la-network.o libzzuf/.libs/libzzuf_la-lib-fd.o libzzuf/.libs/libzzuf_la-lib-mem.o libzzuf/.libs/libzzuf_la-lib-signal.o libzzuf/.libs/libzzuf_la-lib-stream.o libzzuf/.libs/libzzuf_la-lib-win32.o common/.libs/libzzuf_la-random.o common/.libs/libzzuf_la-ranges.o common/.libs/libzzuf_la-fd.o common/.libs/libzzuf_la-fuzz.o -ldl -lm -g -O2 -g -O2 -install_name /usr/local/Cellar/zzuf/HEAD/lib/zzuf/libzzuf.dylib -Wl,-single_module
Undefined symbols for architecture x86_64:
"___asan_init_v3", referenced from:
__zz_sys_init in libzzuf_la-sys.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libzzuf.la] Error 1
make: *** [install-recursive] Error 1
==> Configuration
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: 5848347e3086b1cfca60ece390b5241ae699d7f8
Last commit: 17 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
OS X: 10.11-x86_64
Xcode: 7.0
CLT: 7.0.0.0.1.1437113798
Clang: 7.0 build 700
X11: N/A
System Ruby: 2.0.0-p645
Perl: /usr/local/bin/perl => /usr/local/Cellar/perl/5.22.0/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/local/bin/ruby => /usr/local/Cellar/ruby/2.2.2/bin/ruby
Java: 1.9.0-ea
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.11
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/autoconf/bin:/usr/local/opt/automake/bin:/usr/local/opt/libtool/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/git/bin:/usr/bin:/bin:/usr/sbin:/sbin
from zzuf.
clang -DHAVE_CONFIG_H -I. -I.. -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o bug-div0.o bug-div0.c
clang -DHAVE_CONFIG_H -I. -I.. -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -c -o bug-mmap.o bug-mmap.c
/bin/sh ../libtool --tag=CC --mode=link clang -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -o zzero zzero.o
bug-mmap.c:38:24: error: use of undeclared identifier 'MAP_POPULATE'
MAP_PRIVATE | MAP_POPULATE, fd, 0);
^
1 error generated.
make[1]: *** [bug-mmap.o] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: link: clang -g -O2 -std=c99 -g -O2 -Wall -W -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -o zzero zzero.o
make: *** [install-recursive] Error 1
+ #ifdef __APPLE__
+ MAP_PRIVATE, fd, 0);
+ #else
MAP_PRIVATE | MAP_POPULATE, fd, 0);
+ #endif
from zzuf.
Thanks! I actually disabled the code entirely, since itβs just a regression test for a bug that occurred on Linux.
from zzuf.
Related Issues (17)
- 64-bit version cannot fuzz 32-bit executables
- gcc warnings gcc6.1
- Apparent read truncation in master vs 0.12 HOT 1
- test regression check-win32 HOT 2
- Website link in README.md points to non-functional web page HOT 3
- zzuf can't handle /dev/zero char device on modern glibc (tutorial uses it) HOT 2
- consider adding a new release version like 0.14 + git tags HOT 7
- Compile to IOS HOT 1
- common/fd.c:381 logical fault ? HOT 1
- How to compile the VisualStudio project HOT 1
- Segfault in _zz_fuzz when calling getpwnam_r or getpwuid_r
- Static analysis issues HOT 1
- possible memory leaks in zzuf-0.14
- make check fails for fseek(50,SEEK_SET) HOT 6
- SIGSEGV for every seed? HOT 4
- Memory Exceed on x86 64 bit HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zzuf.