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

ocamlobjinfo: missing symbol caml_plugin_header due to underscore #6747

Closed
vicuna opened this issue Jan 11, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@vicuna
Copy link

commented Jan 11, 2015

Original bug ID: 6747
Reporter: maverickwoo
Assigned to: @damiendoligez
Status: closed (set by @damiendoligez on 2015-05-12T00:43:55Z)
Resolution: fixed
Priority: normal
Severity: minor
Platform: Darwin
OS: OS X
OS Version: 10.9
Version: 4.02.1
Target version: 4.02.2+dev / +rc1
Fixed in version: 4.02.2+dev / +rc1
Category: tools (ocaml{lex,yacc,dep,debug,...})
Monitored by: @gasche

Bug description

Running ocamlobjinfo on any cmxs file in OS X reports:
Error: missing symbol caml_plugin_header

This is because the symbol has an extra underscore. Example output from nm:
00000000000051e0 D _caml_plugin_header

@vicuna

This comment has been minimized.

Copy link
Author

commented Apr 2, 2015

Comment author: @damiendoligez

I have a patch and I'd like to test it before I commit. Can you tell me how you got libbfd installed on your Mac OS X ?

@vicuna

This comment has been minimized.

Copy link
Author

commented Apr 5, 2015

Comment author: maverickwoo

I install binutils 2.24 through macports. The actual command line I used is the following since in my work I also need to parse elf and pe:

port install -s binutils configure.post_args=--enable-targets=i386-elf,i386-pe,x86_64-darwin

@vicuna

This comment has been minimized.

Copy link
Author

commented Apr 8, 2015

Comment author: @damiendoligez

Didn't you have to make some symlinks in /opt/local/lib to libiberty.a (and maybe some others, I don't remember)?

@vicuna

This comment has been minimized.

Copy link
Author

commented Apr 8, 2015

Comment author: maverickwoo

Indeed.

/opt/local/lib/gcc48/x86_64/libiberty.a is provided by: gcc48

and I have a symlink

/opt/local/lib/libiberty.a -> /opt/local/lib/gcc48/x86_64/libiberty.a

Thanks!

@vicuna

This comment has been minimized.

Copy link
Author

commented May 12, 2015

Comment author: @damiendoligez

Fixed in 4.02 branch (rev 16110).

@vicuna vicuna closed this May 12, 2015

@vicuna vicuna added the tools label Mar 14, 2019

@vicuna vicuna added this to the 4.02.2 milestone Mar 14, 2019

@vicuna vicuna added the bug label Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.