<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>23708</bug_id>
          
          <creation_ts>2003-06-29 10:12 0000</creation_ts>
          <short_desc>ghc fails to compile without X</short_desc>
          <delta_ts>2003-10-12 09:31:17 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>aaron@clamp.net</reporter>
          <assigned_to>kosmikus@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>aaron@clamp.net</who>
            <bug_when>2003-06-29 10:12:02 0000</bug_when>
            <thetext>ghc wants lndir to build, and lndir is normally included with X.  If ghc doesn&apos;t find lndir, it attempts to build it&apos;s own, but ghc&apos;s lndir.c includes X11 headers, so you still need X.

Reproducible: Always
Steps to Reproduce:
1. USE=&quot;-opengl&quot; emerge ghc
Actual Results:  
(root@endermovin)(106/pts)(11:39am:06/29/03)- (#:/usr/portage/dev-lang/ghc)- emerge ghc Calculating dependencies ...done! &gt;&gt;&gt; emerge (1 of 1) dev-lang/ghc-5.04.3 to / &gt;&gt;&gt; md5 src_uri ;-) ghc-5.04.3-src.tar.bz2 &gt;&gt;&gt; Unpacking source... &gt;&gt;&gt; Unpacking ghc-5.04.3-src.tar.bz2 to /var/tmp/portage/ghc-5.04.3/work which: no lndir in (/usr/lib/ccache/bin:/usr/lib/distcc/bin:/sbin:/usr/sbin:/usr/lib/portage/bin:/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.2) You don\&apos;t seem to have lndir available, building my own version... gcc -march=pentium4 -O3 -pipe -mmmx -msse -mfpmath=sse,387 -fomit-frame-pointer -fthread-jumps -fforce-addr -frerun-cse-after-loop -frerun-loop-opt -fexpensive-optimizations -falign-functions=4 -falign-jumps=4    lndir.c   -o lndir lndir.c:46:21: X11/Xos.h: No such file or directory lndir.c:47:28: X11/Xfuncproto.h: No such file or directory distcc[15310] ERROR: compile on localhost failed with exit code 1 make: *** [lndir] Error 1  !!! ERROR: dev-lang/ghc-5.04.3 failed. !!! Function src_unpack, Line 91, Exitcode 2 !!! (no error message)

Expected Results:  
It should have either compiled wihtout failing or had X11 as a dependancies so that it would emerge it before emerging ghc.  I&apos;m pretty sure this build should be possible without X11 though...

(root@endermovin)(106/pts)(11:39am:06/29/03)- (#:/usr/portage/dev-lang/ghc)- emerge info Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz GENTOO_MIRRORS=&quot;http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo&quot; CONFIG_PROTECT=&quot;/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config&quot; CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot; PORTDIR=&quot;/usr/portage&quot; DISTDIR=&quot;/usr/portage/distfiles&quot; PKGDIR=&quot;/usr/portage/packages&quot; PORTAGE_TMPDIR=&quot;/var/tmp&quot; PORTDIR_OVERLAY=&quot;&quot; USE=&quot;x86 oss 3dnow apm avi crypt cups encode gif imlib java jpeg kde libg++ mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 zlib alsa gdbm berkdb slang readline tetex svga ruby sdl gpm tcpd pam libwww ssl perl python oggvorbis mmx sse acpi emacs -X -gtk -gtk2 -qt -athena -motif -tcltk -gnome -qt fbcon directfb -arts -esd -xv -opengl -xmms&quot; COMPILER=&quot;gcc3&quot; CHOST=&quot;i686-pc-linux-gnu&quot; CFLAGS=&quot;-march=pentium4 -O3 -pipe -mmmx -msse -mfpmath=sse,387 -fomit-frame-pointer -fthread-jumps -fforce-addr -frerun-cse-after-loop -frerun-loop-opt -fexpensive-optimizations -falign-functions=4 -falign-jumps=4&quot; CXXFLAGS=&quot;-O2 -mcpu=i686 -pipe&quot; ACCEPT_KEYWORDS=&quot;x86&quot; MAKEOPTS=&quot;-j8&quot; AUTOCLEAN=&quot;yes&quot; SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot; FEATURES=&quot;sandbox ccache distcc&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kosmikus@gentoo.org</who>
            <bug_when>2003-07-01 07:29:59 0000</bug_when>
            <thetext>I&apos;ll take this bug.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kosmikus@gentoo.org</who>
            <bug_when>2003-07-02 04:07:27 0000</bug_when>
            <thetext>The reported problem will not occur with ghc-6.0 and any later
versions, because the bootstrapping is handled internally by
ghc&apos;s build system now.

However, upgrading to ghc-6.0 can not be generally recommended
yet, because it is likely to contain some severe bugs as the
first release of a new major version.

I have fixed the problem in ghc-5.04.3-r1, which is also still
marked testing. Over ghc-5.04.3, it has the additional advantage 
that it also builds the documentation if USE=doc is selected.

I&apos;d appreciate feedback if it works for you now.

Thanks for reporting.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aaron@clamp.net</who>
            <bug_when>2003-07-02 12:17:57 0000</bug_when>
            <thetext>Tested and works beautifully - solid work, thanks for taking it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lanius@gentoo.org</who>
            <bug_when>2003-10-12 09:31:17 0000</bug_when>
            <thetext>-&gt; close</thetext>
          </long_desc>
      
    </bug>

</bugzilla>