Bug 95333

Summary: cairo compilation messed up with opam prefix "4.03.0+flambda"
Product: cairo Reporter: william <r.3>
Component: generalAssignee: Chris Wilson <chris>
Status: RESOLVED INVALID QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.2.0   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description william 2016-05-10 07:56:12 UTC
Hello

compilation of cairo fails with opam switch 4.03.0+flambda.
Cairo/autoconf looks for lablgtk2 directory, which is in my case /home/src/Ocaml/opam-ocaml-4.03.0/4.03.0+flambda/lib/lablgtk2/.
The problem seems to be the "+" (that comes from opam switch name), which seems to be translated to some other standard path name :

ocamlc.opt -ccopt "-g -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/src/Ocaml/opam-ocaml-4.03.0/4.03.0/home/src/Ocaml/opam-ocaml-4.03.0/4.03.0+flambda/lib/ocaml/flambda/lib/lablgtk2/" ml_cairo_lablgtk.c
ml_cairo_lablgtk.c:14:22: fatal error: wrappers.h: Aucun fichier ou dossier de ce type
#include "wrappers.h"

Best regards
Comment 1 Uli Schlachter 2016-05-14 07:28:36 UTC
I have no idea what you are compiling, but cairo is neither written in ocaml, nor does it contain files with names like wrappers.h or ml_cairo_lablgtk.c. Also, I have no clue what opam, lablgtk2 or flambda is.

What are you trying to compile and where did you get that code from? Why don't you direct your report in that direction instead?
Comment 2 Uli Schlachter 2016-05-14 07:30:32 UTC
Google suggests that you might be looking at https://cgit.freedesktop.org/cairo-ocaml/ (which had its last activity in 2012). If so, please write a mail to oandrieu@gmail.com.
Comment 3 william 2016-05-17 07:59:43 UTC
you are right, sorry

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.