Although I haven’t come around to write a lot about the Sun in the last couple of weeks, I’m working with the machine more than ever. For I’m mostly compiling stuff it’s no wonder that sooner or later I’d stumble over the “libstdc++.la is not a valid libtool archve” problem. Well, the solution is on the Internet. Actually, it can be found in Sun’s forum. However, it’s not easy to find it on Google, so I thought I’d just repeat it here. The problem is that both, the 32-bit and the 64-bit version of the file libstdc++.la are empty. You can fix this by putting this in /usr/sfw/lib/libstdc++.la:
# libstdc++.la – a libtool library file
# Generated by ltmain.sh – GNU libtool 1.4a-GCC3.0 (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.# The name that we can dlopen(3).
dlname=’libstdc++.so.6′# Names of this library.
library_names=’libstdc++.so.6.0.3 libstdc++.so.6 libstdc++.so’# The name of the static archive.
old_library=’libstdc++.a’# Libraries that this one depends upon.
dependency_libs=’-lc -lm -L/usr/sfw/lib -lgcc_s’# Version information for libstdc++.
current=6
age=0
revision=3# Is this an already installed library?
installed=yes# Files to dlopen/dlpreopen
dlopen=”
dlpreopen=”# Directory that this library needs to be installed in:
libdir=’/usr/sfw/lib’
For /usr/sfw/lib/64/libstdc++.la, use the following contents:
# libstdc++.la – a libtool library file
# Generated by ltmain.sh – GNU libtool 1.4a-GCC3.0 (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.# The name that we can dlopen(3).
dlname=’libstdc++.so.6′# Names of this library.
library_names=’libstdc++.so.6.0.3 libstdc++.so.6 libstdc++.so’# The name of the static archive.
old_library=’libstdc++.a’# Libraries that this one depends upon.
dependency_libs=’-L/lib/64 -lc -lm -L/usr/sfw/lib/64 -lgcc_s’# Version information for libstdc++.
current=6
age=0
revision=3# Is this an already installed library?
installed=yes# Files to dlopen/dlpreopen
dlopen=”
dlpreopen=”# Directory that this library needs to be installed in:
libdir=’/usr/sfw/lib/64′
Incoming search terms:
- libstdc la is not a valid libtool archive
- is not a valid libtool archive
- libstdc la\ is not a valid libtool archive
- solaris libstdc la\ is not a valid libtool archive
- unable to read what child say bad file descriptor php-fpm
- solaris 10 libtool
- not valid libtool archive
- not a valid libtool archive
- libtools solaris
- libtool: link: `/usr/lib64/libdbus-1 la is not a valid libtool archive
