Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005962OCamlOCaml documentationpublic2013-03-26 16:472013-08-19 16:23
Reportervbmithr 
Assigned To 
PrioritynormalSeverityminorReproducibilityN/A
StatusconfirmedResolutionopen 
PlatformOSMacOSXOS Version
Product Version4.00.1 
Target Version4.01.1+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 dllzip.so 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/dlltuntap_stubs.so 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.
Tagsjunior_job
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- 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


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker