Subject: *.la and *.so files not getting built (was MesaLib install error:
To: None <>
From: Eric Boutilier <Eric.Boutilier@Sun.COM>
List: tech-pkg
Date: 03/10/2005 08:52:25
On Wed, 9 Mar 2005 wrote:
> Eric Boutilier wrote:
>> On Wed, 9 Mar 2005 wrote:
>>> ... I built xmms today on Solaris 10, together with MesaLib
>>> and didn't have any problems...
>> Excellent!
>> So this is weird though. The only meaningful difference I can think
>> of is if you're using Sun compilers? (I did a CVS update last night
>> and I do so at least a few times a week.)
>> I suppose we might have different system architectures too, but
>> that *shouldn't* matter. I'm using x86 HW...
>> ...
> I'm using gcc from pkgsrc, also:
> I update my pkgsrc tree with:
> cvs update -dPA
> And before building a package I've built before, I do:
> bmake clean
> bmake clean-depends
> bmake package
> Maybe you have an old libtool installed?

Thanks for your help with this.

I re-installed libtool, but that didn't do it.

Then I decided to go all-out and bootstrap a new /usr/pkg (see
below), but the problem persists.

I did some more research relative to the main error message:

libtool: install: `/pkgsrc/graphics/MesaLib/work/Mesa-6.2.1/src/mesa/' is not a valid

I found out that this error is misleading. It should say
is missing, not invalid. The reason being, my build is only
creating the .a file for libGL and not the corresponding .la file
(or .so file).

In addition, this problem happens on my system to all three of
MesaLib's libraries. Specifically, pkgsrc builds these:


But it should also be building their corresponding .la and .so files.

Following is my latest troubleshooting tactic:

Overnight last night, I kicked off a re-build of Mesa/MesaLib on
a freshly bootstrapped /usr/pkg. In specific: I moved /usr/pkg
and /var/db out of the way, ran "cvs update -dP", ran bootstrap,
installed /usr/pkg/etc/mk.conf, and did a "make install" in
graphics/Mesa. This of course built everything anew (even the
gcc compilers) before trying to build/install MesaLib.

Here's a filtered view of the output of this latest attempt,
showing the extract, install, and return lines, and the error
message where it dies.

===> Extracting for Mesa-6.2.1
===> Extracting for glut-6.2.1nb2
===> Extracting for glu-6.2.1
===> Extracting for MesaLib-6.2.1
===> Extracting for libtool-base-1.5.10nb9
===> Extracting for gcc3-c-3.3.5
===> Extracting for pkg_install-info-4.5nb3
===> Installing for pkg_install-info-4.5nb3
===> Returning to build of gcc3-c-3.3.5
===> Extracting for gmake-3.80nb4
===> Extracting for patch-2.5.4nb2
===> Installing for patch-2.5.4nb2
===> Returning to build of gmake-3.80nb4
===> Installing for gmake-3.80nb4
===> Returning to build of gcc3-c-3.3.5
===> Installing for gcc3-c-3.3.5
===> Returning to build of libtool-base-1.5.10nb9
===> Extracting for gcc3-c++-3.3.5
===> Installing for gcc3-c++-3.3.5
===> Returning to build of libtool-base-1.5.10nb9
===> Extracting for gcc3-f77-3.3.5
===> Installing for gcc3-f77-3.3.5
===> Returning to build of libtool-base-1.5.10nb9
===> Installing for libtool-base-1.5.10nb9
===> Returning to build of MesaLib-6.2.1
===> Extracting for x11-links-0.24
===> Installing for x11-links-0.24
===> Returning to build of MesaLib-6.2.1
===> Installing for MesaLib-6.2.1
===> Creating installation directories
lib:    gid (3, 0, modified)
Installing libraries.
libtool: install: `/pkgsrc/graphics/MesaLib/work/Mesa-6.2.1/src/mesa/' is not a valid
libtool archive
Try `libtool --help --mode=install' for more information.
*** Error code 1

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

Thanks in advance, for any help.