rthornton128 / goncurses

NCurses Library for Go
Other
383 stars 51 forks source link

Many build errors when trying to install Goncurses... #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Within my local Go workspace, ~/mygo/src, I do a "go get 
code.google.com/p/goncurses
2. I watch as the install process generates many errors
3.

What is the expected output? What do you see instead?
When installing Go packages, there is typically no output.
I am seeing the following:
code.google.com/p/goncurses/form.go:30: cannot assign *C.FIELD to 
new_field.field (type *C.struct_fieldnode) in multiple assignment
code.google.com/p/goncurses/form.go:44: cannot use f.field (type 
*C.struct_fieldnode) as type *C.FIELD in argument to _C2func_dup_field
code.google.com/p/goncurses/form.go:44: cannot assign *C.FIELD to 
new_field.field (type *C.struct_fieldnode) in multiple assignment
code.google.com/p/goncurses/form.go:56: cannot use f.field (type 
*C.struct_fieldnode) as type *C.FIELD in argument to _Cfunc_free_field
code.google.com/p/goncurses/form.go:79: cannot use f.field (type 
*C.struct_fieldnode) as type *C.FIELD in argument to _Cfunc_move_field
code.google.com/p/goncurses/form.go:86: cannot use f.field (type 
*C.struct_fieldnode) as type *C.FIELD in argument to _Cfunc_field_opts_on
code.google.com/p/goncurses/form.go:89: cannot use f.field (type 
*C.struct_fieldnode) as type *C.FIELD in argument to _Cfunc_field_opts_off
code.google.com/p/goncurses/form.go:99: cannot use f.field (type 
*C.struct_fieldnode) as type *C.FIELD in argument to _Cfunc_set_field_just
code.google.com/p/goncurses/form.go:105: cannot use f.field (type 
*C.struct_fieldnode) as type *C.FIELD in argument to _Cfunc_field_opts_off
code.google.com/p/goncurses/form.go:114: cannot use f.field (type 
*C.struct_fieldnode) as type *C.FIELD in argument to _Cfunc_field_opts_on
code.google.com/p/goncurses/form.go:114: too many errors

What version of the product are you using? On what operating system?
go get code.google.com/p/goncurses

I am using go version go1.3 linux/amd64, and presumably the latest version of 
Goncurses.

Please provide any additional information below.
Platform is x86-64 Manjaro Linux.

Original issue reported on code.google.com by peter.a...@gmail.com on 29 Jul 2014 at 3:19

GoogleCodeExporter commented 9 years ago
I'm having the same problem (Arch Linux x86-64 with go 1.3.1), but my programs 
build fine despite the errors on a go get.

Original comment by beatgam...@gmail.com on 18 Aug 2014 at 3:55

GoogleCodeExporter commented 9 years ago
Sorry, I was actually running go1.3. It looks like the problem is fixed with go 
1.3.1 .

I assume that this issue can now be closed.

Original comment by beatgam...@gmail.com on 18 Aug 2014 at 4:03

GoogleCodeExporter commented 9 years ago
peter.arnt, can you update to 1.3.1 and see if that fixes your issue?

Original comment by rthornto...@gmail.com on 18 Aug 2014 at 4:34

GoogleCodeExporter commented 9 years ago
Yes! Thanks.  I will give that a try.  I appreciate your efforts.

Kindest regards,

P.

Original comment by peter.a...@gmail.com on 18 Aug 2014 at 11:12

GoogleCodeExporter commented 9 years ago
Just tried installing goncurses again; Success!
Compiled several of the examples and they seem to work OK.
Bravo!

GO version 1.3.1
ncurses 5.9+
OS: Linux Mint 17, 64-bit, x86-64

Many thanks for your due diligence.

-P.

Original comment by peter.a...@gmail.com on 19 Aug 2014 at 5:36

GoogleCodeExporter commented 9 years ago
Not that I did much but you're very welcome and thank you for taking the time 
to file a bug report.

I shall consider the matter closed.

Marked as invalid as this was a Go/cgo issue.

Original comment by rthornto...@gmail.com on 20 Aug 2014 at 6:53