{"action":"created","issue":{"url":"https://api.github.com/repos/gographics/imagick/issues/34","labels_url":"https://api.github.com/repos/gographics/imagick/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/gographics/imagick/issues/34/comments","events_url":"https://api.github.com/repos/gographics/imagick/issues/34/events","html_url":"https://github.com/gographics/imagick/issues/34","id":80009805,"number":34,"title":"Install imagick error in mac osx","user":{"login":"EricYT","id":4412699,"avatar_url":"https://avatars.githubusercontent.com/u/4412699?v=3","gravatar_id":"","url":"https://api.github.com/users/EricYT","html_url":"https://github.com/EricYT","followers_url":"https://api.github.com/users/EricYT/followers","following_url":"https://api.github.com/users/EricYT/following{/other_user}","gists_url":"https://api.github.com/users/EricYT/gists{/gist_id}","starred_url":"https://api.github.com/users/EricYT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EricYT/subscriptions","organizations_url":"https://api.github.com/users/EricYT/orgs","repos_url":"https://api.github.com/users/EricYT/repos","events_url":"https://api.github.com/users/EricYT/events{/privacy}","received_events_url":"https://api.github.com/users/EricYT/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-24T01:27:15Z","updated_at":"2015-07-24T21:28:28Z","closed_at":null,"body":"When I installed the imagick in osx,I got these errors.Thanks for you help.\r\n```c++\r\neric:go yutao$ go get github.com/gographics/imagick/imagick\r\n# github.com/gographics/imagick/imagick\r\ngcc did not produce error at completed:1\r\non input:\r\n#line 7 \"/Users/yutao/Documents/go/src/github.com/gographics/imagick/imagick/channel_type.go\"\r\n\r\n#include <wand/MagickWand.h>\r\n\r\n\r\n#include <stddef.h> /* for ptrdiff_t and size_t below */\r\n\r\n/* Define intgo when compiling with GCC.  */\r\ntypedef ptrdiff_t intgo;\r\n\r\ntypedef struct { char *p; intgo n; } _GoString_;\r\ntypedef struct { char *p; intgo n; intgo c; } _GoBytes_;\r\n_GoString_ GoString(char *p);\r\n_GoString_ GoStringN(char *p, int l);\r\n_GoBytes_ GoBytes(void *p, int n);\r\nchar *CString(_GoString_);\r\nvoid *_CMalloc(size_t);\r\n#line 1 \"not-declared\"\r\nvoid __cgo_f_1_1(void) { __typeof__(AllChannels) *__cgo_undefined__; }\r\n#line 1 \"not-type\"\r\nvoid __cgo_f_1_2(void) { AllChannels *__cgo_undefined__; }\r\n#line 1 \"not-const\"\r\nvoid __cgo_f_1_3(void) { enum { __cgo__undefined__ = (AllChannels)*1 }; }\r\n#line 2 \"not-declared\"\r\nvoid __cgo_f_2_1(void) { __typeof__(AlphaChannel) *__cgo_undefined__; }\r\n#line 2 \"not-type\"\r\nvoid __cgo_f_2_2(void) { AlphaChannel *__cgo_undefined__; }\r\n#line 2 \"not-const\"\r\nvoid __cgo_f_2_3(void) { enum { __cgo__undefined__ = (AlphaChannel)*1 }; }\r\n#line 3 \"not-declared\"\r\nvoid __cgo_f_3_1(void) { __typeof__(BlackChannel) *__cgo_undefined__; }\r\n#line 3 \"not-type\"\r\nvoid __cgo_f_3_2(void) { BlackChannel *__cgo_undefined__; }\r\n#line 3 \"not-const\"\r\nvoid __cgo_f_3_3(void) { enum { __cgo__undefined__ = (BlackChannel)*1 }; }\r\n#line 4 \"not-declared\"\r\nvoid __cgo_f_4_1(void) { __typeof__(BlueChannel) *__cgo_undefined__; }\r\n#line 4 \"not-type\"\r\nvoid __cgo_f_4_2(void) { BlueChannel *__cgo_undefined__; }\r\n#line 4 \"not-const\"\r\nvoid __cgo_f_4_3(void) { enum { __cgo__undefined__ = (BlueChannel)*1 }; }\r\n#line 5 \"not-declared\"\r\nvoid __cgo_f_5_1(void) { __typeof__(CompositeChannels) *__cgo_undefined__; }\r\n#line 5 \"not-type\"\r\nvoid __cgo_f_5_2(void) { CompositeChannels *__cgo_undefined__; }\r\n#line 5 \"not-const\"\r\nvoid __cgo_f_5_3(void) { enum { __cgo__undefined__ = (CompositeChannels)*1 }; }\r\n#line 6 \"not-declared\"\r\nvoid __cgo_f_6_1(void) { __typeof__(CyanChannel) *__cgo_undefined__; }\r\n#line 6 \"not-type\"\r\nvoid __cgo_f_6_2(void) { CyanChannel *__cgo_undefined__; }\r\n#line 6 \"not-const\"\r\nvoid __cgo_f_6_3(void) { enum { __cgo__undefined__ = (CyanChannel)*1 }; }\r\n#line 7 \"not-declared\"\r\nvoid __cgo_f_7_1(void) { __typeof__(DefaultChannels) *__cgo_undefined__; }\r\n#line 7 \"not-type\"\r\nvoid __cgo_f_7_2(void) { DefaultChannels *__cgo_undefined__; }\r\n#line 7 \"not-const\"\r\nvoid __cgo_f_7_3(void) { enum { __cgo__undefined__ = (DefaultChannels)*1 }; }\r\n#line 8 \"not-declared\"\r\nvoid __cgo_f_8_1(void) { __typeof__(GrayChannel) *__cgo_undefined__; }\r\n#line 8 \"not-type\"\r\nvoid __cgo_f_8_2(void) { GrayChannel *__cgo_undefined__; }\r\n#line 8 \"not-const\"\r\nvoid __cgo_f_8_3(void) { enum { __cgo__undefined__ = (GrayChannel)*1 }; }\r\n#line 9 \"not-declared\"\r\nvoid __cgo_f_9_1(void) { __typeof__(GrayChannels) *__cgo_undefined__; }\r\n#line 9 \"not-type\"\r\nvoid __cgo_f_9_2(void) { GrayChannels *__cgo_undefined__; }\r\n#line 9 \"not-const\"\r\nvoid __cgo_f_9_3(void) { enum { __cgo__undefined__ = (GrayChannels)*1 }; }\r\n#line 10 \"not-declared\"\r\nvoid __cgo_f_10_1(void) { __typeof__(GreenChannel) *__cgo_undefined__; }\r\n#line 10 \"not-type\"\r\nvoid __cgo_f_10_2(void) { GreenChannel *__cgo_undefined__; }\r\n#line 10 \"not-const\"\r\nvoid __cgo_f_10_3(void) { enum { __cgo__undefined__ = (GreenChannel)*1 }; }\r\n#line 11 \"not-declared\"\r\nvoid __cgo_f_11_1(void) { __typeof__(IndexChannel) *__cgo_undefined__; }\r\n#line 11 \"not-type\"\r\nvoid __cgo_f_11_2(void) { IndexChannel *__cgo_undefined__; }\r\n#line 11 \"not-const\"\r\nvoid __cgo_f_11_3(void) { enum { __cgo__undefined__ = (IndexChannel)*1 }; }\r\n#line 12 \"not-declared\"\r\nvoid __cgo_f_12_1(void) { __typeof__(MagentaChannel) *__cgo_undefined__; }\r\n#line 12 \"not-type\"\r\nvoid __cgo_f_12_2(void) { MagentaChannel *__cgo_undefined__; }\r\n#line 12 \"not-const\"\r\nvoid __cgo_f_12_3(void) { enum { __cgo__undefined__ = (MagentaChannel)*1 }; }\r\n#line 13 \"not-declared\"\r\nvoid __cgo_f_13_1(void) { __typeof__(OpacityChannel) *__cgo_undefined__; }\r\n#line 13 \"not-type\"\r\nvoid __cgo_f_13_2(void) { OpacityChannel *__cgo_undefined__; }\r\n#line 13 \"not-const\"\r\nvoid __cgo_f_13_3(void) { enum { __cgo__undefined__ = (OpacityChannel)*1 }; }\r\n#line 14 \"not-declared\"\r\nvoid __cgo_f_14_1(void) { __typeof__(RGBChannels) *__cgo_undefined__; }\r\n#line 14 \"not-type\"\r\nvoid __cgo_f_14_2(void) { RGBChannels *__cgo_undefined__; }\r\n#line 14 \"not-const\"\r\nvoid __cgo_f_14_3(void) { enum { __cgo__undefined__ = (RGBChannels)*1 }; }\r\n#line 15 \"not-declared\"\r\nvoid __cgo_f_15_1(void) { __typeof__(RedChannel) *__cgo_undefined__; }\r\n#line 15 \"not-type\"\r\nvoid __cgo_f_15_2(void) { RedChannel *__cgo_undefined__; }\r\n#line 15 \"not-const\"\r\nvoid __cgo_f_15_3(void) { enum { __cgo__undefined__ = (RedChannel)*1 }; }\r\n#line 16 \"not-declared\"\r\nvoid __cgo_f_16_1(void) { __typeof__(SyncChannels) *__cgo_undefined__; }\r\n#line 16 \"not-type\"\r\nvoid __cgo_f_16_2(void) { SyncChannels *__cgo_undefined__; }\r\n#line 16 \"not-const\"\r\nvoid __cgo_f_16_3(void) { enum { __cgo__undefined__ = (SyncChannels)*1 }; }\r\n#line 17 \"not-declared\"\r\nvoid __cgo_f_17_1(void) { __typeof__(TrueAlphaChannel) *__cgo_undefined__; }\r\n#line 17 \"not-type\"\r\nvoid __cgo_f_17_2(void) { TrueAlphaChannel *__cgo_undefined__; }\r\n#line 17 \"not-const\"\r\nvoid __cgo_f_17_3(void) { enum { __cgo__undefined__ = (TrueAlphaChannel)*1 }; }\r\n#line 18 \"not-declared\"\r\nvoid __cgo_f_18_1(void) { __typeof__(UndefinedChannel) *__cgo_undefined__; }\r\n#line 18 \"not-type\"\r\nvoid __cgo_f_18_2(void) { UndefinedChannel *__cgo_undefined__; }\r\n#line 18 \"not-const\"\r\nvoid __cgo_f_18_3(void) { enum { __cgo__undefined__ = (UndefinedChannel)*1 }; }\r\n#line 19 \"not-declared\"\r\nvoid __cgo_f_19_1(void) { __typeof__(YellowChannel) *__cgo_undefined__; }\r\n#line 19 \"not-type\"\r\nvoid __cgo_f_19_2(void) { YellowChannel *__cgo_undefined__; }\r\n#line 19 \"not-const\"\r\nvoid __cgo_f_19_3(void) { enum { __cgo__undefined__ = (YellowChannel)*1 }; }\r\n#line 1 \"completed\"\r\nint __cgo__1 = __cgo__2;\r\n\r\nfull error output:\r\nnot-type:1:39: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_1_2(void) { AllChannels *__cgo_undefined__; }\r\n                                      ^\r\nnot-type:2:40: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_2_2(void) { AlphaChannel *__cgo_undefined__; }\r\n                                       ^\r\nnot-type:3:40: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_3_2(void) { BlackChannel *__cgo_undefined__; }\r\n                                       ^\r\nnot-type:4:39: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_4_2(void) { BlueChannel *__cgo_undefined__; }\r\n                                      ^\r\nnot-type:5:45: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_5_2(void) { CompositeChannels *__cgo_undefined__; }\r\n                                            ^\r\nnot-type:6:39: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_6_2(void) { CyanChannel *__cgo_undefined__; }\r\n                                      ^\r\nnot-type:7:43: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_7_2(void) { DefaultChannels *__cgo_undefined__; }\r\n                                          ^\r\nnot-type:8:39: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_8_2(void) { GrayChannel *__cgo_undefined__; }\r\n                                      ^\r\nnot-type:9:40: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_9_2(void) { GrayChannels *__cgo_undefined__; }\r\n                                       ^\r\nnot-type:10:41: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_10_2(void) { GreenChannel *__cgo_undefined__; }\r\n                                        ^\r\nnot-type:11:41: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_11_2(void) { IndexChannel *__cgo_undefined__; }\r\n                                        ^\r\nnot-type:12:43: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_12_2(void) { MagentaChannel *__cgo_undefined__; }\r\n                                          ^\r\nnot-type:13:43: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_13_2(void) { OpacityChannel *__cgo_undefined__; }\r\n                                          ^\r\nnot-type:14:40: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_14_2(void) { RGBChannels *__cgo_undefined__; }\r\n                                       ^\r\nnot-type:15:39: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_15_2(void) { RedChannel *__cgo_undefined__; }\r\n                                      ^\r\nnot-type:16:41: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_16_2(void) { SyncChannels *__cgo_undefined__; }\r\n                                        ^\r\nnot-type:17:45: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_17_2(void) { TrueAlphaChannel *__cgo_undefined__; }\r\n                                            ^\r\nnot-type:18:45: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_18_2(void) { UndefinedChannel *__cgo_undefined__; }\r\n                                            ^\r\nnot-type:19:42: error: use of undeclared identifier '__cgo_undefined__'\r\nvoid __cgo_f_19_2(void) { YellowChannel *__cgo_undefined__; }\r\n                                         ^\r\nfatal error: too many errors emitted, stopping now [-ferror-limit=]\r\n20 errors generated.\r\n```"},"comment":{"url":"https://api.github.com/repos/gographics/imagick/issues/comments/124730697","html_url":"https://github.com/gographics/imagick/issues/34#issuecomment-124730697","issue_url":"https://api.github.com/repos/gographics/imagick/issues/34","id":124730697,"user":{"login":"justinfx","id":282566,"avatar_url":"https://avatars.githubusercontent.com/u/282566?v=3","gravatar_id":"","url":"https://api.github.com/users/justinfx","html_url":"https://github.com/justinfx","followers_url":"https://api.github.com/users/justinfx/followers","following_url":"https://api.github.com/users/justinfx/following{/other_user}","gists_url":"https://api.github.com/users/justinfx/gists{/gist_id}","starred_url":"https://api.github.com/users/justinfx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinfx/subscriptions","organizations_url":"https://api.github.com/users/justinfx/orgs","repos_url":"https://api.github.com/users/justinfx/repos","events_url":"https://api.github.com/users/justinfx/events{/privacy}","received_events_url":"https://api.github.com/users/justinfx/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T21:28:28Z","updated_at":"2015-07-24T21:28:28Z","body":"Did you ever end up getting this to build? I am not sure exactly what the problem is"}}