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

cmd/ld: "duplicate symbol reference" GOARCH 386 #8702

Closed
d2g opened this issue Sep 11, 2014 · 3 comments
Closed

cmd/ld: "duplicate symbol reference" GOARCH 386 #8702

d2g opened this issue Sep 11, 2014 · 3 comments
Milestone

Comments

@d2g
Copy link

d2g commented Sep 11, 2014

What does 'go version' print?
go version go1.3.1 windows/386

What steps reproduce the problem?
Build the following:
package main

import (
    "fmt"
    _ "github.com/d2g/unqlitego"
    _ "github.com/mattn/go-sqlite3"
)

func main() {
    fmt.Println("Erm Compile?")
}

What happened?
duplicate symbol reference: __moddi3 in both github.com/d2g/unqlitego( .text) and
github.com/mattn/go-sqlite3(.text)

What should have happened instead?
Build.

Please provide any additional information below.
Same issue on 1.2 Windows/386
Works with AMD64 GOARCH

Compiles if you remove either library.

`go get https://github.com/d2g/issue-duplicate_symbol`

StackOverflow:
http://stackoverflow.com/questions/25782708/why-do-i-get-duplicate-symbol-reference-when-including-two-cgo-based-libaries
@d2g
Copy link
Author

d2g commented Sep 11, 2014

Comment 1:

Should be `go get github.com/d2g/issue-duplicate_symbol`

@ianlancetaylor
Copy link
Contributor

Comment 2:

Labels changed: added repo-main, release-go1.4, os-windows.

@rsc
Copy link
Contributor

rsc commented Sep 26, 2014

Comment 3:

8756 is a simpler reproduction case. I am pretty sure they are the same.

Status changed to Duplicate.

Merged into issue #8756.

@rsc rsc added this to the Go1.4 milestone Apr 14, 2015
@rsc rsc removed the release-go1.4 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants