From owner-freebsd-ports@FreeBSD.ORG Sun Nov 9 12:58:34 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0392916A4CE for ; Sun, 9 Nov 2003 12:58:34 -0800 (PST) Received: from phys9911.phys.tue.nl (PHYS9911.phys.tue.nl [131.155.116.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id B149343FDD for ; Sun, 9 Nov 2003 12:58:32 -0800 (PST) (envelope-from karelj@phys9911.phys.tue.nl) Received: from phys9911.phys.tue.nl (localhost [127.0.0.1]) hA9Kwact009333; Sun, 9 Nov 2003 21:58:36 +0100 (CET) (envelope-from karelj@phys9911.phys.tue.nl) Received: (from karelj@localhost) by phys9911.phys.tue.nl (8.12.10/8.12.10/Submit) id hA9KwZwI009332; Sun, 9 Nov 2003 21:58:35 +0100 (CET) (envelope-from karelj) Date: Sun, 9 Nov 2003 21:58:35 +0100 From: "Karel J. Bosschaart" To: Eric Anholt Message-ID: <20031109205835.GA9285@phys9911.phys.tue.nl> References: <20031108181848.GA49725@nunotex.tex.bogus> <1068327925.675.7.camel@leguin> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1068327925.675.7.camel@leguin> User-Agent: Mutt/1.4.1i cc: freebsd-ports@freebsd.org Subject: Re: libglut doesn't compile X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Nov 2003 20:58:34 -0000 On Sat, Nov 08, 2003 at 01:45:26PM -0800, Eric Anholt wrote: > On Sat, 2003-11-08 at 10:18, Nuno Teixeira wrote: > > Hello to all, > > > > libglut doens't compile on a FreeBSD 5.1 p10 Release. > > > > The error: > > > > cc -O -pipe -march=athlon-xp -I../include -I/usr/X11R6/include -c > > glut_vidresize.c -o glut_vidresize.o > > cc -O -pipe -march=athlon-xp -I../include -I/usr/X11R6/include -c > > glut_warp.c -o glut_warp.o > > cc -O -pipe -march=athlon-xp -I../include -I/usr/X11R6/include -c > > glut_win.c -o glut_win.o > > cc -O -pipe -march=athlon-xp -I../include -I/usr/X11R6/include -c > > glut_winmisc.c -o glut_winmisc.o > > cc -O -pipe -march=athlon-xp -I../include -I/usr/X11R6/include -c > > layerutil.c -o layerutil.o > > building static glut library > > ranlib libglut.a > > cc -fpic -DPIC -O -pipe -march=athlon-xp -I../include > > -I/usr/X11R6/include -c glut_8x13.c -o glut_8x13.So > > ld: cannot find -lGL > > *** Error code 1 > > > > Stop in /usr/ports/graphics/libglut/work/Mesa-5.0.2/src-glut. > > *** Error code 1 > > This log doesn't make sense to me. Where is -lGL happening? Did you > build with make -j or something? > > Do you actually have libGL installed? (/usr/X11R6/lib/libGL*) If you > have libX11 in there but not libGL, your installation may be broken and > you need to reinstall XFree86-4-libraries. > FWIW, I just had the same problem on -stable. In my case it turned out to be caused by the presence of the x11/nvidia-driver port. I worked around by 'portupgrade -f XFree86-4-libraries', 'portupgrade Mesa' and finally 'portupgrade nvidia-driver' (to get back the replacement libs). It seems to work OK now; I tried glxgears, Unreal and UT which all seem to run as before. I guess a 'pkg_delete nvidia-driver' would have done the job as well instead of a forced XFree86-4-libraries reinstall. Regards, Karel.