Subject: MesaLib install error: '... libGL.la' is not a valid libtool archive
To: None <tech-pkg@NetBSD.org>
From: Eric Boutilier <Eric.Boutilier@Sun.COM>
List: tech-pkg
Date: 03/09/2005 16:27:35
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--8323328-1282024819-1110407255=:19301
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

Inspired by the recent success with Thunderbird, I decided to
revisit Mesa/MesaLib on Solaris because so many marquee desktop
apps require it -- xmms being one of the most notable ones.

The last time I tried to build graphics/MesaLib (via xmms) was
few weeks ago. So today I kicked off another build.  Happily,
the configure/build stages complete just fine. However, during
the install stage it stops with this error:

=2E..
Installing libraries.
libtool: install: `/pkgsrc/graphics/MesaLib/work/Mesa-6.2.1/src/mesa/libGL.=
la' is not a valid libtool archive
Try `libtool --help --mode=3Dinstall' for more information.
=2E..

FWIW, I don't recall ever seeing anything simliar in any other failed build=
s.

Here's my environment:
- # uname -a
     SunOS noname 5.10 Generic i86pc i386 i86pc
- Latest pkgsrc tree (updated last night)
- gcc3-c built by pkgsrc. In specific, mk.conf has:
     USE_PKGSRC_GCC=3DYES
     GCC_REQD+=3D3

Here are the last 4 lines from .work.log followed by the the last
30 lines of output from make.   --Eric

--------
<.> /usr/pkg/bin/libtool --mode=3Dlink gcc -o libGLw.a GLwDrawA.lo -rpath /=
usr/pkg/lib -version-info 1:0 -L/pkgsrc/graphics/MesaLib/work/.buildlink/li=
b
[*] /pkgsrc/graphics/MesaLib/work/.wrapper/bin/libtool --mode=3Dinstall /us=
r/ucb/install -c -o root -g root -m 555 /pkgsrc/graphics/MesaLib/work/Mesa-=
6.2.1/src/mesa/libGL.la /usr/pkg/lib
     (scan-libtool) mode: install
<.> /usr/pkg/bin/libtool --mode=3Dinstall /usr/ucb/install -c -o root -g ro=
ot -m 555 /pkgsrc/graphics/MesaLib/work/Mesa-6.2.1/src/mesa/libGL.la /usr/p=
kg/lib
--------

if [ "x11 osmesa" =3D "osmesa" ] ; then  libtool  --mode=3Dlink gcc -o libO=
SMesa.a  main/api_arrayelt.lo main/api_loopback.lo main/api_noop.lo main/ap=
i_validate.lo main/accum.lo main/attrib.lo main/blend.lo main/bufferobj.lo =
main/buffers.lo main/clip.lo main/colortab.lo main/context.lo main/convolve=
=2Elo main/debug.lo main/depth.lo main/dispatch.lo main/dlist.lo main/drawp=
ix.lo main/enable.lo main/enums.lo main/eval.lo main/extensions.lo main/fee=
dback.lo main/fog.lo main/get.lo main/hash.lo main/hint.lo main/histogram.l=
o main/image.lo main/imports.lo main/light.lo main/lines.lo main/matrix.lo =
main/occlude.lo main/pixel.lo main/points.lo main/polygon.lo main/rastpos.l=
o main/state.lo main/stencil.lo main/texcompress.lo main/texcompress_s3tc.l=
o main/texcompress_fxt1.lo main/texformat.lo main/teximage.lo main/texobj.l=
o main/texstate.lo main/texstore.lo main/varray.lo main/vtxfmt.lo glapi/gla=
pi.lo glapi/glthread.lo math/m_debug_clip.lo math/m_debug_norm.lo math/m_de=
bug_xform.lo math/m_eval.lo math/m_matrix.lo math/m_translate.lo math/m_vec=
tor.lo math/m_xform.lo array_cache/ac_context.lo array_cache/ac_import.lo t=
nl/t_array_api.lo tnl/t_array_import.lo tnl/t_context.lo tnl/t_pipeline.lo =
tnl/t_save_api.lo tnl/t_save_loopback.lo tnl/t_save_playback.lo tnl/t_vb_fo=
g.lo tnl/t_vb_light.lo tnl/t_vb_normals.lo tnl/t_vb_points.lo tnl/t_vb_prog=
ram.lo tnl/t_vb_render.lo tnl/t_vb_texgen.lo tnl/t_vb_texmat.lo tnl/t_vb_ve=
rtex.lo tnl/t_vertex.lo tnl/t_vertex_c.lo tnl/t_vertex_codegen.lo tnl/t_vtx=
_api.lo tnl/t_vtx_generic.lo tnl/t_vtx_x86.lo tnl/t_vtx_eval.lo tnl/t_vtx_e=
xec.lo shader/arbfragparse.lo shader/arbprogparse.lo shader/arbprogram.lo s=
hader/arbvertparse.lo shader/grammar_mesa.lo shader/nvfragparse.lo shader/n=
vprogram.lo shader/nvvertexec.lo shader/nvvertparse.lo shader/program.lo sw=
rast/s_fragprog_to_c.lo swrast/s_aaline.lo swrast/s_aatriangle.lo swrast/s_=
accum.lo swrast/s_alpha.lo swrast/s_alphabuf.lo swrast/s_auxbuffer.lo swras=
t/s_bitmap.lo swrast/s_blend.lo swrast/s_buffers.lo swrast/s_copypix.lo swr=
ast/s_context.lo swrast/s_depth.lo swrast/s_drawpix.lo swrast/s_feedback.lo=
 swrast/s_fog.lo swrast/s_imaging.lo swrast/s_lines.lo swrast/s_logic.lo sw=
rast/s_masking.lo swrast/s_nvfragprog.lo swrast/s_pixeltex.lo swrast/s_poin=
ts.lo swrast/s_readpix.lo swrast/s_span.lo swrast/s_stencil.lo swrast/s_tcc=
=2Elo swrast/s_texture.lo swrast/s_texstore.lo swrast/s_triangle.lo swrast/=
s_zoom.lo swrast_setup/ss_context.lo swrast_setup/ss_triangle.lo x86/common=
_x86.lo x86/x86.lo x86/3dnow.lo x86/sse.lo sparc/sparc.lo drivers/common/dr=
iverfuncs.lo drivers/osmesa/osmesa.lo -rpath /usr/pkg/lib  -version-info 6:=
2 ;  else  libtool  --mode=3Dlink gcc -o libOSMesa.a  drivers/osmesa/osmesa=
=2Elo -rpath /usr/pkg/lib  -version-info 6:2 ;  fi
libtool: link: warning: `-L' is ignored for archives/objects
libtool: link: warning: `-rpath' is ignored for archives
libtool: link: warning: `-version-info/-version-number' is ignored for arch=
ives
ar cru libOSMesa.a  drivers/osmesa/osmesa.o
ranlib libOSMesa.a
libtool  --mode=3Dcompile gcc -c -I../../include -I/usr/include/Motif1.2 -I=
/usr/contrib/X11R6/include -I/usr/X11R6/include -O3 -m486 -fPIC -I/usr/open=
win/include -DUSE_XSHM GLwDrawA.c
mkdir .libs
  gcc -c -I../../include -I/usr/include/Motif1.2 -m486 -fPIC -I/pkgsrc/grap=
hics/MesaLib/work/.x11-buildlink/include -DUSE_XSHM GLwDrawA.c  -fPIC -DPIC=
 -o .libs/GLwDrawA.o
`-m486' is deprecated. Use `-march=3Di486' or `-mcpu=3Di486' instead.
  gcc -c -I../../include -I/usr/include/Motif1.2 -m486 -fPIC -I/pkgsrc/grap=
hics/MesaLib/work/.x11-buildlink/include -DUSE_XSHM GLwDrawA.c -o GLwDrawA.=
o >/dev/null 2>&1
libtool  --mode=3Dlink gcc -o libGLw.a GLwDrawA.lo  -rpath /usr/pkg/lib -ve=
rsion-info 1:0
libtool: link: warning: `-L' is ignored for archives/objects
libtool: link: warning: `-rpath' is ignored for archives
libtool: link: warning: `-version-info/-version-number' is ignored for arch=
ives
ar cru libGLw.a  GLwDrawA.o
ranlib libGLw.a
=3D> Unwrapping files-to-be-installed.
=3D=3D=3D> Installing for MesaLib-6.2.1
=3D=3D=3D> Creating installation directories
lib:    gid (3, 0, modified)
Installing libraries.
libtool: install: `/pkgsrc/graphics/MesaLib/work/Mesa-6.2.1/src/mesa/libGL.=
la' is not a valid libtool archive
Try `libtool --help --mode=3Dinstall' for more information.
*** Error code 1

Stop.
bmake: stopped in /pkgsrc/graphics/MesaLib
*** Error code 1

--8323328-1282024819-1110407255=:19301--