[libav-bugs] [Bug 498] New: configure: expansion of SHFLAGS leads to syntax errors in eval

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Sat Apr 27 00:57:56 CEST 2013


https://bugzilla.libav.org/show_bug.cgi?id=498

           Summary: configure: expansion of SHFLAGS leads to syntax errors
                    in eval
           Product: Libav
           Version: git HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: general
        AssignedTo: bugzilla at libav.org
        ReportedBy: michael.kostylev at gmail.com


Using a compiler from the open64 or pathscale family triggers a not yet
critical error in configure:
% ../src/configure --cc=/opt/open64/bin/opencc
...
../src/configure: eval: line 380: syntax error near unexpected token `('
../src/configure: eval: line 380: `case -Wl,-soname,$$(@F) in
-Wdisabled-optimization|-Wtype-limits|-fno-signed-zeros) ;; *) echo
-Wl,-soname,$$(@F) ;; esac'
../src/configure: line 380: warning: syntax errors in . or eval will cause
future versions of the shell to abort as Posix requires
../src/configure: line 380: SUBDIR: command not found
../src/configure: line 380: NAME: command not found
../src/configure: line 380: SUBDIR: command not found
../src/configure: line 380: NAME: command not found
(the actual message depends on the shell)

Here is how it happens:
SHFLAGS=$(echo $($ldflags_filter $SHFLAGS))
=>
$ldflags_filter $SHFLAGS
=>
filter_out '-Wdisabled-optimization|-Wtype-limits|-fno-signed-zeros' -shared
'-Wl,-soname,$$(@F)' -Wl,-Bsymbolic '-Wl,--version-script,$(
SUBDIR)lib$(NAME).ver'
=>
eval 'case -Wl,-soname,$$(@F) in
-Wdisabled-optimization|-Wtype-limits|-fno-signed-zeros) ;; *) echo
-Wl,-soname,$$(@F) ;; esac'

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list