[prev in list] [next in list] [prev in thread] [next in thread]
List: darcs-devel
Subject: [darcs-devel] [issue2345] misleading error from -liconv check in Setup.lhs
From: Dan Frumin <bugs () darcs ! net>
Date: 2014-01-20 22:14:02
Message-ID: 1390256042.09.0.991535561847.issue2345 () darcs ! net
[Download RAW message or body]
Dan Frumin <difrumin@gmail.com> added the comment:
Possible solution to the issue.
I was not sure about getting rid of the `postConf` hook altogether.
Right now, the default `postConf` hook contains just that: an external
dependency check; however, they might arrive at the stage when they want
to add something else to that hook.
Here is some sample output from my Linux system without the libcurl-dev
package:
----------------------------------------------
[0] % cabal configure -fforce-char8-encoding
Resolving dependencies...
[1 of 1] Compiling Main ( Setup.lhs, dist/setup/Main.o )
Linking ./dist/setup/setup ...
Configuring darcs-2.9.8...
setup: Missing dependency on a foreign library:
* Missing (or bad) header file: curl/curl.h
* Missing C library: curl
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
If the header file does exist, it may contain errors that are caught by
the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
[1] % cabal configure -fforce-char8-encoding -f-curl
Resolving dependencies...
Configuring darcs-2.9.8...
checking whether to use -liconv... not needed.
----------------------------------------------
----------
status: -> has-patch
__________________________________
Darcs bug tracker <bugs@darcs.net>
<http://bugs.darcs.net/issue2345>
__________________________________
["resolve-issue2345_-solution-using-cabal_s-checkforeigndeps.dpatch" (application/octet-stream)]
_______________________________________________
darcs-devel mailing list
darcs-devel@darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic