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")
Search Criteria
Package Details: google-drive-ocamlfuse 0.7.32-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/google-drive-ocamlfuse.git (read-only, click to copy) |
---|---|
Package Base: | google-drive-ocamlfuse |
Description: | FUSE-based file system backed by Google Drive, written in OCaml |
Upstream URL: | https://astrada.github.io/google-drive-ocamlfuse/ |
Keywords: | drive fuse google ocaml |
Licenses: | MIT |
Submitter: | mlq |
Maintainer: | pricechrispy |
Last Packager: | pricechrispy |
Votes: | 62 |
Popularity: | 0.000020 |
First Submitted: | 2013-10-14 21:44 (UTC) |
Last Updated: | 2024-03-25 01:51 (UTC) |
Dependencies (9)
- gapi-ocamlAUR
- ocaml
- ocaml-extlibAUR
- ocaml-findlib
- ocaml-sqlite3AUR
- ocamlfuseAUR
- tiny_httpdAUR
- dune (make)
- ocaml-ounitAUR (make)
Required by (0)
Sources (1)
gourdcaptain commented on 2013-11-10 03:46 (UTC)
calucian commented on 2013-11-07 23:37 (UTC)
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 (UTC)
@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 (UTC)
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?
Pinned Comments
pricechrispy commented on 2017-04-25 17:39 (UTC) (edited on 2022-10-16 06:40 (UTC) by pricechrispy)
Before you flag this package out-of-date:
According to the official project page: https://astrada.github.io/google-drive-ocamlfuse/
Find latest release versions here: https://launchpad.net/~alessandro-strada/+archive/ubuntu/ppa
The latest releases are not all tagged versions on GitHub.
For the latest development versions on git, try: https://aur.archlinux.org/packages/google-drive-ocamlfuse-git
OLD official project page: http://gdfuse.forge.ocamlcore.org/
OLD release versions here: https://forge.ocamlcore.org/frs/?group_id=305