Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation issue with ui/cdrv.go #6

Open
jbuchbinder opened this issue Oct 19, 2012 · 3 comments
Open

Compilation issue with ui/cdrv.go #6

jbuchbinder opened this issue Oct 19, 2012 · 3 comments

Comments

@jbuchbinder
Copy link

Compiling with "tip" golang ( go version devel +fc8137c00f9c Sat Oct 13 19:05:22 2012 +0800 ), this comes up:

$ go build
# _/code/go/go-ui/ui
In file included from $WORK/_/code/go/go-ui/ui/_obj/_cgo_export.c:2:0:
cdrv.go:62:14: error: conflicting types for ‘drv_result’
cdrv.go:24:13: note: previous declaration of ‘drv_result’ was here
cdrv.go:66:14: error: conflicting types for ‘drv_callback’
cdrv.go:12:13: note: previous declaration of ‘drv_callback’ was here

Running Ubuntu 12.04, with qt package version4:4.8.1-0ubuntu4.2 installed.

@ghost
Copy link

ghost commented Dec 30, 2012

I have two machines here which are both powered by current Debian Wheezy and are using the identical configuration/installed software (if it makes sense here), the only difference is architecture (i686 and amd64). The described above behaviour could be reproduced only with "tip" golang under amd64 system. It could not be reproduced when using "tip" golang under i686 and also when using golang v1.0.3 under amd64.

@asmundstavdahl
Copy link

This issue still exists with go1.2.1. Which go version did was used during go-ui's development?

[splitlocked@Portarch ui]$ uname -a
Linux Portarch 3.13.6-1-ARCH #1 SMP PREEMPT Fri Mar 7 22:47:48 CET 2014 x86_64 GNU/Linux
[splitlocked@Portarch ui]$ go version
go version go1.2.1 linux/amd64
[splitlocked@Portarch ui]$ go install
# github.com/visualfc/go-ui/ui
In file included from $WORK/github.com/visualfc/go-ui/ui/_obj/_cgo_export.c:2:0:
./cdrv.go:64:14: error: conflicting types for ‘drv_result’
  Data uintptr
              ^
./cdrv.go:25:13: note: previous declaration of ‘drv_result’ was here
  extern int drv_result(void*,int);
             ^
./cdrv.go:68:14: error: conflicting types for ‘drv_callback’

              ^
./cdrv.go:13:13: note: previous declaration of ‘drv_callback’ was here
  extern int drv_callback(void*,void*,void*,void*,void*);
             ^

@vanloswang
Copy link

I meet this issue when use go-1.4.1 on Windows 7 64 bit system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants