[Xmonad] Issue 81 in xmonad: X11-1.3.0 won't build on OSX 10.4 without altering X11.cabal to point to /usr/X11R6/lib

codesite-noreply at google.com codesite-noreply at google.com
Sun Nov 4 01:38:26 EDT 2007


Issue 81: X11-1.3.0 won't build on OSX 10.4 without altering X11.cabal 
to point to /usr/X11R6/lib
http://code.google.com/p/xmonad/issues/detail?id=81

New issue report by hitesh.jasani:
What steps will reproduce the problem?
1. untar X11-1.3.0
2. 'runghc Setup.hs configure --without-xinerama', configure correctly
finds X libs in /usr/X11R6/lib
3. 'runghc Setup.hs build' fails

What is the expected output? What do you see instead?

I expected that the build would succeed, but it fails because it no longer
knows where to pick up the X libs.  BTW, Cabal also issues a warning about
build-type being an unknown field.

% runghc Setup.hs build
Setup.hs: Warning: Unknown field 'build-type'
Preprocessing library X11-1.3.0...
/usr/bin/ld: can't locate file for: -lX11
collect2: ld returned 1 exit status
linking Graphics/X11/Types_hsc_make.o failed
command was: /opt/local/bin/ghc-6.6.1 -lX11 Graphics/X11/Types_hsc_make.o
-o Graphics/X11/Types_hsc_make
Setup.hs: got error code while preprocessing: Graphics.X11.Types



What version of the product are you using? On what operating system?

X11-1.3.0.tar.gz on an Intel Macbook running OSX 10.4.  GHC is ver 6.6.1
and Cabal is 1.1.6.2.

Please provide any additional information below.

If I add the line 'extra-lib-dirs:  /usr/X11R6/lib' to the bottom of
X11.cabal, the build will succeed and I can install fine.  But I'm not sure
why I should have to do this since Cabal had correctly figured out 
where my
X libs were during the configure step.

If this error is due to a module from XMonadContrib, please tag this issue
with 'Component-Contrib' below.



Issue attributes:
	Status: New
	Owner: ----
	Labels: Type-Defect Priority-Medium

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


More information about the Xmonad mailing list