[darcs-devel] [issue2345] misleading error from -liconv check in Setup.lhs
Dan Frumin
bugs at darcs.net
Mon Jan 20 22:14:02 UTC 2014
Dan Frumin <difrumin at 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 at darcs.net>
<http://bugs.darcs.net/issue2345>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resolve-issue2345_-solution-using-cabal_s-checkforeigndeps.dpatch
Type: application/octet-stream
Size: 5228 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20140120/c2000d5f/attachment.obj>
More information about the darcs-devel
mailing list