Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005715OCamlconfigure and build/installpublic2012-08-03 14:212015-12-11 19:08
Assigned To 
StatusclosedResolutionunable to reproduce 
PlatformOSOS Version
Product Version4.00.0 
Target VersionFixed in Version 
Summary0005715: disabling shared libraries does not work
DescriptionI tried to compile OCaml 4.00.0 with disabled shared libraries using:

# generated by ./configure --prefix /home/lefessan/.ocaml/roots/ocaml-4.00.0 -with-debug-runtime -no-shared-libs

and compilation failed at:

make[3]: Entering directory `/home/lefessan/devel/ocaml-4.00.0/otherlibs/labltk/lib'
../../../ -verbose -linkall -o labltktop -I ../support \
           ../../../compilerlibs/ocamlcommon.cma ../../../compilerlibs/ocamlbytecomp.cma ../../../compilerlibs/ocamltoplevel.cma \
           -I ../../../otherlibs/unix -I ../../../otherlibs/win32unix unix.cma \
           -I ../labltk -I ../camltk labltk.cma \
           -I ../../../otherlibs/str str.cma \
File "_none_", line 1:
Error: Error on dynamically loaded library: ../../../otherlibs/unix/ dynamic loading not supported on this platform
make[3]: *** [labltktop] Error 2

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
xleroy (administrator)
2012-08-04 10:16

"- Doctor, it hurts when I disable shared libraries.
- Well, don't do that, then."

More technically: something is weird indeed, since in your configuration, the various .cma libraries should contain the "force -custom mode" flag. You should use ocamlobjinfo to check unix.cma, labltk.cma and str.cma. If the "force custom" flag is not here, check how ocamlmklib was configured.

doligez (administrator)
2012-08-08 14:20

Which OS are you using? Did you do "make clean distclean" before configure?

On Mac OS X, I don't get any error. On Cygwin, I get a different error (because C libraries are passed with -ccopt instead of -cclib, and they get linked in the wrong order -- I'm going to fix that).
xleroy (administrator)
2012-09-24 13:42

In the absence of new data, let me mark this PR as "unable to reproduce".

- Issue History
Date Modified Username Field Change
2012-08-03 14:21 lefessan New Issue
2012-08-04 10:16 xleroy Note Added: 0007893
2012-08-04 10:16 xleroy Status new => feedback
2012-08-08 14:20 doligez Note Added: 0007933
2012-08-08 14:37 doligez Summary disabling shared libraries dows not work => disabling shared libraries does not work
2012-09-06 16:43 doligez Target Version => 4.00.1+dev
2012-09-24 13:42 xleroy Note Added: 0008153
2012-09-24 13:42 xleroy Status feedback => resolved
2012-09-24 13:42 xleroy Resolution open => unable to reproduce
2012-09-24 13:42 xleroy Target Version 4.00.1+dev =>
2015-12-11 19:08 xleroy Status resolved => closed
2017-02-23 16:38 doligez Category OCaml internal build/install (Makefiles, configure) => configure and build/install

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker