Re: bug: 0.5.13 regression in parsing

Harald van Dijk <[email protected]> Tue, 23 Sep 2025 11:11:37 +0100
Newsgroups org.kernel.vger.dash
Message-ID <[email protected]>
On 23/09/2025 07:29, Herbert Xu wrote:
> Reilly Brogan <[email protected]> wrote:
>>
>> (I've uploaded the full libtool script at
>> https://gist.githubusercontent.com/ReillyBrogan/9a4e6a02e5871fdbeb793a549131e197/raw/5a00be91f0cf38df7706eabc4c0eadcac74e84dd/gistfile1.txt)
> 
> There's something wrong with this script because it fails with
> every shell, including bash:
> 
> $ bash -n gistfile1.txt
> gistfile1.txt: line 369: syntax error near unexpected token `}'
> gistfile1.txt: line 369: `            echo "local: *; };" >> $output_objdir/$libname.ver~'
> 
> Did it get corrupted somehow?

Those lines are:

   archive_expsym_cmds="echo "{ global:" > $output_objdir/$libname.ver~
               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> 
$output_objdir/$libname.ver~
               echo "local: *; };" >> $output_objdir/$libname.ver~
               $CC -shared $pic_flag $libobjs $deplibs $compiler_flags 
$wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver 
-o $lib"

What those lines should look like, and look like on my local system 
after running configure:

   archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> 
$output_objdir/$libname.ver~
               echo "local: *; };" >> $output_objdir/$libname.ver~
               $CC -shared $pic_flag $libobjs $deplibs $compiler_flags 
$wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver 
-o $lib'

config.status file is a file that gets generated by configure, so 
something is going wrong running configure with dash 0.5.13, and some 
more digging is needed to figure out where exactly it's going wrong.

Cheers,
Harald van Dijk