Subject: pkg/24344: graphics/gle fails to compile due to buildlink3 problem
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <Kai.Puolamaki@iki.fi>
List: netbsd-bugs
Date: 02/07/2004 13:35:32
>Number:         24344
>Category:       pkg
>Synopsis:       graphics/gle fails to compile due to buildlink3 problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 07 13:36:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Kai Puolamaki
>Release:        1.6.1
>Organization:
-
>Environment:
NetBSD winnie.localdomain 1.6.1 NetBSD 1.6.1 (WINNIE) #0: Sat Jan 31 12:28:48 EET 2004     root@winnie.localdomain:/usr/src/sys/arch/i386/compile/WINNIE i386
>Description:
"make" in /usr/pkgsrc/graphics/gle fails due to buildlink3 problem.

The reason may be that symlinks in
/usr/pkgsrc/graphics/gle/work.i386/.buildlink
point to /usr/X11R6/lib/libGL*, not to /usr/pkg/lib/libGL*
where graphics/MesaLib has installed the libGL* files.



>How-To-Repeat:
# cd /usr/pkgsrc/graphics/gle
# make
===> Checking for vulnerabilities in gle-3.1.0
=> Checksum OK for gle-3.1.0.tar.gz.
===> Extracting for gle-3.1.0
===> Required installed package glut>=: glut-6.0 found
===> Required installed package libtool-base>=1.4.20010614nb11: libtool-base-1.5.2 found
===> Required installed package x11-links>=0.20: x11-links-0.20 found
===> Patching for gle-3.1.0
===> Applying pkgsrc patches for gle-3.1.0
===> Overriding tools for gle-3.1.0
===> Buildlinking for gle-3.1.0
===> Configuring for gle-3.1.0
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
[clip]
checking for IceConnectionNumber in -lICE... yes
checking for glGetError in -lGL... no
configure: error: Cannot find required GL library
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/gle
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/graphics/gle

>Fix:
I don't know fix, but I was able to compile
the package with buildlink2...

--- graphics/gle/Makefile.orig  Sat Feb  7 15:29:45 2004
+++ graphics/gle/Makefile       Sat Feb  7 15:29:51 2004
@@ -12,7 +12,7 @@
 HOMEPAGE=      http://www.linas.org/gle/
 COMMENT=       GL subroutines for drawing tubing and extrusions
 
-USE_BUILDLINK3=                YES
+USE_BUILDLINK2=                YES
 USE_X11=               YES
 GNU_CONFIGURE=         YES
 
@@ -22,5 +22,5 @@
 USE_LIBTOOL=           YES
 LIBTOOL_OVERRIDE=      ${WRKSRC}/libtool
 
-.include "../../graphics/Mesa/buildlink3.mk"
+.include "../../graphics/Mesa/buildlink2.mk"
 .include "../../mk/bsd.pkg.mk"

>Release-Note:
>Audit-Trail:
>Unformatted: