Package Details: camlpdf 2.6.1-1

Git Clone URL: (read-only, click to copy)
Package Base: camlpdf
Description: Coherent Graphics OCaml library for reading, writing and modifying PDF files
Upstream URL:
Licenses: LGPL
Submitter: oriba
Maintainer: severach
Last Packager: severach
Votes: 9
Popularity: 0.002611
First Submitted: 2015-01-02 14:03 (UTC)
Last Updated: 2023-09-19 02:27 (UTC)

Dependencies (2)

Required by (1)

Sources (1)

Latest Comments

oriba commented on 2023-05-22 14:11 (UTC)

There is a solution by using a certain tagged version of camlpdf, that should work:

Therefore this AUR-package should be updated to fix the problem.

oriba commented on 2023-05-20 11:26 (UTC)

@JohnRobson: The Genlex module has been removed in OCaml 5.0: So this must be fixed in camlpdf.

JohnRobson commented on 2023-05-20 03:43 (UTC)

File "", line 5, characters 4-14:
5 |   | Genlex.Kwd s -> Printf.printf "KEYWORD: %s\n" s
Error: Unbound module Genlex
make[1]: *** [OCamlMakefile:1076: pdfafm.cmo] Error 2
make: *** [OCamlMakefile:792: byte-code-library] Error 2
==> ERROR: A failure occurred in build().
/usr/share/makepkg/util/ line 51: QUIET: unbound variable
/usr/bin/makepkg: line 131: logpipe: unbound variable
 -> error making: camlpdf-exit status 1
 -> Failed to install the following packages. Manual intervention is required:
camlpdf - exit status 1

alerque commented on 2020-03-06 07:24 (UTC) (edited on 2020-03-06 07:24 (UTC) by alerque)

PSA: I've started hosting this as a prebuilt package in my repository for those that want to install them using pacman without messing around with building from the AUR.

Icecube63 commented on 2019-10-14 15:04 (UTC)

Have the same old error:

File "", line 1227, characters 25-54: 1227 | else if n >= 1000 then implode (many 'M' (n / 1000)) ^ roman (n mod 1000) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Error: This expression has type bytes but an expression was expected of type string make[1]: [OCamlMakefile:1076: pdfutil.cmx] Fehler 2 make[1]: Verzeichnis „/home/klaus/.cache/pikaur/build/camlpdf/src/camlpdf-2.2-patchlevel1“ wird verlassen make: [OCamlMakefile:801: native-code-library] Fehler 2

MangoMan commented on 2019-04-24 09:35 (UTC)

Just type into the terminal export OCAMLPARAM="safe-string=0,_". that should do the trick

KenjiTakahashi commented on 2019-03-15 09:39 (UTC)

You can fix compilation by setting env var OCAMLPARAM="safe-string=0,_".

oriba commented on 2018-11-07 15:17 (UTC)

Someone who wants to adopt the package?

flying-sheep commented on 2018-01-25 15:20 (UTC)

Doesn’t build:

ocamlfind ocamlopt -package bigarray -c -g -annot -w -3 File "", line 1227, characters 25-54: Error: This expression has type bytes but an expression was expected of type string