Package Details: camlidl 1.12-2

Git Clone URL: (read-only, click to copy)
Package Base: camlidl
Description: A stub code generator and COM binding for Objective Caml (OCaml)
Upstream URL:
Licenses: LGPL2.1
Submitter: simon04
Maintainer: pricechrispy
Last Packager: pricechrispy
Votes: 46
Popularity: 0.000000
First Submitted: 2010-01-23 12:37 (UTC)
Last Updated: 2024-03-25 01:09 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

ArchLinux-User commented on 2024-03-23 02:13 (UTC)

To avoid the "skipped patch" error, git apply must be invoked with the --directory flag, specified as a path relative to the base of the repository (as explained here). The correct command is git apply -v --directory "src/$pkgname-$pkgname$_pkgver" patch.diff.

The complete build() function in PKGBUILD then becomes:

build() {
  cp patch.diff "$srcdir/$pkgname-$pkgname$_pkgver"

  cd "$srcdir/$pkgname-$pkgname$_pkgver"
  cp config/Makefile.unix config/Makefile

  # git apply -v patch.diff
  git apply -v --directory "src/$pkgname-$pkgname$_pkgver" patch.diff

  make all

Technically, patches should be applied in a PKGBUILD's prepare() function instead (see the relevant wiki section), but the above will work as well.

iandall commented on 2024-02-28 04:35 (UTC)

git apply -v just says "Skipped patch 'lib/Makefile'"

Git apply seems to need the timestamp after the filename in the patch header.

pricechrispy commented on 2024-02-26 19:49 (UTC)

@presidentwolf Would you elaborate on your build environment and what git says about applying the diff? As-is this works for me in chroot devtools

presidentwolf commented on 2024-02-26 19:22 (UTC)

patch.diff isn't applying which is then failing the build.

patch -p1 < patch.diff works better for me.

henryb commented on 2023-06-05 01:32 (UTC)

Please update to 1.11

1.09 is currently failing to build:

make[1]: Entering directory '/home/admin/Downloads/camlidl/src/camlidl-camlidl109/runtime'
ocamlc -g -ccopt "-Wall -g" idlalloc.c
idlalloc.c: In function ‘camlidl_find_enum’:
idlalloc.c:35:3: warning: implicit declaration of function ‘invalid_argument’; did you mean ‘caml_invalid_argument’? [-Wimplicit-function-declaration]
   35 |   invalid_argument(errmsg);
      |   ^~~~~~~~~~~~~~~~
      |   caml_invalid_argument
idlalloc.c: In function ‘camlidl_alloc_flag_list’:
idlalloc.c:47:19: warning: implicit declaration of function ‘alloc_small’; did you mean ‘caml_alloc_small’? [-Wimplicit-function-declaration]
   47 |         value v = alloc_small(2, 0);
      |                   ^~~~~~~~~~~
      |                   caml_alloc_small
idlalloc.c: In function ‘camlidl_register_allocation’:
idlalloc.c:73:7: warning: implicit declaration of function ‘stat_alloc’ [-Wimplicit-function-declaration]
   73 |       stat_alloc(sizeof(struct camlidl_block_list));
      |       ^~~~~~~~~~
idlalloc.c:73:7: warning: initialization of ‘struct camlidl_block_list *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
idlalloc.c: In function ‘camlidl_malloc’:
idlalloc.c:95:16: warning: initialization of ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
   95 |   void * res = stat_alloc(sz);
      |                ^~~~~~~~~~
idlalloc.c:96:31: error: ‘stat_free’ undeclared (first use in this function); did you mean ‘caml_stat_free’?
   96 |   camlidl_register_allocation(stat_free, res, ctx);
      |                               ^~~~~~~~~
      |                               caml_stat_free
idlalloc.c:96:31: note: each undeclared identifier is reported only once for each function it appears in
idlalloc.c: In function ‘camlidl_free’:
idlalloc.c:108:5: warning: implicit declaration of function ‘stat_free’; did you mean ‘caml_stat_free’? [-Wimplicit-function-declaration]
  108 |     stat_free(tmp);
      |     ^~~~~~~~~
      |     caml_stat_free
idlalloc.c: In function ‘camlidl_malloc_string’:
idlalloc.c:114:18: warning: implicit declaration of function ‘string_length’; did you mean ‘caml_string_length’? [-Wimplicit-function-declaration]
  114 |   mlsize_t len = string_length(mlstring);
      |                  ^~~~~~~~~~~~~
      |                  caml_string_length
make[1]: *** [Makefile.unix:40: idlalloc.o] Error 2
make[1]: Leaving directory '/home/admin/Downloads/camlidl/src/camlidl-camlidl109/runtime'
make: *** [Makefile:19: all] Error 2
==> ERROR: A failure occurred in build().

From testing, 1.11 builds without issue.

micwoj92 commented on 2022-07-25 02:33 (UTC)

Same here.

pmatos commented on 2022-05-16 10:45 (UTC)

Interesting, I am getting during the build:

ocamlc -g -o camlidl config.cmo utils.cmo clflags.cmo prefix.cmo lexpr.cmo cvttyp.cmo variables.cmo idlarray.cmo struct.cmo enum.cmo union.cmo cvtval.cmo structdecl.cmo enumdecl.cmo uniondecl.cmo typedef.cmo funct.cmo constdecl.cmo intf.cmo file.cmo predef.cmo linenum.cmo parse_aux.cmo parser_midl.cmo lexer_midl.cmo parse.cmo fixlabels.cmo normalize.cmo main.cmo
make[1]: Leaving directory '/home/pmatos/.cache/yay/camlidl/src/camlidl-camlidl109/compiler'
cd runtime; make all
make[1]: Entering directory '/home/pmatos/.cache/yay/camlidl/src/camlidl-camlidl109/runtime'
ocamlc -g -ccopt "-Wall -g" idlalloc.c
ocamlc -g -ccopt "-Wall -g" comintf.c
ocamlc -g -ccopt "-Wall -g" comerror.c
rm -f
rm -f libcamlidl.a
ocamlmklib -o camlidl  idlalloc.o comintf.o comerror.o 
ocamlmklib -o camlidl  idlalloc.o comintf.o comerror.o 
ar: ./libcamlidl.a: file format not recognized
ar: ./libcamlidl.a: No such file or directory

Anyone else?

ruffy commented on 2019-10-28 07:38 (UTC)

Sorry my mistake

simon04 commented on 2019-10-23 08:00 (UTC)

@ruffy: 1.07 is still the lastest version according to and

ruffy commented on 2019-10-21 14:20 (UTC) (edited on 2019-10-21 14:20 (UTC) by ruffy)

Please update to 1.09 for OCaml 4.09.0