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/go: diagnose 'SWIG version too old' #7983

Closed
slimsag opened this issue May 13, 2014 · 3 comments
Closed

cmd/go: diagnose 'SWIG version too old' #7983

slimsag opened this issue May 13, 2014 · 3 comments
Milestone

Comments

@slimsag
Copy link

slimsag commented May 13, 2014

What does 'go version' print?
go version devel +e09975f9c771 Mon May 12 20:45:31 2014 -0400 linux/amd64

What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. cd go/src
2. all.bash
3. cd go/misc/swig/stdio
4. go test .

What happened?
# testmain
x_wrap_fclose: unhandled relocation for _wrap_fclose (type 32 rtype 1)
x_wrap_fgetc: unhandled relocation for _wrap_fgetc (type 32 rtype 1)
x_wrap_fopen: unhandled relocation for _wrap_fopen (type 32 rtype 1)
FAIL    _/home/stephen/go/misc/swig/stdio [build failed]

What should have happened instead?
Obviously due to not having SWIG version 3, the test should not compile. But an error
telling me I have an invalid SWIG version should be given to me instead of the above
errors.

Please provide any additional information below.

I used swig from the Ubuntu 13.04 repos:
'swig -version' reports:
  SWIG Version 2.0.11
  Compiled with g++ [x86_64-unknown-linux-gnu]
  Configured options: +pcre
  Please see http://www.swig.org for reporting bugs and further information
@rsc
Copy link
Contributor

rsc commented May 21, 2014

Comment 1:

Labels changed: added release-go1.3maybe.

Status changed to Accepted.

@gopherbot
Copy link

Comment 2:

CL https://golang.org/cl/96540044 mentions this issue.

@ianlancetaylor
Copy link
Contributor

Comment 3:

This issue was closed by revision 708304b.

Status changed to Fixed.

@rsc rsc added this to the Go1.3 milestone 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