Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005962OCamldocumentationpublic2013-03-26 16:472014-07-30 20:47
Assigned To 
PlatformOSMacOSXOS Version
Product Version4.00.1 
Target Version4.02.0+devFixed in Version 
Summary0005962: ocamlmklib documentation is not accurate
DescriptionThe OCaml documentation (doc/ocaml/manual033.html#toc152) says that ocamlmklib performs

ocamlc -a -o zip.cma zip.cmo -dllib -lzip \
        -cclib -lzip -cclib -lz -ccopt -L/usr/local/zlib
ocamlopt -a -o zip.cmxa zip.cmx -cclib -lzip \
        -cclib -lzip -cclib -lz -ccopt -L/usr/local/zlib
gcc -shared -o zipstubs.o -lz -L/usr/local/zlib
ar rc libzip.a zipstubs.o

whereas on MacOSX, I have something like that:

MacBook-Pro-van-Harrie:_build vincent$ /usr/local/bin/ocamlmklib -o lib/tuntap_stubs lib/tuntap_stubs.o -v
+ cc -bundle -flat_namespace -undefined suppress -o lib/ lib/tuntap_stubs.o
+ ar rc lib/libtuntap_stubs.a lib/tuntap_stubs.o; ranlib lib/libtuntap_stubs.a

The "gcc -shared ..." line is very different on the mac: -bundle is used instead of -shared, etc.

The doc should be clearer about that since some people might rely on it to write their own build systems. It should clearly specify that the commands that will be issued by ocamlmklib might differ according to the architecture/system used.
Attached Files

- Relationships

-  Notes
doligez (administrator)
2014-07-30 20:47

Added a note in the docs (commit 15035).

- Issue History
Date Modified Username Field Change
2013-03-26 16:47 vbmithr New Issue
2013-06-20 10:29 doligez Status new => confirmed
2013-06-20 10:29 doligez Target Version => 4.01.0+dev
2013-07-28 23:43 gasche Tag Attached: junior_job
2013-08-19 16:23 doligez Target Version 4.01.0+dev => 4.01.1+dev
2014-05-25 20:20 doligez Target Version 4.01.1+dev => 4.02.0+dev
2014-07-30 20:47 doligez Note Added: 0011947
2014-07-30 20:47 doligez Status confirmed => closed
2014-07-30 20:47 doligez Resolution open => fixed
2017-02-23 16:35 doligez Category OCaml documentation => Documentation
2017-02-23 16:44 doligez Category Documentation => documentation

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker