Subject: pkg/24183: graphics/MesaLib build failure
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <john@johnrshannon.com>
List: netbsd-bugs
Date: 01/21/2004 06:17:04
>Number:         24183
>Category:       pkg
>Synopsis:       Unrecognized option '-Bforcearchive' in link command
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 21 13:18:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     John R. Shannon
>Release:        NetBSD 1.6ZH
>Organization:
	John R. Shannon.com
>Environment:
System: NetBSD colleen.internal.johnrshannon.com 1.6ZH NetBSD 1.6ZH (KERNEL.ACPI) #1: Tue Jan 20 14:06:47 MST 2004 root@colleen.internal.johnrshannon.com:/usr/obj/usr/src/sys/arch/i386/compile/KERNEL.ACPI i386
Architecture: i386
Machine: i386
>Description:
	Pkg fails in linking:

make   -f Makefile.X11 targets  "GL_LIB = libGL.so"  "GLU_LIB = libGLU.so"
"GLUT_LIB = libglut.so"  "GLW_LIB = libGLw.so"  "OSMESA_LIB = libOSMesa.so"
"APP_LIB_DEPS = -L/usr/pkg/lib -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11 -lm"
../../bin/mklib -o GL -major 1  -minor 5 -patch 060000 -install ../../lib
main/api_arrayelt.o main/api_loopback.o main/api_noop.o main/api_validate.o
main/accum.o main/arbparse.o main/arbprogram.o main/arbfragparse.o
main/arbvertparse.o main/attrib.o main/blend.o main/bufferobj.o
main/buffers.o main/clip.o main/colortab.o main/context.o main/convolve.o
main/debug.o main/depth.o main/dispatch.o main/dlist.o main/drawpix.o
main/enable.o main/enums.o main/eval.o main/extensions.o main/feedback.o
main/fog.o main/get.o main/hash.o main/hint.o main/histogram.o main/image.o
main/imports.o main/light.o main/lines.o main/matrix.o main/nvprogram.o
main/nvfragparse.o main/nvvertexec.o main/nvvertparse.o main/occlude.o
main/pixel.o main/points.o main/polygon.o main/program.o main/rastpos.o
main/state.o main/stencil.o main/texcompress.o main/texformat.o
main/teximage.o main/texobj.o main/texstate.o main/texstore.o main/texutil.o
main/varray.o main/vtxfmt.o glapi/glapi.o glapi/glthread.o
math/m_debug_clip.o math/m_debug_norm.o math/m_debug_xform.o math/m_eval.o
math/m_matrix.o math/m_translate.o math/m_vector.o math/m_xform.o
array_cache/ac_context.o array_cache/ac_import.o tnl/t_array_api.o
tnl/t_array_import.o tnl/t_context.o tnl/t_pipeline.o tnl/t_save_api.o
tnl/t_save_loopback.o tnl/t_save_playback.o tnl/t_vb_fog.o tnl/t_vb_light.o
tnl/t_vb_normals.o tnl/t_vb_points.o tnl/t_vb_program.o tnl/t_vb_render.o
tnl/t_vb_texgen.o tnl/t_vb_texmat.o tnl/t_vb_vertex.o tnl/t_vertex.o
tnl/t_vtx_api.o tnl/t_vtx_eval.o tnl/t_vtx_exec.o swrast/s_aaline.o
swrast/s_aatriangle.o swrast/s_accum.o swrast/s_alpha.o swrast/s_alphabuf.o
swrast/s_bitmap.o swrast/s_blend.o swrast/s_buffers.o swrast/s_copypix.o
swrast/s_context.o swrast/s_depth.o swrast/s_drawpix.o swrast/s_feedback.o
swrast/s_fog.o swrast/s_imaging.o swrast/s_lines.o swrast/s_logic.o
swrast/s_masking.o swrast/s_nvfragprog.o swrast/s_pixeltex.o
swrast/s_points.o swrast/s_readpix.o swrast/s_span.o swrast/s_stencil.o
swrast/s_texture.o swrast/s_texstore.o swrast/s_triangle.o swrast/s_zoom.o
swrast_setup/ss_context.o swrast_setup/ss_triangle.o x86/common_x86.o
x86/x86.o x86/3dnow.o x86/sse.o sparc/sparc.o    drivers/x11/glxapi.o
drivers/x11/fakeglx.o drivers/x11/xfonts.o drivers/x11/xm_api.o
drivers/x11/xm_dd.o drivers/x11/xm_line.o drivers/x11/xm_span.o
drivers/x11/xm_tri.o drivers/glide/fxapi.o drivers/glide/fxdd.o
drivers/glide/fxddspan.o drivers/glide/fxddtex.o drivers/glide/fxsetup.o
drivers/glide/fxtexman.o drivers/glide/fxtris.o drivers/glide/fxvb.o
drivers/glide/fxglidew.o drivers/glide/fxg.o drivers/svga/svgamesa.o
drivers/svga/svgamesa8.o drivers/svga/svgamesa15.o drivers/svga/svgamesa16.o
drivers/svga/svgamesa24.o drivers/svga/svgamesa32.o drivers/fbdev/glfbdev.o
mklib: Making NetBSD PIC shared library:  libGL
/usr/bin/ld: unrecognized option '-Bforcearchive'
/usr/bin/ld: use the --help option for usage information
mklib: Installing libGL_pic.a libGL.so.1.5 in ../../lib

>How-To-Repeat:
	"make" pkg
>Fix:

The following patch permits the pkg to build:
 
$NetBSD$

--- bin/mklib.orig	2004-01-14 16:18:18.000000000 -0700
+++ bin/mklib
@@ -214,7 +214,7 @@ case $ARCH in
 	rm -f ${LIBNAME}_pic.a ${LIBNAME}.so.${VERSION}
 	ar cq ${LIBNAME}_pic.a ${OBJECTS}
 	ranlib ${LIBNAME}_pic.a
-	ld -x -Bshareable -Bforcearchive -o ${LIBNAME}.so.${VERSION} ${LIBNAME}_pic.a
+	ld -x -Bshareable -o ${LIBNAME}.so.${VERSION} ${LIBNAME}_pic.a
 	FINAL_LIBS="${LIBNAME}_pic.a ${LIBNAME}.so.${VERSION}"
 	;;
 
>Release-Note:
>Audit-Trail:
>Unformatted: