Make fails on Fedora 12 - Missing includes.

Bug #603139 reported by NickFiler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ocamlbricks
New
Undecided
Unassigned

Bug Description

I followed the Fedora 11 guide step by step. Made one small fix prior to building ocamlbricks to an include where a patch was found simply using Google. I have no experience of Ocaml. I was wanting to test Marionnet as an alternative to VNUML. It may be a tivial issue?

get this:

[nick@msa021 ocamlbricks]$ make
Just for debugging: PP_OPTION is "camlp4of"
Building meta.ml...
Success.
Manually pre-copying "CAMLP4/include_type_definitions_p4.ml"...
Manually pre-copying "CAMLP4/include_type_definitions_p4.mli"...
Manually pre-copying "CAMLP4/include_as_string_p4.ml"...
Manually pre-copying "CAMLP4/include_as_string_p4.mli"...
Manually pre-building "include_type_definitions_p4.cmi"...
make[1]: Entering directory `/local_home/nick/tmp/ocamlbricks'
ocamlc -c -I +camlp4 -pp camlp4of -o _build/include_type_definitions_p4.cmi CAMLP4/include_type_definitions_p4.mli
make[1]: Leaving directory `/local_home/nick/tmp/ocamlbricks'
Manually pre-building "include_type_definitions_p4.cmo"...
make[1]: Entering directory `/local_home/nick/tmp/ocamlbricks'
ocamlc -c -I +camlp4 -I _build/ -pp camlp4of -o _build/include_type_definitions_p4.cmo CAMLP4/include_type_definitions_p4.ml
make[1]: Leaving directory `/local_home/nick/tmp/ocamlbricks'
Manually pre-building "include_as_string_p4.cmi"...
make[1]: Entering directory `/local_home/nick/tmp/ocamlbricks'
ocamlc -c -I +camlp4 -pp camlp4of -o _build/include_as_string_p4.cmi CAMLP4/include_as_string_p4.mli
make[1]: Leaving directory `/local_home/nick/tmp/ocamlbricks'
Manually pre-building "include_as_string_p4.cmo"...
make[1]: Entering directory `/local_home/nick/tmp/ocamlbricks'
ocamlc -c -I +camlp4 -I _build/ -pp camlp4of -o _build/include_as_string_p4.cmo CAMLP4/include_as_string_p4.ml
make[1]: Leaving directory `/local_home/nick/tmp/ocamlbricks'
Building data...
Success: data were built.
make[1]: Entering directory `/local_home/nick/tmp/ocamlbricks'
GETTEXT/gettext-c-wrapper.c:25:22: error: mlvalues.h: No such file or directory
GETTEXT/gettext-c-wrapper.c:28:19: error: alloc.h: No such file or directory
GETTEXT/gettext-c-wrapper.c:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘value’
GETTEXT/gettext-c-wrapper.c:78: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘value’
make[1]: *** [_build/gettext-c-wrapper.o] Error 1
make[1]: Leaving directory `/local_home/nick/tmp/ocamlbricks'
make[1]: Entering directory `/local_home/nick/tmp/ocamlbricks'
EXTRA/does-process-exist-c-wrapper.c:27:22: error: mlvalues.h: No such file or directory
EXTRA/does-process-exist-c-wrapper.c:30:19: error: alloc.h: No such file or directory
EXTRA/does-process-exist-c-wrapper.c:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘value’
make[1]: *** [_build/does-process-exist-c-wrapper.o] Error 1
make[1]: Leaving directory `/local_home/nick/tmp/ocamlbricks'
make[1]: Entering directory `/local_home/nick/tmp/ocamlbricks'
EXTRA/waitpid-c-wrapper.c:25:27: error: caml/mlvalues.h: No such file or directory
EXTRA/waitpid-c-wrapper.c:26:24: error: caml/alloc.h: No such file or directory
EXTRA/waitpid-c-wrapper.c:27:25: error: caml/memory.h: No such file or directory
EXTRA/waitpid-c-wrapper.c:28:23: error: caml/fail.h: No such file or directory
EXTRA/waitpid-c-wrapper.c:29:27: error: caml/callback.h: No such file or directory
EXTRA/waitpid-c-wrapper.c:30:30: error: caml/unixsupport.h: No such file or directory
EXTRA/waitpid-c-wrapper.c:51: error: expected ‘)’ before ‘ml_flag’
EXTRA/waitpid-c-wrapper.c:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘value’
make[1]: *** [_build/waitpid-c-wrapper.o] Error 1
make[1]: Leaving directory `/local_home/nick/tmp/ocamlbricks'
make: *** [c-modules] Error 2
[nick@msa021 ocamlbricks]$
[nick@msa021 ocamlbricks]$ find . -name "mlvalues.h" -print
[nick@msa021 ocamlbricks]$ find /usr/include -name "mlvalues.h" -print
[nick@msa021 ocamlbricks]$ find /usr/local/include -name "mlvalues.h" -print
[nick@msa021 ocamlbricks]$

Revision history for this message
NickFiler (nick-cs) wrote :

I worked around this by eventually adding a link in /usr/include as below:

ln -s /usr/lib64/ocaml/caml ./caml

The above then compiles until:

make[3]: `_build/waitpid-c-wrapper.o' is up to date.
make[3]: Leaving directory `/local_home/nick/tmp/ocamlbricks'
Finished, 0 targets (0 cached) in 00:00:00.
+ /usr/local/bin/ocamlc.opt -c -thread -thread -I /usr/local/lib/ocaml -I +threads -I +lablgtk2 -I +camlp4 -I /usr/local/lib/ocaml/threads -I /usr/local/lib/ocaml/lablgtk2 -I /usr/local/lib/ocaml/camlp4 -pp camlp4of -I WIDGETS/LEDGRID -I SHELL -I CAMLP4 -I BASE -I CONFIGURATION -I DOT -I MARSHAL -I MAKE -I EXTRA -I GETTEXT -I STRUCTURES -I WIDGETS -o WIDGETS/LEDGRID/ledgrid.cmo WIDGETS/LEDGRID/ledgrid.ml
File "WIDGETS/LEDGRID/ledgrid.ml", line 48, characters 2-23:
Error: Unbound value GDraw.pixmap_from_xpm
Command exited with code 2.

Looks like a missing type definition therefore probably a missing library? First tried installing any graphings gtk, tk, X11 packages and devel packages. I already have the required library:

Package ocaml-lablgtk-2.14.0-2.fc12.x86_64 already installed and latest version
Package ocaml-lablgtk-devel-2.14.0-2.fc12.x86_64 already installed and latest version
Nothing to do

Is there another missing link or bit of setup?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.