From f2e45b41a2959c58ac1e9e9d20f046e033dc8ade Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 8 Dec 2015 12:51:23 -0700 Subject: [PATCH] iolog: fix build with zlib not being installed backend.o: In function `thread_main': /home/axboe/git/fio/backend.c:1553: undefined reference to `iolog_compress_init' /home/axboe/git/fio/backend.c:1656: undefined reference to `iolog_compress_exit' collect2: error: ld returned 1 exit status make: *** [fio] Error 1 Provide dummy init/exit functions. Signed-off-by: Jens Axboe --- iolog.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/iolog.c b/iolog.c index 0d4d26a5..24e3f10f 100644 --- a/iolog.c +++ b/iolog.c @@ -1316,3 +1316,12 @@ void fio_writeout_logs(struct thread_data *td) td_restore_runstate(td, old_state); } + +int iolog_compress_init(struct thread_data *td) +{ + return 0; +} + +void iolog_compress_exit(struct thread_data *td) +{ +} -- 2.25.1