[FFmpeg-user] ./configure: 1434: shift: can't shift that many

Pei Jia jiapei at longervision.com
Mon Aug 12 10:54:46 EEST 2019


Hi, all:

I'm just trying to build *FFmpeg 4.2 release* from source, on Ubuntu 
19.04, with gcc 8.3.0:

/% lsb_release -a//
//No LSB modules are available.//
//Distributor ID:    Ubuntu//
//Description:    Ubuntu 19.04//
//Release:    19.04//
//Codename:    disco//
//% gcc --version//
//gcc (Ubuntu 8.3.0-6ubuntu1) 8.3.0//
//Copyright (C) 2018 Free Software Foundation, Inc.//
//This is free software; see the source for copying conditions.  There 
is NO//
//warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE./



However, failed with this *ERROR* message:

/./configure: 1434: shift: can't shift that many/

*Line 1434* of file *configure* is *shift 4* in function *test_pkg_config()*

/test_pkg_config(){//
//    log test_pkg_config "$@"//
//    name="$1"//
//    pkg_version="$2"//
//    pkg="${2%% *}"//
//    headers="$3"//
//    funcs="$4"//
//    shift 4//
//    disable $name//
//    test_cmd $pkg_config --exists --print-errors $pkg_version || return//
//    pkg_cflags=$($pkg_config --cflags $pkg_config_flags $pkg)//
//    pkg_libs=$($pkg_config --libs $pkg_config_flags $pkg)//
//    check_func_headers "$headers" "$funcs" $pkg_cflags $pkg_libs "$@" &&//
//        enable $name &&//
//        set_sanitized "${name}_cflags"    $pkg_cflags &&//
//        set_sanitized "${name}_extralibs" $pkg_libs//
//}/


Any suggestions?
Pei


More information about the ffmpeg-user mailing list