You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zlib dev headers did change their behaviour in an evil way, which forces -lz now to be at the very end of the compile command.
Otherwise it fails with
./libsparse.a(output_file.o): In function `gz_file_close':
output_file.c:(.text+0x689): undefined reference to `gzclose'
./libsparse.a(output_file.o): In function `gz_file_write':
output_file.c:(.text+0x738): undefined reference to `gzwrite'
./libsparse.a(output_file.o): In function `gz_file_pad':
output_file.c:(.text+0x7bf): undefined reference to `gztell64'
output_file.c:(.text+0x7eb): undefined reference to `gzseek64'
output_file.c:(.text+0x803): undefined reference to `gzwrite'
./libsparse.a(output_file.o): In function `gz_file_skip':
output_file.c:(.text+0x82e): undefined reference to `gzseek64'
./libsparse.a(output_file.o): In function `gz_file_open':
output_file.c:(.text+0x88c): undefined reference to `gzdopen'
collect2: error: ld returned 1 exit status
Makefile:58: recipe for target 'simg2img' failed
Most easy and ugly fix is putting -lz after $< $(LDFLAGS)
The text was updated successfully, but these errors were encountered:
zlib dev headers did change their behaviour in an evil way, which forces -lz now to be at the very end of the compile command.
Otherwise it fails with
Most easy and ugly fix is putting
-lz
after$< $(LDFLAGS)
The text was updated successfully, but these errors were encountered: