andelf / go-curl

golang curl(libcurl) binding.
Apache License 2.0
478 stars 129 forks source link

Cannot compile after march 14 update #67

Closed frozentech closed 4 years ago

frozentech commented 5 years ago

/go/src/github.com/andelf/go-curl/easy.go:408:22: identifier "_Ctype_struct_curl_slist" may conflict with identifiers generated by cgo

rilutham commented 5 years ago

I have the same issue with @frozentech

frozentech commented 5 years ago

Downgrade your go lang to 1.11.6. It works for me when I downgraded. I think the current go-curl does not work with 1.12

rilutham commented 5 years ago

Thanks @frozentech

parkerlreed commented 4 years ago

Any update on this? Downgrading a package doesnt seem like an ideal option

vaneeswaran commented 4 years ago

Till Go version 1.11.13 the issue is not seen. I guess the issue is introduced in 1.12

vaneeswaran commented 4 years ago

Hi team, any updates on the issue.

Ullaakut commented 4 years ago

@vaneeswaran There is a fix from @rilutham, you can use his fork in the meantime, until the PR is merged.

https://github.com/rilutham/go-curl/tree/fix-identifier-conflict https://github.com/andelf/go-curl/pull/68

vaneeswaran commented 4 years ago

Thanks @Ullaakut

kennkamau commented 4 years ago

Screenshot from 2020-05-25 07-34-36

Problem still persist in 1.14

Details: ubuntu 19.10. go 1.14