{"action":"closed","issue":{"url":"https://api.github.com/repos/imazen-discovery/test_issue_import/issues/83","labels_url":"https://api.github.com/repos/imazen-discovery/test_issue_import/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/imazen-discovery/test_issue_import/issues/83/comments","events_url":"https://api.github.com/repos/imazen-discovery/test_issue_import/issues/83/events","html_url":"https://github.com/imazen-discovery/test_issue_import/issues/83","id":56579624,"number":83,"title":"Failed to compile for MinGW64 (cross compilation)","user":{"login":"imazen-bot","id":10421256,"avatar_url":"https://avatars.githubusercontent.com/u/10421256?v=3","gravatar_id":"","url":"https://api.github.com/users/imazen-bot","html_url":"https://github.com/imazen-bot","followers_url":"https://api.github.com/users/imazen-bot/followers","following_url":"https://api.github.com/users/imazen-bot/following{/other_user}","gists_url":"https://api.github.com/users/imazen-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/imazen-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imazen-bot/subscriptions","organizations_url":"https://api.github.com/users/imazen-bot/orgs","repos_url":"https://api.github.com/users/imazen-bot/repos","events_url":"https://api.github.com/users/imazen-bot/events{/privacy}","received_events_url":"https://api.github.com/users/imazen-bot/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-04T20:03:27Z","updated_at":"2015-02-04T20:03:28Z","closed_at":"2015-02-04T20:03:28Z","body":"Below is the output from the ./configure stage. The compilation fails, as seen at the bottom, with the message: \"**error: variable 'GD_COLOR_MAP_X11' definition is marked dllimport**\"\n\n\n```\nchecking build system type... i386-pc-mingw32\nchecking host system type... i386-pc-mingw32\nchecking target system type... i386-pc-mingw32\nchecking for a BSD-compatible install... /usr/bin/install -c\nchecking whether build environment is sane... yes\nchecking for a thread-safe mkdir -p... /usr/bin/mkdir -p\nchecking for gawk... gawk\nchecking whether make sets $(MAKE)... yes\nchecking if we are building a Cygwin target... no\nchecking for gcc... x86_64-w64-mingw32-gcc.exe\nchecking whether the C compiler works... yes\nchecking for C compiler default output file name... a.exe\nchecking for suffix of executables... .exe\nchecking whether we are cross compiling... no\nchecking for suffix of object files... o\nchecking whether we are using the GNU C compiler... yes\nchecking whether x86_64-w64-mingw32-gcc.exe accepts -g... yes\nchecking for x86_64-w64-mingw32-gcc.exe option to accept ISO C89... none needed\nchecking for style of include used by make... GNU\nchecking dependency style of x86_64-w64-mingw32-gcc.exe... gcc3\nchecking for gcc... (cached) x86_64-w64-mingw32-gcc.exe\nchecking whether we are using the GNU C compiler... (cached) yes\nchecking whether x86_64-w64-mingw32-gcc.exe accepts -g... (cached) yes\nchecking for x86_64-w64-mingw32-gcc.exe option to accept ISO C89... (cached) none needed\nchecking dependency style of x86_64-w64-mingw32-gcc.exe... (cached) gcc3\nchecking how to print strings... printf\nchecking for a sed that does not truncate output... /usr/bin/sed\nchecking for grep that handles long lines and -e... /usr/bin/grep\nchecking for egrep... /usr/bin/grep -E\nchecking for fgrep... /usr/bin/grep -F\nchecking for ld used by x86_64-w64-mingw32-gcc.exe... /usr/x86_64-w64-mingw32/bin/ld.exe\nchecking if the linker (/usr/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... yes\nchecking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B\nchecking the name lister (/usr/bin/nm -B) interface... BSD nm\nchecking whether ln -s works... yes\nchecking the maximum length of command line arguments... 8192\nchecking whether the shell understands some XSI constructs... yes\nchecking whether the shell understands \"+=\"... yes\nchecking how to convert i386-pc-mingw32 file names to i386-pc-mingw32 format... func_convert_file_msys_to_w32\nchecking how to convert i386-pc-mingw32 file names to toolchain format... func_convert_file_msys_to_w32\nchecking for /usr/x86_64-w64-mingw32/bin/ld.exe option to reload object files... -r\nchecking for objdump... objdump\nchecking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL\nchecking for dlltool... dlltool\nchecking how to associate runtime and link libraries... func_cygming_dll_for_implib\nchecking for archiver @FILE support... @\nchecking for strip... /usr/x86_64-w64-mingw32/bin/strip.exe\nchecking for ranlib... /usr/x86_64-w64-mingw32/bin/ranlib.exe\nchecking command to parse /usr/bin/nm -B output from x86_64-w64-mingw32-gcc.exe object... failed\nchecking for sysroot... no\nchecking for mt... no\nchecking if : is a manifest tool... no\nchecking how to run the C preprocessor... x86_64-w64-mingw32-gcc.exe -E\nchecking for ANSI C header files... yes\nchecking for sys/types.h... yes\nchecking for sys/stat.h... yes\nchecking for stdlib.h... yes\nchecking for string.h... yes\nchecking for memory.h... yes\nchecking for strings.h... yes\nchecking for inttypes.h... yes\nchecking for stdint.h... yes\nchecking for unistd.h... yes\nchecking for dlfcn.h... no\nchecking for objdir... .libs\nchecking if x86_64-w64-mingw32-gcc.exe supports -fno-rtti -fno-exceptions... no\nchecking for x86_64-w64-mingw32-gcc.exe option to produce PIC... -DDLL_EXPORT -DPIC\nchecking if x86_64-w64-mingw32-gcc.exe PIC flag -DDLL_EXPORT -DPIC works... yes\nchecking if x86_64-w64-mingw32-gcc.exe static flag -static works... yes\nchecking if x86_64-w64-mingw32-gcc.exe supports -c -o file.o... yes\nchecking if x86_64-w64-mingw32-gcc.exe supports -c -o file.o... (cached) yes\nchecking whether the x86_64-w64-mingw32-gcc.exe linker (/usr/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes\nchecking dynamic linker characteristics... Win32 ld.exe\nchecking how to hardcode library paths into programs... immediate\nchecking whether stripping libraries is possible... yes\nchecking if libtool supports shared libraries... yes\nchecking whether to build shared libraries... no\nchecking whether to build static libraries... yes\nchecking whether ln -s works... yes\nchecking whether make sets $(MAKE)... (cached) yes\nchecking for X... libraries /usr/lib, headers\nchecking for ANSI C header files... (cached) yes\nchecking errno.h usability... yes\nchecking errno.h presence... yes\nchecking for errno.h... yes\nchecking limits.h usability... yes\nchecking limits.h presence... yes\nchecking for limits.h... yes\nchecking stddef.h usability... yes\nchecking stddef.h presence... yes\nchecking for stddef.h... yes\nchecking for stdlib.h... (cached) yes\nchecking for string.h... (cached) yes\nchecking for unistd.h... (cached) yes\nchecking for ld used by GCC... /usr/x86_64-w64-mingw32/bin/ld.exe\nchecking if the linker (/usr/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... yes\nchecking for shared library run path origin... done\nchecking for iconv... no, consider installing GNU libiconv\nchecking iconv.h usability... no\nchecking iconv.h presence... no\nchecking for iconv.h... no\nchecking for sin... yes\nchecking for deflate in -lz... yes\nchecking png.h usability... no\nchecking png.h presence... no\nchecking for png.h... no\nchecking libpng/png.h usability... no\nchecking libpng/png.h presence... no\nchecking for libpng/png.h... no\nchecking for png_create_read_struct in -lpng... yes\nchecking for freetype-config... /usr/bin/freetype-config\nchecking for FT_Init_FreeType in -lfreetype... no\nconfigure: WARNING: not found - disabling freetype support\nchecking ft2build.h usability... no\nchecking ft2build.h presence... no\nchecking for ft2build.h... no\nno\nchecking for FcInit in -lfontconfig... no\nchecking for jpeg_set_defaults in -ljpeg... no\nchecking for XpmReadFileToXpmImage in -lXpm... no\nchecking for the pthreads library -lpthreads... no\nchecking whether pthreads work without any flags... no\nchecking whether pthreads work with -Kthread... no\nchecking whether pthreads work with -kthread... no\nchecking for the pthreads library -llthread... no\nchecking whether pthreads work with -pthread... no\nchecking whether pthreads work with -pthreads... no\nchecking whether pthreads work with -mthreads... no\nchecking for the pthreads library -lpthread... yes\nchecking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE\nchecking if more special flags are required for pthreads... no\n\n** Configuration summary for gd 2.1.0:\n\n   Support for PNG library:          yes\n   Support for JPEG library:         no\n   Support for Freetype 2.x library: no\n   Support for Fontconfig library:   no\n   Support for Xpm library:          no\n   Support for pthreads:             yes\n\nchecking that generated files are newer than configure... done\nconfigure: creating ./config.status\nconfig.status: creating Makefile\nconfig.status: creating config/Makefile\nconfig.status: creating config/gdlib-config\nconfig.status: creating test/Makefile\nconfig.status: creating config.h\nconfig.status: executing depfiles commands\nconfig.status: executing libtool commands\nmake -C ../src/libgd/src CPPFLAGS=\"-I/home/J/svn/mingw64/src/zlib-1.2.7\" LDFLAGS=\"-L/home/J/svn/mingw64/install/win32-g++/bin/cygwin\"\nmake[1]: Entering directory `/home/J/svn/mingw64/src/libgd/src'\nmake  all-am\nmake[2]: Entering directory `/home/J/svn/mingw64/src/libgd/src'\n/bin/sh ./libtool --tag=CC    --mode=compile x86_64-w64-mingw32-gcc.exe -DHAVE_CONFIG_H -I.    -I/home/J/svn/mingw64/src/zlib-1.2.7  -fPIC -MT gd.lo -MD -MP -MF .deps/gd.Tpo -c -o gd.lo gd.c\nlibtool: compile:  x86_64-w64-mingw32-gcc.exe -DHAVE_CONFIG_H -I. -I/home/J/svn/mingw64/src/zlib-1.2.7 -fPIC -MT gd.lo -MD -MP -MF .deps/gd.Tpo -c gd.c -o gd.o\ngd.c:1:0: warning: -fPIC ignored for target (all code is position independent)\nmv -f .deps/gd.Tpo .deps/gd.Plo\n/bin/sh ./libtool --tag=CC    --mode=compile x86_64-w64-mingw32-gcc.exe -DHAVE_CONFIG_H -I.    -I/home/J/svn/mingw64/src/zlib-1.2.7  -fPIC -MT gd_color.lo -MD -MP -MF .deps/gd_color.Tpo -c -o gd_color.lo gd_color.c\nlibtool: compile:  x86_64-w64-mingw32-gcc.exe -DHAVE_CONFIG_H -I. -I/home/J/svn/mingw64/src/zlib-1.2.7 -fPIC -MT gd_color.lo -MD -MP -MF .deps/gd_color.Tpo -c gd_color.c -o gd_color.o\ngd_color.c:1:0: warning: -fPIC ignored for target (all code is position independent)\nmv -f .deps/gd_color.Tpo .deps/gd_color.Plo\n/bin/sh ./libtool --tag=CC    --mode=compile x86_64-w64-mingw32-gcc.exe -DHAVE_CONFIG_H -I.    -I/home/J/svn/mingw64/src/zlib-1.2.7  -fPIC -MT gd_color_map.lo -MD -MP -MF .deps/gd_color_map.Tpo -c -o gd_color_map.lo gd_color_map.c\nlibtool: compile:  x86_64-w64-mingw32-gcc.exe -DHAVE_CONFIG_H -I. -I/home/J/svn/mingw64/src/zlib-1.2.7 -fPIC -MT gd_color_map.lo -MD -MP -MF .deps/gd_color_map.Tpo -c gd_color_map.c -o gd_color_map.o\ngd_color_map.c:1:0: warning: -fPIC ignored for target (all code is position independent)\ngd_color_map.c:761:33: error: variable 'GD_COLOR_MAP_X11' definition is marked dllimport\ngd_color_map.c:761:33: warning: 'GD_COLOR_MAP_X11' redeclared without dllimport attribute: previous dllimport ignored\nMakefile:745: recipe for target `gd_color_map.lo' failed\nmake[2]: *** [gd_color_map.lo] Error 1\nmake[2]: Leaving directory `/home/J/svn/mingw64/src/libgd/src'\nMakefile:418: recipe for target `all' failed\nmake[1]: *** [all] Error 2\nmake[1]: Leaving directory `/home/J/svn/mingw64/src/libgd/src'\n../Makefiles/Makefile.libs:79: recipe for target `../install/win32-g++/bin/cygwin/libgd.a' failed\nmake: *** [../install/win32-g++/bin/cygwin/libgd.a] Error 2\n```\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/libgd/gd-libgd/issue/27\n- Originally reported by: Anonymous\n- Originally created on: Oct 19 2012\n"}}