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
ranlib not run on lib/ocaml/camlp4/*.a #2944
Comments
Comment author: administrator Dear Brian, Thanks for the report. I've added the appropriate calls to ranlib in the CVS -- Michel
|
Comment author: administrator Fixed by MM, 2004-07-28. |
Comment author: administrator Hi Michel, I've taken a look at the release308 CVS branch and I see the changes. =====
|
Comment author: administrator Hi Brian, baydemir@cis.upenn.edu wrote/écrivait (Thu, Jul 29, 2004 at 06:04:32PM +0200):
Yes, it looks like RANLIB is not defined in your installation. It Here is what should happen: normally, the ./configure calls Could you please check that there is a line grep-ing RANLIB in Thanks, -- Michel |
Original bug ID: 2944
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Brian Emre Aydemir
Version: 3.08.0
OS: Mac OS X (10.3.4)
Submission from: cs2437-119.austin.rr.com (24.243.7.119)
Problem: It appears that ranlib is not run on the *.a files installed into
lib/ocaml/camlp4.
To reproduce, I think the following works. Download OCaml 3.08.0 sources, build
(using "make world.opt"), and install. I used a prefix of /Users/emre/Install.
No other options were given to ./configure. At this point, note that
./configure finds ranlib, and that neither "make world.opt" and "make install"
list ranlib being run on anything installed into lib/ocaml/camlp4. Now try
linking against camlp4.cmxa, for example. ld complains that the table of
contents on camlp4.a is out of date, and linking fails:
ld: table of contents for archive: /Users/emre/Install/lib/ocaml/camlp4/camlp4.a
is out of date; rerun ranlib(1) (can't load from it)
=====
The exact problem I run into happens while compiling MetaPRL
(http://www.metaprl.org/). The particular command is below. Running ranlib as
the output suggests fixes the problem.
ocamlopt.opt -warn-error Ae -w Ae -pp "camlp4r -I
/Users/emre/Install/lib/ocaml/camlp4 -nolib" -inline 3 -I . -I
/Users/emre/Install/lib/ocaml/camlp4 -o macropp.opt unix.cmxa
/Users/emre/Install/lib/ocaml/camlp4/odyl.cmxa
/Users/emre/Install/lib/ocaml/camlp4/camlp4.cmxa
/Users/emre/Install/lib/ocaml/camlp4/pr_dump.cmx
/Users/emre/Install/lib/ocaml/camlp4/pa_o.cmx pa_macro.cmx macro_main.cmx -cclib
-L/sw/lib -cclib -lcrypto -cclib -lssl -cclib -lreadline -cclib -lncurses
-linkall
ld: table of contents for archive: /Users/emre/Install/lib/ocaml/camlp4/camlp4.a
is out of date; rerun ranlib(1) (can't load from it)
ld: table of contents for archive: /Users/emre/Install/lib/ocaml/camlp4/odyl.a
is out of date; rerun ranlib(1) (can't load from it)
ld: warning prebinding disabled because dependent library:
/usr/lib/system/libmathCommon.A.dylib can't be searched
Error during linking
The text was updated successfully, but these errors were encountered: