Chris00 / ocaml-cairo

Binding to Cairo, a 2D Vector Graphics Library.
GNU Lesser General Public License v3.0
54 stars 8 forks source link

Variables declared without extern in cairo_ocaml.h cause FTBFS #23

Closed glondu closed 3 years ago

glondu commented 4 years ago

/usr/lib/ocaml/cairo2/cairo_ocaml.h declares variables without extern, causing multiple definitions if this file is included in multiple .c files, which is an error with gcc-10. This causes lablgtk3 (which includes cairo_ocaml.h) to have multiple definitions, which in turn causes why3 to FTBFS.

Reported in Debian as: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=968427

glondu commented 4 years ago

Tentative patch: https://salsa.debian.org/ocaml-team/ocaml-cairo2/-/raw/master/debian/patches/0002-Fix-multiple-definitions-of-variables.patch