Project

General

Profile

Actions

Bug #1450

closed

Compatibility with Ocaml 3.12

Added by Alexey Khoroshilov over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
-
Target version:
Start date:
06/28/2011
Due date:
07/06/2011
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Published in build:
eb82645

Description

Our tools cannot be built with ocaml 3.12.
The main issue is absence of a library linked with '-lstr' option.
Starting from ocaml-3.12.0 -lcamlstr should be used instead of -lstr.

For cil there is an upstream patch:

 cilly: $(OBJDIR)/cilly$(EXE)
 $(OBJDIR)/cilly$(EXE) : $(CILLY_MODULES:%=$(OBJDIR)/%.$(CMO)) \
                         $(CILLY_CMODULES:%=$(OBJDIR)/%.$(CMC))
     @$(NARRATIVE) "Linking $(COMPILETOWHAT) $@ $(LINKMSG)" 
     $(AT)$(CAMLLINK) -verbose -o $@ \
                     $(CILLY_LIBS:%=%.$(CMXA)) \
-                    $(CILLY_LIBS:%=-cclib -l%) \
                     $^

For blast may be useful Debian patch:

--- a/configure
+++ b/configure
@@ -680,6 +680,15 @@ if [ $enable_apache -gt 0 ]; then
     exit 1
     fi

+    case `ocamlc -version` in
+        3.12*)
+            str_stubs=-lcamlstr
+            ;;
+        *)
+            str_stubs=-lstr
+            ;;
+    esac
+
 fi

-APACHE_OCAMLLIBS = -lcamlrun -ltermcap -lunix -lstr
+APACHE_OCAMLLIBS = -lcamlrun -ltermcap -lunix $str_stubs

Actions

Also available in: Atom PDF