thumbnailer: Errors when updating to the newest version

Hello, I just updated to the newest version and I get a bunch of error messages when I try to start my go application now. Everything was working perfectly fine before the upgrade.

This is the list of all error messages:

In file included from /usr/local/go/pkg/src/github.com/bakape/thumbnailer/build_flags_gpl.go:10:
/usr/local/go/pkg/src/github.com/bakape/thumbnailer/libimagequant/libimagequant.c:158:30: warning: implicitly declaring library function 'vsnprintf' with type 'int (char *, unsigned long, const char *, struct __va_list_tag *)' [-Wimplicit-function-declaration]
/usr/local/go/pkg/src/github.com/bakape/thumbnailer/libimagequant/libimagequant.c:158:30: note: include the header <stdio.h> or explicitly provide a declaration for 'vsnprintf'
# github.com/bakape/thumbnailer
In file included from init.c:2:
In file included from /usr/local/Cellar/graphicsmagick/1.3.28_1/include/GraphicsMagick/magick/api.h:87:
/usr/local/Cellar/graphicsmagick/1.3.28_1/include/GraphicsMagick/magick/memory.h:17:48: warning: '__alloc_size__' attribute only applies to functions [-Wignored-attributes]
/usr/local/Cellar/graphicsmagick/1.3.28_1/include/GraphicsMagick/magick/common.h:188:70: note: expanded from macro 'MAGICK_FUNC_ALLOC_SIZE_1ARG'
In file included from init.c:2:
In file included from /usr/local/Cellar/graphicsmagick/1.3.28_1/include/GraphicsMagick/magick/api.h:87:
/usr/local/Cellar/graphicsmagick/1.3.28_1/include/GraphicsMagick/magick/memory.h:19:60: warning: '__alloc_size__' attribute only applies to functions [-Wignored-attributes]
/usr/local/Cellar/graphicsmagick/1.3.28_1/include/GraphicsMagick/magick/common.h:188:70: note: expanded from macro 'MAGICK_FUNC_ALLOC_SIZE_1ARG'
# github.com/bakape/thumbnailer
video.c:41:23: warning: address of array 'f->data' will always evaluate to 'true' [-Wpointer-bool-conversion]
video.c:79:59: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
video.c:124:39: warning: address of array 'frames[0]->data' will always evaluate to 'true' [-Wpointer-bool-conversion]
# github.com/bakape/thumbnailer
error: invalid value 'c++17' in '-std=c++17'

Can anyone help me with this? I just don’t know what to do.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (9 by maintainers)

Most upvoted comments

Hello bakape. I switched to a linux envrionment now and when I try to run/build my app, I get following error message:

# github.com/0xSeven/thumbnailer
/usr/bin/ld: /usr/local/lib/libGraphicsMagick.a(magick_libGraphicsMagick_la-shear.o): undefined reference to symbol 'trunc@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line

I don’t know what to do anymore, I tried everything I can to get this thing running. Please bakape, I beg you for help or hints. I’m just a go noob who tries to launch his first go app on an amazon ec2. Please, sir.

Are you cross-compiling?

I changed some dependencies. You need a C++17 compiler and GraphicsMagick++ installed on your system.