Package Details: google-drive-ocamlfuse 0.5.22-1

Git Clone URL: https://aur.archlinux.org/google-drive-ocamlfuse.git (read-only)
Package Base: google-drive-ocamlfuse
Description: FUSE filesystem backed by Google Drive, written in OCaml.
Upstream URL: http://gdfuse.forge.ocamlcore.org/
Licenses: MIT
Submitter: mlq
Maintainer: mlq
Last Packager: mlq
Votes: 27
Popularity: 1.170325
First Submitted: 2013-10-14 21:44
Last Updated: 2016-01-18 11:47

Dependencies (5)

Required by (1)

  • bups (requires google-drive-ocamlfuse) (optional)

Sources (1)

Latest Comments

limdi commented on 2016-09-27 21:44

ocaml-cryptokit gives me link error.

ocaml setup.ml -build
+ /usr/bin/ocamlopt.opt unix.cmxa -I /usr/lib/ocaml/ocamlbuild /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(startup.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(fail.o): relocation R_X86_64_32 against symbol `caml_exn_Failure' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(roots.o): relocation R_X86_64_32 against symbol `caml_frametable' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(globroots.o): relocation R_X86_64_32 against symbol `caml_global_roots' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(signals.o): relocation R_X86_64_32S against undefined symbol `caml_pending_signals' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(signals_asm.o): relocation R_X86_64_32S against symbol `caml_system__code_end' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(freelist.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(major_gc.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(minor_gc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(memory.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(alloc.o): relocation R_X86_64_32S against undefined symbol `caml_atom_table' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(compare.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(ints.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(floats.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(str.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(array.o): relocation R_X86_64_32 against undefined symbol `caml_atom_table' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(io.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(extern.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(intern.o): relocation R_X86_64_32S against undefined symbol `caml_atom_table' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(hash.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(sys.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(parsing.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(gc_ctrl.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(obj.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(lexing.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(printexc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(callback.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(weak.o): relocation R_X86_64_32 against symbol `caml_weak_ref_table' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(compact.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(finalise.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(custom.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(unix.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(backtrace.o): relocation R_X86_64_32 against symbol `caml_backtrace_last_exn' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking
Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:00.
E: Failure("Command ''/usr/bin/ocamlbuild' src/libcryptokit_stubs.a src/dllcryptokit_stubs.so src/cryptokit.cma src/cryptokit.cmxa src/cryptokit.a src/cryptokit.cmxs -tag debug' terminated with error code 10")
make: *** [Makefile:7: build] Error 1

fPIC doc:
-fPIC Generate position-independent machine code (default)

gnucon commented on 2016-08-19 10:53

took 30 mins and 750MB+ space to install :ooo
otherwise no errors

addicted commented on 2016-08-18 11:58

this better than gvfs-google.
though installing all those aur dependencies is a pain, result is good.

sproche72 commented on 2016-06-24 15:41

I have successfully installed it, along with at least 30 AUR dependencies. The errors of @jinglesassy I have not encountered.
Is it possible to somehow cut down on these dependencies?

jinglesassy commented on 2016-06-09 21:09

Got the same error.

==> Making package: google-drive-ocamlfuse 0.5.22-1 (Thu Jun 9 17:06:46 EDT 2016)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for (Snip):
error: target not found: ocamlfuse>=2.7.1
error: target not found: gapi-ocaml>=0.2.7
error: target not found: ocaml-sqlite3>=1.6.1
==> ERROR: 'pacman' failed to install missing dependencies.

jkl commented on 2016-06-03 22:37

I updated the ocamlfuse package, hopefully it works now

hexchain commented on 2016-06-01 04:11

For those having problems finding "Fuse": get the PKGBUILD of ocamlfuse, and strip every "site-lib" part in package().

As I don't know anything about ocaml, if anyone thinks it's okay then please leave a comment on ocamlfuse page.

jinglesassy commented on 2016-05-09 01:56

Due to it seeming like this is broken for the time being atleast, An alternative may be gdrivefs also available on the AUR for mounting google drive as a FUSE file system.

kzoli429 commented on 2016-05-08 20:00

==> Extracting sources...
-> Extracting gringo-4.5.4-source.tar.gz with bsdtar
==> Starting build()...
scons: Reading SConscript files ...
Checking for bison 2.5... yes
Checking for re2c... yes
Checking whether the C++ compiler works... no
error: no usable C++ compiler found
Please check the log file for further information: build/release.log
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build gringo.

mathholic commented on 2016-05-06 06:45

same error here
ocamlfind: Package `Fuse' not found

kozaki commented on 2016-04-22 18:39

Derrik Diener has a decent page on setting up google-drive-ocaml https://www.maketecheasier.com/mount-google-drive-ubuntu/
I could start the Wiki page if you guys are OK to proof read.

First need to solve why makepkg says missing deps on an up-to-date 64-bit Arch:

==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: ocamlfuse>=2.7.1
error: target not found: gapi-ocaml>=0.2.7
error: target not found: ocaml-sqlite3>=1.6.1
==> ERROR: 'pacman' failed to install missing dependencies.
==> WARNING: Failed to remove installed dependencies.

Which I find strange considering all are available from AUR --and I can install them all separately:

- aur/ocaml-sqlite3 4.0.3-1
- aur/gapi-ocaml 0.2.10-1
- aur/ocamlfuse 2.7.1-5

?? First time encounter that.

philipbooysen commented on 2016-04-12 08:17

Hi,

Same error, installing:

ocamlfind: Package `Fuse' not found

To temporary bypass, I downgraded to :

$ sudo pacman -U ocaml-findlib-1.5.5-3-x86_64.pkg.tar.xz

Re-ran install and now installed successfully.

juanrodgil commented on 2016-04-07 08:13

Hi!
Same error, installing with pacaur

ocamlfind: Package `Fuse' not found
W: Field 'pkg_fuse' is not set: Command ''/usr/bin/ocamlfind' query -format %d Fuse > '/tmp/oasis-3ce8db.txt'' terminated with error code 2
E: Cannot find findlib package Fuse
E: Failure("1 configuration error")

berbigou commented on 2016-03-31 03:54

hello, got:
ocamlfind: Package `Fuse' not found
W: Field 'pkg_fuse' is not set: Command ''/usr/bin/ocamlfind' query -format %d Fuse > '/tmp/oasis-7f2b54.txt'' terminated with error code 2
E: Cannot find findlib package Fuse
E: Failure("1 configuration error")

hopefully, I had already a local package compiled...

kzoli429 commented on 2015-12-27 10:35

Hi,
Installation stops with the following message:

==> Starting build()...
cppo -D OCAML4 -D OCAML4_02 -D WITH_BYTES extBytes.mlpp -o extBytes.ml
make: cppo: Command not found
Makefile:50: recipe for target 'extBytes.ml' failed
make: *** [extBytes.ml] Error 127
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build ocaml-extlib.

gregmuellegger commented on 2015-12-11 21:12

Hi, I get an error when trying to install with "pb -S google-drive-ocamlfuse":

[code]
+ /usr/bin/ocamlopt.opt unix.cmxa -I /usr/lib/ocaml/ocamlbuild /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(startup.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/ocaml/libasmrun.a: error adding symbols: Bad value
collect2: Fehler: ld gab 1 als Ende-Status zurück
File "caml_startup", line 1:
Error: Error during linking
Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:00.
[/code]

See here for the full log:

https://gist.github.com/anonymous/09b65909b8544e658939

lesebas commented on 2015-11-23 08:45

ocaml-biniou is a dependency of ocaml-yojson which is required by gapi-ocaml.

timofonic commented on 2015-11-22 16:16

What about ocaml-biniou dependence?

mlq commented on 2015-11-22 13:18

There is no reason to flag this package out of date since there is no version available.

Feel free to create a new wiki page!

timofonic commented on 2015-11-22 12:50

Please.

Can we make a wiki page about it? There's one about Insync, but not this one.

https://wiki.archlinux.org/index.php/Insync

https://wiki.archlinux.org/index.php/Google_Drive redirects to https://wiki.archlinux.org/index.php/Backup_programs

https://wiki.archlinux.org/index.php/Insync

xganesh commented on 2015-10-17 21:19

Apparently also 'ocaml-biniou' is an unmentioned dependence?

lesebas commented on 2015-10-12 11:21

@Coldbird

cppo is already required by ocaml-yojson which is a dependency of gapi-ocaml.

Coldbird commented on 2015-10-12 10:45

Dependencies should include cppo.

lesebas commented on 2015-10-07 19:29

Please update to v0.5.18.

Not easy to built as you have to rebuilt manualy all the ocaml package (and ocamlfuse is nearly broken on AUR).

@possum @b3nt0

I've updated ocaml-extlib and ocaml-curl is now OK. You can go ahead to build gapi-ocaml

possum commented on 2015-08-17 18:37

I cannot find ocaml-curl and ocaml-extlib packages in the aur anymore :/
Also version 0.5.17 is already out.

b3nt0 commented on 2015-08-11 23:20

Could not make it work. Could not build gapi-ocaml.

leledumbo commented on 2015-05-11 11:16

forget it, somehow the setuid bit is missing from my fusermount binary

leledumbo commented on 2015-05-11 11:03

I always get:
"fusermount: mount failed: Operation not permitted"
even though my user is in fuse group. With sudo it works, but I can't browse the mounted drive unless I'm root (and I think the point of fusermount is to mount from userland so sudo shouldn't be necessary).

kozyice commented on 2015-05-07 10:29

# awesome package, thanks a lot!

EgidioCaprino commented on 2015-04-27 19:30

Thank you very much!

ValHue commented on 2015-03-09 17:21

ERROR:

Finished, 0 targets (0 cached) in 00:00:00.
+ /usr/sbin/ocamlfind ocamlopt -g -linkpkg -package Fuse -package camlidl -package gapi-ocaml -package sqlite3 -package threads -thread src/appDir.cmx src/utils.cmx src/config.cmx src/cache.cmx src/concurrentGlobal.cmx src/keyValueStore.cmx src/state.cmx src/context.cmx src/gaeProxy.cmx src/mime.cmx src/oauth2.cmx src/drive.cmx src/gdfuse.cmx -o src/gdfuse.native
File "_none_", line 1:
Error: Files /usr/lib/ocaml/netstring/netstring.cmxa
and /usr/lib/ocaml/netsys/netsys.cmxa
make inconsistent assumptions over implementation Netsys
Command exited with code 2.
Compilation unsuccessful after building 40 targets (39 cached) in 00:00:00.
E: Failure("Command ''/usr/sbin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10")

javier.ruere commented on 2014-12-21 21:17

It fails for me. I had no ocaml package previously installed.


+ /usr/bin/ocamlfind ocamlopt -g -linkpkg -package Fuse -package camlidl -package gapi-ocaml -package sqlite3 -package threads -thread src/appDir.cmx src/utils.cmx src/config.cmx src/cache.cmx src/concurrentGlobal.cmx src/keyValueStore.cmx src/state.cmx src/context.cmx src/gaeProxy.cmx src/mime.cmx src/oauth2.cmx src/drive.cmx src/gdfuse.cmx -o src/gdfuse.native
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Unix_util.o): In function `camlUnix_util__statvfs_1025':
(.text+0xa): undefined reference to `unix_util_statvfs'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Unix_util.o): In function `camlUnix_util__read_1030':
(.text+0x9d): undefined reference to `unix_util_read'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Unix_util.o): In function `camlUnix_util__write_1049':
(.text+0x12d): undefined reference to `unix_util_write'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Unix_util.o): In function `camlUnix_util__6':
(.data+0xd8): undefined reference to `unix_util_fchdir'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Unix_util.o): In function `camlUnix_util__6':
(.data+0xe0): undefined reference to `unix_util_statvfs'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Unix_util.o): In function `camlUnix_util__6':
(.data+0xe8): undefined reference to `unix_util_file_descr_of_int'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Unix_util.o): In function `camlUnix_util__6':
(.data+0xf0): undefined reference to `unix_util_int_of_file_descr'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Unix_util.o): In function `camlUnix_util__6':
(.data+0xf8): undefined reference to `unix_util_write'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Unix_util.o): In function `camlUnix_util__6':
(.data+0x100): undefined reference to `unix_util_read'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_bindings.o): In function `camlFuse_bindings':
(.data+0x8): undefined reference to `camlidl_Fuse_bindings___fuse_exited'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_bindings.o): In function `camlFuse_bindings':
(.data+0x10): undefined reference to `camlidl_Fuse_bindings_ml_fuse_main'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_bindings.o): In function `camlFuse_bindings':
(.data+0x18): undefined reference to `camlidl_Fuse_bindings_ml_fuse_init'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_bindings.o): In function `camlFuse_bindings':
(.data+0x20): undefined reference to `camlidl_Fuse_bindings___fuse_process_cmd'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_bindings.o): In function `camlFuse_bindings':
(.data+0x28): undefined reference to `camlidl_Fuse_bindings___fuse_read_cmd'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_bindings.o): In function `camlFuse_bindings':
(.data+0x30): undefined reference to `camlidl_Fuse_bindings_set_fuse_operations'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_bindings.o): In function `camlFuse_bindings':
(.data+0x38): undefined reference to `camlidl_Fuse_bindings_get_fuse_operations'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_bindings.o): In function `camlFuse_bindings':
(.data+0x40): undefined reference to `camlidl_Fuse_bindings_fuse_get_context'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_lib.o): In function `camlFuse_lib__fun_1101':
(.text+0xd): undefined reference to `camlidl_Fuse_bindings___fuse_process_cmd'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_lib.o): In function `camlFuse_lib__fun_1095':
(.text+0x7e): undefined reference to `camlidl_Fuse_bindings___fuse_process_cmd'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_lib.o): In function `camlFuse_lib__fuse_loop_1010':
(.text+0x3af): undefined reference to `camlidl_Fuse_bindings___fuse_exited'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_lib.o): In function `camlFuse_lib__fuse_loop_1010':
(.text+0x3d3): undefined reference to `camlidl_Fuse_bindings___fuse_read_cmd'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_lib.o): In function `camlFuse_lib__fuse_loop_1010':
(.text+0x3f1): undefined reference to `ocaml_fuse_is_null'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse_lib.o): In function `camlFuse_lib__8':
(.data+0x2d8): undefined reference to `ocaml_fuse_is_null'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse.o): In function `camlFuse__get_context_1024':
(.text+0x9a): undefined reference to `camlidl_Fuse_bindings_fuse_get_context'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse.o): In function `camlFuse__main_1073':
(.text+0x4f7): undefined reference to `camlidl_Fuse_bindings_ml_fuse_init'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse.o): In function `camlFuse__main_1073':
(.text+0x519): undefined reference to `camlidl_Fuse_bindings_set_fuse_operations'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse.o): In function `camlFuse__main_1073':
(.text+0x536): undefined reference to `camlidl_Fuse_bindings_get_fuse_operations'
/usr/lib/ocaml/site-lib/Fuse/Fuse.a(Fuse.o): In function `camlFuse__main_1073':
(.text+0x554): undefined reference to `camlidl_Fuse_bindings_ml_fuse_main'
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking
Command exited with code 2.
Compilation unsuccessful after building 40 targets (0 cached) in 00:00:01.
E: Failure("Command ''/usr/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10")

lesto commented on 2014-09-13 10:36

+ /usr/bin/ocamlfind ocamlopt -g -linkpkg -package Fuse -package camlidl -package gapi-ocaml -package sqlite3 -package threads -thread src/appDir.cmx src/utils.cmx src/config.cmx src/cache.cmx src/concurrentGlobal.cmx src/keyValueStore.cmx src/state.cmx src/context.cmx src/gaeProxy.cmx src/mime.cmx src/oauth2.cmx src/drive.cmx src/gdfuse.cmx -o src/gdfuse.native
gcc: error: /usr/lib/ocaml/curl/curl.a: File o directory non esistente
gcc: error: /usr/lib/ocaml/extlib/extLib.a: File o directory non esistente
File "caml_startup", line 1:
Error: Error during linking
Command exited with code 2.

Gnurou commented on 2014-09-11 04:30

Awesome, thanks - now I can finally try this promising little package! :)

mlq commented on 2014-09-10 22:41

In fact there was: I've adopted the package and updated it ;)

mlq commented on 2014-09-10 22:40

Thats why gapi-ocaml is already flagged out-of-date and the maintainer of gapi-ocaml needs to update the package. There is nothing I can do about it and its not an error of this package (because its required).

Gnurou commented on 2014-09-10 22:38

Latest version (0.5.6-1) won't build because it depends on gapi-ocaml >= 0.2.4 and only 0.2.1 is available on AUR.

lesebas commented on 2014-08-29 11:11

Hello, thanks for the update.

It's up to you for the git... that's not a big deal.

Lesebas

lesebas commented on 2014-08-29 10:02

Hello, thanks for the update.

It's up to you for the git... but by now there is no stable release (version 0.x) as this application is still at the early development stage. But that's not a big deal.

Lesebas

mlq commented on 2014-08-29 08:31

I've updated the package to 0.5.5 - It requires ocaml-biniou which should be a dependency of ocaml-yojson, so you might need to install it in addition.

No, I won't modify the package to clone git repository, since this is the stable version. We would need to create an additional google-drive-ocamlfuse-git package that uses the latest develop version.

lesebas commented on 2014-08-28 21:14

The version 0.5.4 has been uploaded on the git (with a workaround for the segmentation fault). I suggest you to modify your pkbuild in order to use pkgver() function to ensure permanent update as suggested in the wiki :

https://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines#The_pkgver.28.29_function

Here is my proposoal of PKGBUILD :

pkgname=google-drive-ocamlfuse
pkgver=0.5.5.r2
pkgrel=1
pkgdesc="FUSE filesystem backed by Google Drive, written in OCaml."
arch=('x86_64' 'i686')
url="http://gdfuse.forge.ocamlcore.org/"
license=('MIT')
depends=('ocaml>=3.12.0' 'ocaml-findlib>=1.2.7' 'ocamlfuse>=2.7.1'
'gapi-ocaml>=0.2.1' 'ocaml-sqlite3>=1.6.1')
source=('google-drive-ocamlfuse::git+https://github.com/astrada/google-drive-ocamlfuse.git#branch=master')
options=('staticlibs')
md5sums=('SKIP')

pkgver() {
cd "$pkgname"
git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g;s/.g[a-z0-9]*//'
}

build() {
cd "$srcdir/$pkgname"
ocaml setup.ml -configure --prefix /usr --destdir $pkgdir
ocaml setup.ml -build
}

check() {
cd "$srcdir/$pkgname"
ocaml setup.ml -test
}

package() {
cd "$srcdir/$pkgname"
export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"

ocaml setup.ml -install
}

lesebas commented on 2014-08-26 21:04

@mlq

The version 0.5.4 has been uploaded on the git (with a workaround for the segmentation fault). I suggest you to modify your pkbuild in order to use pkgver() function to ensure permanent update as suggested in the wiki :

https://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines#The_pkgver.28.29_function

Here is my proposoal of PKGBUILD :

pkgname=google-drive-ocamlfuse
pkgver=v0.5.4.r0.g2f20b4d
pkgrel=1
pkgdesc="FUSE filesystem backed by Google Drive, written in OCaml."
arch=('x86_64' 'i686')
url="http://gdfuse.forge.ocamlcore.org/"
license=('MIT')
depends=('ocaml>=3.12.0' 'ocaml-findlib>=1.2.7' 'ocamlfuse>=2.7.1'
'gapi-ocaml>=0.2.1' 'ocaml-sqlite3>=1.6.1')
source=('google-drive-ocamlfuse::git+https://github.com/astrada/google-drive-ocamlfuse.git#branch=master')
options=('staticlibs')
md5sums=('SKIP')

pkgver() {
cd "$pkgname"
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
cd "$srcdir/$pkgname"
ocaml setup.ml -configure --prefix /usr --destdir $pkgdir
ocaml setup.ml -build
}

check() {
cd "$srcdir/$pkgname"
ocaml setup.ml -test
}

package() {
cd "$srcdir/$pkgname"
export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"

ocaml setup.ml -install
}

lesebas commented on 2014-08-26 21:03

@mlq

The version 0.5.4 has been uploaded on the git (with a workaround for the segmentation fault). I suggest you to modify your pkbuild in order to use pkgver() function to ensure permanent update as suggested in the wiki :

https://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines#The_pkgver.28.29_function

Here is my proposoal of PKGBUILD :

pkgname=google-drive-ocamlfuse
pkgver=v0.5.4.r0.g2f20b4d
pkgrel=1
pkgdesc="FUSE filesystem backed by Google Drive, written in OCaml."
arch=('x86_64' 'i686')
url="http://gdfuse.forge.ocamlcore.org/"
license=('MIT')
depends=('ocaml>=3.12.0' 'ocaml-findlib>=1.2.7' 'ocamlfuse>=2.7.1'
'gapi-ocaml>=0.2.1' 'ocaml-sqlite3>=1.6.1')
source=('google-drive-ocamlfuse::git+https://github.com/astrada/google-drive-ocamlfuse.git#branch=master')
options=('staticlibs')
md5sums=('SKIP')

pkgver() {
cd "$pkgname"
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
cd "$srcdir/$pkgname"
ocaml setup.ml -configure --prefix /usr --destdir $pkgdir
ocaml setup.ml -build
}

check() {
cd "$srcdir/$pkgname"
ocaml setup.ml -test
}

package() {
cd "$srcdir/$pkgname"
export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"

ocaml setup.ml -install
}
Comment by karamaz0v
2014-07-28 18:01
in order to build everything, the
options=('staticlibs')
must be added also to ocaml-curl and ocaml-extlib packages.

lesebas commented on 2014-08-26 20:05

@mlq

The version 0.5.4 has been uploaded on the git. I suggest to modify your pkbuild in order to use pkgver() function to ensure permanent update as suggested in the wiki :

https://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines#The_pkgver.28.29_function

Here is my proposoal of PKGBUILD :

pkgname=google-drive-ocamlfuse
pkgver=v0.5.4.r0.g2f20b4d
pkgrel=1
pkgdesc="FUSE filesystem backed by Google Drive, written in OCaml."
arch=('x86_64' 'i686')
url="http://gdfuse.forge.ocamlcore.org/"
license=('MIT')
depends=('ocaml>=3.12.0' 'ocaml-findlib>=1.2.7' 'ocamlfuse>=2.7.1'
'gapi-ocaml>=0.2.1' 'ocaml-sqlite3>=1.6.1')
source=('google-drive-ocamlfuse::git+https://github.com/astrada/google-drive-ocamlfuse.git#branch=master')
options=('staticlibs')
md5sums=('SKIP')

pkgver() {
cd "$pkgname"
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
cd "$srcdir/$pkgname"
ocaml setup.ml -configure --prefix /usr --destdir $pkgdir
ocaml setup.ml -build
}

check() {
cd "$srcdir/$pkgname"
ocaml setup.ml -test
}

package() {
cd "$srcdir/$pkgname"
export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"

ocaml setup.ml -install
}

karamaz0v commented on 2014-07-28 18:01

in order to build everything, the
options=('staticlibs')
must be added also to ocaml-curl and ocaml-extlib packages.

flaccid commented on 2014-07-27 22:54

@jkl I can confirm that it builds and installs ok for me at the moment.

jkl commented on 2014-07-26 16:28

I've updated the ocamlfuse package. Works for me, but I would appreciate feedback.

neonkowy commented on 2014-07-24 08:30

apprently it needs ocaml-curl and ocaml-extlib
[code]
Finished, 1 target (0 cached) in 00:00:02.
+ /usr/bin/ocamlfind ocamlopt -g -linkpkg -package Fuse -package camlidl -package gapi-ocaml -package sqlite3 -package threads -thread src/appDir.cmx src/utils.cmx src/config.cmx src/cache.cmx src/concurrentGlobal.cmx src/keyValueStore.cmx src/state.cmx src/context.cmx src/gaeProxy.cmx src/mime.cmx src/oauth2.cmx src/drive.cmx src/gdfuse.cmx -o src/gdfuse.native
gcc: error: /usr/lib/ocaml/curl/curl.a: Nie ma takiego pliku ani katalogu
gcc: error: /usr/lib/ocaml/extlib/extLib.a: Nie ma takiego pliku ani katalogu
File "caml_startup", line 1:
Error: Error during linking
Command exited with code 2.
Compilation unsuccessful after building 40 targets (0 cached) in 00:00:04.
E: Failure("Command ''/usr/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10")
==> BŁĄD: Wystąpił błąd w build().
Przerywam...
The build failed.
[/code]

lesebas commented on 2014-07-09 19:34

Hello,

I've request the maintener of ocamlfuse and ocaml-sqlite3 to add the option staticlibs in their PKGBUILD.

I have overpass the problem of segmentation fault by adding the -d option in the command (I don't understand why but it works fine now):

google-drive-ocamlfuse -d <google-drive-folder>

lesebas commented on 2014-07-08 16:59

@all

same problem of .a library issing solved like that :

edit /etc/makepkg.conf
modify the option from !staticlibs to staticlibs
rebuild ALL the package ocaml (for example if sqlite3.a is missing => yaourt -S ocaml-sqlite3).

By the way I still experiencing segmentation fault on my 64bits system.

lenovomi commented on 2014-07-07 20:03

does it work on arm7?

lenovomi commented on 2014-07-07 20:03

doest i work on arm7?

ptchinster commented on 2014-06-07 20:23

Same problem as draugole

ptchinster@hostname ~ $ yaourt -S google-drive-ocamlfuse --noconfirm
...
gcc: error: /usr/lib/ocaml/sqlite3/sqlite3.a: No such file or directory
gcc: error: /usr/lib/ocaml/curl/curl.a: No such file or directory
gcc: error: /usr/lib/ocaml/extlib/extLib.a: No such file or directory
gcc: error: /usr/lib/ocaml/site-lib/Fuse/Fuse.a: No such file or directory
File "caml_startup", line 1:
Error: Error during linking
Command exited with code 2.
Compilation unsuccessful after building 40 targets (0 cached) in 00:00:06.
E: Failure("Command ''/usr/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10")
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build .
==> Restart building google-drive-ocamlfuse ? [y/N]
==> -----------------------------------------------
==>

draugole commented on 2014-05-28 07:22

I've been following the comments and after performing the steps Siguo with the error
"E: Failure (" Command'' / usr / bin / ocamlbuild 'src / gdfuse.native-tag debug' terminated with error code 10 ")"

I'm just trying to perform the installation by OPAM

nfishr commented on 2014-05-16 23:43

@jan_path That did it for me. Thanks a lot!

willemw commented on 2014-05-08 15:18

Maybe the relevant package maintainers should update their PKGBUILD files instead, as suggested here: https://www.archlinux.org/todo/remove-static-libraries/

jan_path commented on 2014-05-08 15:06

You have to change !staticlibs to staticlibs in your makepkg.conf and then rebuild the packages ocamlfuse, camlidl, ocaml-extlib, ocaml-curl, ocaml-sqlite3.

broepi commented on 2014-05-05 23:09

Same problem here with the missing .a files

nfishr commented on 2014-05-04 12:08

@lesbas

No, there is no .makepkg.conf in the home-folder. Still get the same err..

lesebas commented on 2014-05-04 08:06

@ nfishr

Check if you have a local makepkg.conf :

ls ~/.makepkg.conf

If it's the case delete or rename the local file while you try to compile the package or add the option ''staticlibs'' in your local file.

nfishr commented on 2014-05-03 20:46

I changed "!staticlibs" to "staticlibs" in /etc/makepkg.conf, but it still would not build, giving:

gcc: error: /usr/lib/ocaml/sqlite3/sqlite3.a: No such file or directory
gcc: error: /usr/lib/ocaml/curl/curl.a: No such file or directory
gcc: error: /usr/lib/ocaml/extlib/extLib.a: No such file or directory
gcc: error: /usr/lib/ocaml/camlidl/com.a: No such file or directory
gcc: error: /usr/lib/ocaml/site-lib/Fuse/Fuse.a: No such file or directory
File "caml_startup", line 1:
Error: Error during linking
Command exited with code 2.
Compilation unsuccessful after building 40 targets (0 cached) in 00:00:04.
E: Failure("Command ''/usr/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10")
==> ERROR: A failure occurred in build().
Aborting...

What am i missing? options=('staticlibs') is present in PKGBUILD..

nfishr commented on 2014-05-03 20:46

I changed "!staticlibs" in /etc/makepkg.conf, but it still would not build, giving:

gcc: error: /usr/lib/ocaml/sqlite3/sqlite3.a: No such file or directory
gcc: error: /usr/lib/ocaml/curl/curl.a: No such file or directory
gcc: error: /usr/lib/ocaml/extlib/extLib.a: No such file or directory
gcc: error: /usr/lib/ocaml/camlidl/com.a: No such file or directory
gcc: error: /usr/lib/ocaml/site-lib/Fuse/Fuse.a: No such file or directory
File "caml_startup", line 1:
Error: Error during linking
Command exited with code 2.
Compilation unsuccessful after building 40 targets (0 cached) in 00:00:04.
E: Failure("Command ''/usr/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10")
==> ERROR: A failure occurred in build().
Aborting...

What am i missing? options=('staticlibs') is present in PKGBUILD..

nfishr commented on 2014-05-03 20:01

It would great if the maintainer could correct the err. in the build-process. In the comments of https://aur.archlinux.org/packages/ocamlfuse/ seems to be linked a working PKGBUILD for ocamlfuse, which is needed here also. Otherwise one gets an build-err: http://pastebin.com/iaVp8Jd5

lesebas commented on 2014-03-28 19:18

Sorry OPTIONS : ' staticlibs' in /etc/makepkg.conf actually works... I've just forgot to delete the old local file ~/makepkg.conf

lesebas commented on 2014-03-28 19:15

Trying to compile but I have a problem with .a file of depends... How can I force yaourt to keep the .a file when compiling the depends :

gcc: erreur: /usr/lib/ocaml/sqlite3/sqlite3.a: Aucun fichier ou dossier de ce type
gcc: erreur: /usr/lib/ocaml/curl/curl.a: Aucun fichier ou dossier de ce type
gcc: erreur: /usr/lib/ocaml/extlib/extLib.a: Aucun fichier ou dossier de ce type
gcc: erreur: /usr/lib/ocaml/camlidl/com.a: Aucun fichier ou dossier de ce type
gcc: erreur: /usr/lib/ocaml/site-lib/Fuse/Fuse.a: Aucun fichier ou dossier de ce type

I've tried to add staticlibs instead of !staticlibs in OPTIONS line in /etc/makepkg.conf but without any succes

lesebas commented on 2014-03-28 17:56

Trying to compile but I have a problem with .a file of depends... How can I force yaourt to keep the .a file when compiling the depends :

gcc: erreur: /usr/lib/ocaml/sqlite3/sqlite3.a: Aucun fichier ou dossier de ce type
gcc: erreur: /usr/lib/ocaml/curl/curl.a: Aucun fichier ou dossier de ce type
gcc: erreur: /usr/lib/ocaml/extlib/extLib.a: Aucun fichier ou dossier de ce type
gcc: erreur: /usr/lib/ocaml/camlidl/com.a: Aucun fichier ou dossier de ce type
gcc: erreur: /usr/lib/ocaml/site-lib/Fuse/Fuse.a: Aucun fichier ou dossier de ce type

JP-Ellis commented on 2014-03-04 23:36

Unfortunately, this does not build on its own (@possum has suggested some fixes,but it's a shame that one has to resort to that).

An alternative way to install google-drive-ocamlfuse is through OCaml's package manager OPAM. OPAM can be installed from AUR, and after setting it up, calling "opam install google-drive-ocamlfuse" will install this programme along with the required dependencies. You may have to install other packages which aren't managed by OPAM to meet dependencies and you can find more details at https://github.com/astrada/google-drive-ocamlfuse/wiki/Installation .

lockheed commented on 2014-01-28 15:09

PS
To backup folders form outside the "Copy" folder, just create symbolic links to them.

lockheed commented on 2014-01-15 22:19

The package is fine. The Google Drive itself is the problem.
I have been trying to use it on several account, on very fast internet connections, but it was always the same - the transfer speeds to GDrive are not just low. Oh no. They are absurdly low! I mean in BITS per SECOND! It takes WEEKS to upload mere 20 GB.

Do yourself a favour and create Copy account: https://copy.com?r=cdNDuV
If you use this link, we both get extra 5GB which gives you free 20GB to boot. Unlike google, it is fast, and unlike google they don't ignore linux customers and provide native client.

mlq commented on 2013-12-13 09:37

Apparently you are trying to build ocamlfuse and not google-drive-ocamlfuse, at least the error is happening on the other package. Please state your error there: https://aur.archlinux.org/packages/ocamlfuse/

djringjr commented on 2013-12-13 04:26

Sorry, only half of the errors:

error in building ocamlfuse

^
Fuse_util.c:625:1: note: in expansion of macro ‘FOR_ALL_OPS’
FOR_ALL_OPS(CALLBACK)
^
ar rcs libFuse_stubs.a Fuse_bindings_stubs.o Unix_util_stubs.o Fuse_util.o
ocamlopt -c -thread Result.ml
ocamlopt -c -thread Unix_util.ml
ocamlc -c -thread Fuse_bindings.mli
File "Fuse_bindings.mli", line 37, characters 8-23:
Error: Unbound module Com
../OCamlMakefile:933: recipe for target 'Fuse_bindings.cmi' failed
make[1]: *** [Fuse_bindings.cmi] Error 2
make[1]: Leaving directory '/tmp/packerbuild-0/ocamlfuse/ocamlfuse/src/ocamlfuse-2.7.1-cvs/lib'
../OCamlMakefile:725: recipe for target 'native-code-library' failed
make: *** [native-code-library] Error 2
make: Leaving directory '/tmp/packerbuild-0/ocamlfuse/ocamlfuse/src/ocamlfuse-2.7.1-cvs/lib'
==> ERROR: A failure occurred in build().
Aborting...
The build failed.

djringjr commented on 2013-12-13 04:22

Fuse_util.c:625:1: note: in expansion of macro ‘FOR_ALL_OPS’
FOR_ALL_OPS(CALLBACK)
^
ar rcs libFuse_stubs.a Fuse_bindings_stubs.o Unix_util_stubs.o Fuse_util.o
ocamlopt -c -thread Result.ml
ocamlopt -c -thread Unix_util.ml
ocamlc -c -thread Fuse_bindings.mli
File "Fuse_bindings.mli", line 37, characters 8-23:
Error: Unbound module Com
../OCamlMakefile:933: recipe for target 'Fuse_bindings.cmi' failed
make[1]: *** [Fuse_bindings.cmi] Error 2
make[1]: Leaving directory '/tmp/yaourt-tmp-user/aur-ocamlfuse/src/ocamlfuse-2.7.1-cvs/lib'
../OCamlMakefile:725: recipe for target 'native-code-library' failed
make: *** [native-code-library] Error 2
make: Leaving directory '/tmp/yaourt-tmp-user/aur-ocamlfuse/src/ocamlfuse-2.7.1-cvs/lib'
==> ERROR: A failure occurred in build().
Aborting...

Doesn't work for me today. I want this!

David

mlq commented on 2013-12-05 09:56

I've managed to build it again and updated the PKGBUILD. The only way I was able to make it work is that I've removed all installed packages (and dependencies) of this package and then I rebuilt them from scratch. You need to apply the fixes for 'ocamlfuse' and 'gapi-ocaml' which are both in the comments and you need to install 'ocaml-easy-format' as well which is a dependency of 'ocaml-joyson'.

mlq commented on 2013-12-05 09:38

1) At least the part for camlidl should not be necessary since it seems to detect 'pkg_camlidl' just fine.
2) I've flagged the package out-of-date some time ago, but the maintainer does not react. If nothing happens in the next week I will ask on the mailing list.

I am always running into errors which state 'make inconsistent assumptions over interface Easy_format'. Haven't you experienced them?

possum commented on 2013-12-05 03:52

Installing this package at this moment it's a challenge. I've been able to install it by editing PKGBUILDs only(yaourt saved me a lot of time with this). Here's what i changed:
1) when building ocamlfuse replace in the PKGBUILD the include dirs like this:
make -C lib INCDIRS='/usr/lib/ocaml/stublibs /usr/lib/ocaml/camlidl'
(and not forget 3) )

2) gapi-ocaml says it's 0.2.1 but in fact downloads 0.2, to download the correct version in the PKGBUILD change the url like this:
source=(http://forge.ocamlcore.org/frs/download.php/1274/$pkgname-$pkgver.tar.gz)
and change the checksum to:
md5sums=('c87aa3b2c9afef190307d8da51d65875')
also replace 0.2 with $pkgver in both cd commands.

(and not forget 3) )
NOTE: 2) fixes the error described by @lockheed

3) as said by @calucian, add the option staticlibs with:
options=('staticlibs')
(if options was already present add the new option to the list)
The packages that require staticlibs are:
ocaml-sqlite3, ocaml-extlib, ocaml-cryptokit, ocamlnet, ocaml-curl, gapi-ocaml, camlidl and ocamlfuse

lockheed commented on 2013-12-03 11:07

I am getting this error while compiling. Does anyone know what's happening?
==> Starting build()...
W: Field 'pkg_gapi_ocaml_version_ge_0_2_1' is not set: Cannot satisfy version constraint on pkg_gapi_ocaml: >= 0.2.1 (version: 0.2)
E: Cannot find findlib package gapi-ocaml (>= 0.2.1)
E: Failure("1 configuration error")
==> ERROR: A failure occurred in build().
Aborting...

flaccid commented on 2013-11-29 02:13

@mlq I get the same issue as gourdcaptain with cannot find -lcamlidl, can you update the PKBUILD please?

gourdcaptain commented on 2013-11-25 20:59

Is anyone else having a problem where the drive mounted is suddenly blank with no files on it? My files are still on there in the web interface, but I can't access them through this anymore.

LucidComplex commented on 2013-11-17 15:12

Same with gourdcaptain, I recompiled everything with staticlibs in the options, another error pops up again

Finished, 0 targets (0 cached) in 00:00:00.
+ ocamlfind ocamlopt -g -linkpkg -package threads -package sqlite3 -package gapi-ocaml -package Fuse -thread src/appDir.cmx src/utils.cmx src/config.cmx src/cache.cmx src/concurrentGlobal.cmx src/keyValueStore.cmx src/state.cmx src/context.cmx src/gaeProxy.cmx src/mime.cmx src/oauth2.cmx src/drive.cmx src/gdfuse.cmx -o src/gdfuse.native
File "_none_", line 1:
Error: Files /usr/lib/ocaml/netstring/netstring.cmxa
and /usr/lib/ocaml/netsys/netsys.cmxa
make inconsistent assumptions over implementation Netsys
Command exited with code 2.
Compilation unsuccessful after building 40 targets (39 cached) in 00:00:00.
E: Failure("Command ''/usr/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10")
==> ERROR: A failure occurred in build().
Aborting...

Any help for this?

calucian commented on 2013-11-11 19:47

@gourdcaptain: yes, I was referring to that error in my second comment: the PKGBUILD of google-drive-ocamlfuse has a prepare() section. In that section, the second line applies a patch to remove the dependency on camlidl (patch -p1 -i "$srcdir/0001-Remove-camlidl.patch"). I have just commented that line (with a #) and I was able to get a working binary. My hunch is that somebody realized that the libcamlidl was not needed but forgot to also remove it from the linker command line when building google-drive (that's why it stops on /usr/bin/ld: cannot find -lcamlidl). Either way, commending the patch line should make it build.

gourdcaptain commented on 2013-11-10 03:46

Right, after going back through and recompiling everything with staticlibs enabled, I get:
+ ocamlfind ocamlopt -g -linkpkg -package threads -package sqlite3 -package gapi-ocaml -package Fuse -thread src/appDir.cmx src/utils.cmx src/config.cmx src/cache.cmx src/concurrentGlobal.cmx src/keyValueStore.cmx src/state.cmx src/context.cmx src/gaeProxy.cmx src/mime.cmx src/oauth2.cmx src/drive.cmx src/gdfuse.cmx -o src/gdfuse.native
/usr/bin/ld: cannot find -lcamlidl
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking
Command exited with code 2.
Compilation unsuccessful after building 40 targets (0 cached) in 00:00:08.
E: Failure("Command ''/usr/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10")

calucian commented on 2013-11-07 23:37

Of course, if options=(..) already exists you would just add staticlibs to the list.
In order to get it to install I also had to comment (#) the line with the patch step from prepare(). That seems to remove libcamlidl from the required packages but then the linking fails for not finding libcamlidl...

calucian commented on 2013-11-07 23:13

@gourdcaptain:
Yes. I'm pretty much in the same situation. It appears the arch linux guys have (recently) made a decision not to install the static libraries by default when building packages. See: https://mailman.archlinux.org/pipermail/arch-dev-public/2013-September/025454.html.

So I believe the PKGBUILD files (for all the ocaml packages) should have the following line added (in the preamble part):
options=('staticlibs')

gourdcaptain commented on 2013-11-07 20:33

As I have been slowly recursing back up the set of failures in building the libraries in this package (slightly frustrated) this failed to build with the error:
+ ocamlfind ocamlopt -g -linkpkg -package threads -package sqlite3 -package gapi-ocaml -package Fuse -thread src/appDir.cmx src/utils.cmx src/config.cmx src/cache.cmx src/concurrentGlobal.cmx src/keyValueStore.cmx src/state.cmx src/context.cmx src/gaeProxy.cmx src/mime.cmx src/oauth2.cmx src/drive.cmx src/gdfuse.cmx -o src/gdfuse.native
gcc: error: /usr/lib/ocaml/site-lib/Fuse/Fuse.a: No such file or directory
gcc: error: /usr/lib/ocaml/gapi-ocaml/gapi-ocaml.a: No such file or directory
gcc: error: /usr/lib/ocaml/cryptokit/cryptokit.a: No such file or directory
gcc: error: /usr/lib/ocaml/curl/curl.a: No such file or directory
gcc: error: /usr/lib/ocaml/netstring/netstring.a: No such file or directory
gcc: error: /usr/lib/ocaml/netsys/netsys.a: No such file or directory
gcc: error: /usr/lib/ocaml/netsys/netsys_oothr_mt.a: No such file or directory
gcc: error: /usr/lib/ocaml/extlib/extLib.a: No such file or directory
gcc: error: /usr/lib/ocaml/sqlite3/sqlite3.a: No such file or directory
File "caml_startup", line 1:
Error: Error during linking
Command exited with code 2.
Compilation unsuccessful after building 40 targets (0 cached) in 00:00:09.
E: Failure("Command ''/usr/bin/ocamlbuild' src/gdfuse.native -tag debug' terminated with error code 10")

Any suggestions?