Posts

Showing posts with the label compiler-errors

Undefined reference to symbol 'gzclose' error when getting library - go

Undefined reference to symbol 'gzclose' error when getting library - go When I try to get one of my libraries on my linux machine with the following command: go get -t github.com/bakape/thumbnailer then I get this error message: -# github.com/bakape/thumbnailer /usr/bin/ld: /usr/bin/ld: /usr/local/lib/libGraphicsMagick.a(magick_libGraphicsMagick_la-blob.o): undefined reference to symbol 'gzclose' //lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status People who encountered this error said this is a linking error and they fixed it by adding some additional tags in the Makefile. I did this too, but this did not work for me. I tried so many solutions, but nothing seems to work for me. I'm using the following library: https://github.com/bakape/thumbnailer This is the Makefile: clean: rm -f testdata/*_thumb.* The creator mentioned undocumented zlib dependencies. All of them are installed: z...