I recently was trying to install some HID libs which uses a GNU libtool script generated from its autogen and configure scripts. My problem is that when I try to run 'make' on any configured source, I get a persistent error which I have tracked to two sections of the libtool.
To fix: I decided to edit the GNU libtool that comes with the source filesl. I essentially took out the ’~’ and added a ’;’ so that the
’ranlib’ bit and the prior ’ar’ command would not get stuck on the same line (see diff below). After doing so everything compiled fine. Please advise whether this was a bad idea.
Below is the error message as well as a 'diff -U5' of the original libtool and one that i edited to fix the problem
I found a vague reference to a similar problem from a websearch but it was a dead-end thread with no resolution. Any suggestions or help would be much appreciated.
_S
*********BEGIN_ERROR*********
ar cru .libs/libhidparser.a hidparser.o~ranlib .libs/libhidparser.a ar: hidparser.o~ranlib: No such file or directory
**********END_ERROR***********
*********BEGIN_DIFF*********
@@ -189,12 +189,12 @@
# The coded name of the library, if different from the real name.
soname_spec="\${libname}\${release}\${major}\$shared_ext"
# Commands used to build and install an old-style archive.
RANLIB="ranlib"
-old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs\$old_deplibs~\$RANLIB \$oldlib"
-old_postinstall_cmds="\$RANLIB \$oldlib~chmod 644 \$oldlib"
+old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs\$old_deplibs ;\$RANLIB \$oldlib"
+old_postinstall_cmds="\$RANLIB \$oldlib ;chmod 644 \$oldlib"
old_postuninstall_cmds=""
# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=""
@@ -6933,12 +6933,12 @@
# The coded name of the library, if different from the real name.
soname_spec="\${libname}\${release}\${major}\$shared_ext"
# Commands used to build and install an old-style archive.
RANLIB="ranlib"
-old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs\$old_deplibs~\$RANLIB \$oldlib"
-old_postinstall_cmds="\$RANLIB \$oldlib~chmod 644 \$oldlib"
+old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs\$old_deplibs ;\$RANLIB \$oldlib"
+old_postinstall_cmds="\$RANLIB \$oldlib ;chmod 644 \$oldlib"
old_postuninstall_cmds=""
# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=""
*********END_DIFF*********