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

Build failure on 64 bit linux #9

Open
ghost opened this issue Jul 29, 2010 · 0 comments
Open

Build failure on 64 bit linux #9

ghost opened this issue Jul 29, 2010 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 29, 2010

Building Go-SDL fails consistently on my machine. Even after updating Go to the latest release and making sure all requirements are met (sdl libs).

The following are the errors I get when make hits the sdl package:

sdl.go:49[sdl.cgo1.go:51]: VideoInfo redeclared in this block previous declaration at constants.6.go:397
sdl.go:66[sdl.cgo1.go:68]: undefined: internalVideoInfo

After some digging, I found that the problem is in the auto-generation of the constant.6.go file.
The internalVideoInfo struct is supposed to be generated in this file, but it is only present in the constants.8.go file. Not in the constants.6.go file (which is my arch).

the 6.go file contains a (duplicate) 'VideoInfo' struct:

type VideoInfo struct {
    Pad0        [2]byte
    UnusedBits3 uint16
    Video_mem   uint32
    Vfmt        *PixelFormat
    Current_w   int32
    Current_h   int32
}

Where it should be having:

type internalVideoInfo struct {
    Flags     uint32
    Video_mem uint32
    Vfmt      *PixelFormat
    Current_w int32
    Current_h int32
}

Manually replacing it fixes the problem and the build works as intended, but I thought I'd mention it here so it can be addressed.

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

0 participants