Subject: sys_lib_search_path and sys_lib_dlsearch_path issues

From: James Sakalaukus <[email-masked]>
Date: Wed, 23 Oct 2019 16:27:39 +0000

I have encountered an issue when compiling several projects.  The libtool version installed from the Debian repository has the same issue as the one generated in at least 2 different projects.  I've attached the version from /usr/bin/libtool of my distribution.

System:
Linux 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u5 (2019-08-11) x86_64 GNU/Linux

Bash:
GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu)

Build errors observed:
eval: line 7980: unexpected EOF while looking for matching `''
eval: line 7981: syntax error: unexpected end of file

The issue is found in Lines 7979 and 7980 of the attached file:

7979: eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
7980: eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"

The corrected lines are:

7979: eval sys_lib_search_path='\$sys_lib_search_path_spec'
7980: eval sys_lib_dlsearch_path='\$sys_lib_dlsearch_path_spec'

Thanks,

James Sakalaukus