./configure fails with a sed error

The place to discuss linux version of MakeMKV
Post Reply
Message
Author
alfredo
Posts: 3
Joined: Tue Dec 16, 2014 10:47 pm

./configure fails with a sed error

#1 Post by alfredo » Tue Dec 16, 2014 11:04 pm

./configure creates a zero-length Makefile, after failing(?) with a sed error:

Code: Select all

sed: -e expression #1, char 395: unknown option to `s' 
My system is:

Code: Select all

> uname -a
Linux blackbox 3.13.0-40-generic #69-Ubuntu SMP Thu Nov 13 17:56:26 UTC 2014 i686 i686 i686 GNU/Linux 
Screen dump is:

Code: Select all

homer@blackbox /home/z_shared/software/dvd_&_cd_tools/makemkv-oss-1.9.0
> ./configure 
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for -objcopy... no
checking for objcopy... objcopy
checking for -ld... no
checking for ld... ld
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for compress2 in -lz... yes
checking openssl/opensslconf.h usability... yes
checking openssl/opensslconf.h presence... yes
checking for openssl/opensslconf.h... yes
checking for AES_encrypt in -lcrypto... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for XML_ParserCreate in -lexpat... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ffmpeg... yes
checking whether LIBAVCODEC_VERSION_MAJOR is declared... yes
checking LIBAVCODEC_VERSION_MAJOR... 54
checking for AVFrame.nb_samples... yes
checking whether AV_SAMPLE_FMT_U8P is declared... yes
checking for avcodec_encode_audio2... yes
checking for AVCodecContext.refcounted_frames... no
checking whether avcodec_free_frame is declared... yes
checking whether av_frame_free is declared... no
checking for av_log_format_line... no
checking for enum AVCodecID... yes
checking whether AV_CODEC_ID_NONE is declared... yes
checking whether av_frame_get_channels is declared... no
checking whether av_frame_get_sample_rate is declared... no
checking whether av_frame_set_channel_layout is declared... no
checking for AVCodecParserContext.duration... yes
checking whether AV_CH_TOP_BACK_CENTER is declared... yes
configure: creating ./config.status
config.status: creating Makefile
sed: -e expression #1, char 395: unknown option to `s'
config.status: creating libffabi/src/ffabicfg.h
config.status: libffabi/src/ffabicfg.h is unchanged
homer@blackbox /home/z_shared/software/dvd_&_cd_tools/makemkv-oss-1.9.0
> 
config.log is attached

alfredo
Posts: 3
Joined: Tue Dec 16, 2014 10:47 pm

Re: ./configure fails with a sed error

#2 Post by alfredo » Tue Dec 16, 2014 11:07 pm

Sorry, I could not attach the config.log file. It said that the board attachment quota has been reached. Here it its:

Code: Select all

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by ffabi configure 0, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = blackbox
uname -m = i686
uname -r = 3.13.0-40-generic
uname -s = Linux
uname -v = #69-Ubuntu SMP Thu Nov 13 17:56:26 UTC 2014

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/homer/Private/bin/
PATH: /sbin/
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2555: checking build system type
configure:2569: result: i686-pc-linux-gnu
configure:2589: checking host system type
configure:2602: result: i686-pc-linux-gnu
configure:2622: checking target system type
configure:2635: result: i686-pc-linux-gnu
configure:2731: checking for gcc
configure:2747: found /usr/bin/gcc
configure:2758: result: gcc
configure:2987: checking for C compiler version
configure:2996: gcc --version >&5
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 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.

configure:3007: $? = 0
configure:2996: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.8/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-i386/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-i386 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-i386 --with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-targets=all --enable-multiarch --disable-werror --with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) 
configure:3007: $? = 0
configure:2996: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3007: $? = 4
configure:2996: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3007: $? = 4
configure:3027: checking whether the C compiler works
configure:3049: gcc    conftest.c  >&5
configure:3053: $? = 0
configure:3101: result: yes
configure:3104: checking for C compiler default output file name
configure:3106: result: a.out
configure:3112: checking for suffix of executables
configure:3119: gcc -o conftest    conftest.c  >&5
configure:3123: $? = 0
configure:3145: result: 
configure:3167: checking whether we are cross compiling
configure:3175: gcc -o conftest    conftest.c  >&5
configure:3179: $? = 0
configure:3186: ./conftest
configure:3190: $? = 0
configure:3205: result: no
configure:3210: checking for suffix of object files
configure:3232: gcc -c   conftest.c >&5
configure:3236: $? = 0
configure:3257: result: o
configure:3261: checking whether we are using the GNU C compiler
configure:3280: gcc -c   conftest.c >&5
configure:3280: $? = 0
configure:3289: result: yes
configure:3298: checking whether gcc accepts -g
configure:3318: gcc -c -g  conftest.c >&5
configure:3318: $? = 0
configure:3359: result: yes
configure:3376: checking for gcc option to accept ISO C89
configure:3439: gcc  -c -g -O2  conftest.c >&5
configure:3439: $? = 0
configure:3452: result: none needed
configure:3530: checking for g++
configure:3546: found /usr/bin/g++
configure:3557: result: g++
configure:3584: checking for C++ compiler version
configure:3593: g++ --version >&5
g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 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.

configure:3604: $? = 0
configure:3593: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.8/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-i386/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-i386 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-i386 --with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-targets=all --enable-multiarch --disable-werror --with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) 
configure:3604: $? = 0
configure:3593: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:3604: $? = 4
configure:3593: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:3604: $? = 4
configure:3608: checking whether we are using the GNU C++ compiler
configure:3627: g++ -c   conftest.cpp >&5
configure:3627: $? = 0
configure:3636: result: yes
configure:3645: checking whether g++ accepts -g
configure:3665: g++ -c -g  conftest.cpp >&5
configure:3665: $? = 0
configure:3706: result: yes
configure:3731: checking for -objcopy
configure:3761: result: no
configure:3771: checking for objcopy
configure:3787: found /usr/bin/objcopy
configure:3799: result: objcopy
configure:3816: checking for -ld
configure:3846: result: no
configure:3856: checking for ld
configure:3872: found /usr/bin/ld
configure:3884: result: ld
configure:3915: checking for a BSD-compatible install
configure:3983: result: /usr/bin/install -c
configure:4006: checking how to run the C preprocessor
configure:4037: gcc -E  conftest.c
configure:4037: $? = 0
configure:4051: gcc -E  conftest.c
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
 #include <ac_nonexistent.h>
                            ^
compilation terminated.
configure:4051: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ffabi"
| #define PACKAGE_TARNAME "ffabi"
| #define PACKAGE_VERSION "0"
| #define PACKAGE_STRING "ffabi 0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4076: result: gcc -E
configure:4096: gcc -E  conftest.c
configure:4096: $? = 0
configure:4110: gcc -E  conftest.c
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
 #include <ac_nonexistent.h>
                            ^
compilation terminated.
configure:4110: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ffabi"
| #define PACKAGE_TARNAME "ffabi"
| #define PACKAGE_VERSION "0"
| #define PACKAGE_STRING "ffabi 0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4139: checking for grep that handles long lines and -e
configure:4197: result: /bin/grep
configure:4202: checking for egrep
configure:4264: result: /bin/grep -E
configure:4269: checking for ANSI C header files
configure:4289: gcc -c -g -O2  conftest.c >&5
configure:4289: $? = 0
configure:4362: gcc -o conftest -g -O2   conftest.c  >&5
configure:4362: $? = 0
configure:4362: ./conftest
configure:4362: $? = 0
configure:4373: result: yes
configure:4386: checking for sys/types.h
configure:4386: gcc -c -g -O2  conftest.c >&5
configure:4386: $? = 0
configure:4386: result: yes
configure:4386: checking for sys/stat.h
configure:4386: gcc -c -g -O2  conftest.c >&5
configure:4386: $? = 0
configure:4386: result: yes
configure:4386: checking for stdlib.h
configure:4386: gcc -c -g -O2  conftest.c >&5
configure:4386: $? = 0
configure:4386: result: yes
configure:4386: checking for string.h
configure:4386: gcc -c -g -O2  conftest.c >&5
configure:4386: $? = 0
configure:4386: result: yes
configure:4386: checking for memory.h
configure:4386: gcc -c -g -O2  conftest.c >&5
configure:4386: $? = 0
configure:4386: result: yes
configure:4386: checking for strings.h
configure:4386: gcc -c -g -O2  conftest.c >&5
configure:4386: $? = 0
configure:4386: result: yes
configure:4386: checking for inttypes.h
configure:4386: gcc -c -g -O2  conftest.c >&5
configure:4386: $? = 0
configure:4386: result: yes
configure:4386: checking for stdint.h
configure:4386: gcc -c -g -O2  conftest.c >&5
configure:4386: $? = 0
configure:4386: result: yes
configure:4386: checking for unistd.h
configure:4386: gcc -c -g -O2  conftest.c >&5
configure:4386: $? = 0
configure:4386: result: yes
configure:4400: checking zlib.h usability
configure:4400: gcc -c -g -O2  conftest.c >&5
configure:4400: $? = 0
configure:4400: result: yes
configure:4400: checking zlib.h presence
configure:4400: gcc -E  conftest.c
configure:4400: $? = 0
configure:4400: result: yes
configure:4400: checking for zlib.h
configure:4400: result: yes
configure:4417: checking for compress2 in -lz
configure:4442: gcc -o conftest -g -O2   conftest.c -lz   >&5
configure:4442: $? = 0
configure:4451: result: yes
configure:4473: checking openssl/opensslconf.h usability
configure:4473: gcc -c -g -O2  conftest.c >&5
configure:4473: $? = 0
configure:4473: result: yes
configure:4473: checking openssl/opensslconf.h presence
configure:4473: gcc -E  conftest.c
configure:4473: $? = 0
configure:4473: result: yes
configure:4473: checking for openssl/opensslconf.h
configure:4473: result: yes
configure:4490: checking for AES_encrypt in -lcrypto
configure:4515: gcc -o conftest -g -O2   conftest.c -lcrypto  -lz  >&5
configure:4515: $? = 0
configure:4524: result: yes
configure:4546: checking expat.h usability
configure:4546: gcc -c -g -O2  conftest.c >&5
configure:4546: $? = 0
configure:4546: result: yes
configure:4546: checking expat.h presence
configure:4546: gcc -E  conftest.c
configure:4546: $? = 0
configure:4546: result: yes
configure:4546: checking for expat.h
configure:4546: result: yes
configure:4563: checking for XML_ParserCreate in -lexpat
configure:4588: gcc -o conftest -g -O2   conftest.c -lexpat  -lcrypto -lz  >&5
configure:4588: $? = 0
configure:4597: result: yes
configure:4671: checking for pkg-config
configure:4689: found /usr/bin/pkg-config
configure:4701: result: /usr/bin/pkg-config
configure:4726: checking pkg-config is at least version 0.9.0
configure:4729: result: yes
configure:4739: checking for ffmpeg
configure:4746: $PKG_CONFIG --exists --print-errors "libavcodec libavutil"
configure:4749: $? = 0
configure:4763: $PKG_CONFIG --exists --print-errors "libavcodec libavutil"
configure:4766: $? = 0
configure:4804: result: yes
configure:4813: checking whether LIBAVCODEC_VERSION_MAJOR is declared
configure:4813: gcc -c -g -O2    conftest.c >&5
configure:4813: $? = 0
configure:4813: result: yes
configure:4827: checking LIBAVCODEC_VERSION_MAJOR
configure:4829: gcc -o conftest -g -O2     conftest.c -lexpat -lcrypto -lz  -lavcodec -lavutil   -lrt >&5
configure:4829: $? = 0
configure:4829: ./conftest
configure:4829: $? = 0
configure:4844: result: 54
configure:4848: checking for AVFrame.nb_samples
configure:4848: gcc -c -g -O2    conftest.c >&5
configure:4848: $? = 0
configure:4848: result: yes
configure:4860: checking whether AV_SAMPLE_FMT_U8P is declared
configure:4860: gcc -c -g -O2    conftest.c >&5
configure:4860: $? = 0
configure:4860: result: yes
configure:4872: checking for avcodec_encode_audio2
configure:4872: gcc -o conftest -g -O2     conftest.c -lexpat -lcrypto -lz  -lavcodec -lavutil   -lrt >&5
configure:4872: $? = 0
configure:4872: result: yes
configure:4887: checking for AVCodecContext.refcounted_frames
configure:4887: gcc -c -g -O2    conftest.c >&5
conftest.c: In function 'main':
conftest.c:31:12: error: 'AVCodecContext' has no member named 'refcounted_frames'
 if (ac_aggr.refcounted_frames)
            ^
configure:4887: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ffabi"
| #define PACKAGE_TARNAME "ffabi"
| #define PACKAGE_VERSION "0"
| #define PACKAGE_STRING "ffabi 0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ZLIB_H 1
| #define HAVE_LIBZ 1
| #define HAVE_OPENSSL_OPENSSLCONF_H 1
| #define HAVE_LIBCRYPTO 1
| #define HAVE_EXPAT_H 1
| #define HAVE_LIBEXPAT 1
| /* end confdefs.h.  */
| #include <libavcodec/avcodec.h>
| 
| int
| main ()
| {
| static AVCodecContext ac_aggr;
| if (ac_aggr.refcounted_frames)
| return 0;
|   ;
|   return 0;
| }
configure:4887: gcc -c -g -O2    conftest.c >&5
conftest.c: In function 'main':
conftest.c:31:19: error: 'AVCodecContext' has no member named 'refcounted_frames'
 if (sizeof ac_aggr.refcounted_frames)
                   ^
configure:4887: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ffabi"
| #define PACKAGE_TARNAME "ffabi"
| #define PACKAGE_VERSION "0"
| #define PACKAGE_STRING "ffabi 0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ZLIB_H 1
| #define HAVE_LIBZ 1
| #define HAVE_OPENSSL_OPENSSLCONF_H 1
| #define HAVE_LIBCRYPTO 1
| #define HAVE_EXPAT_H 1
| #define HAVE_LIBEXPAT 1
| /* end confdefs.h.  */
| #include <libavcodec/avcodec.h>
| 
| int
| main ()
| {
| static AVCodecContext ac_aggr;
| if (sizeof ac_aggr.refcounted_frames)
| return 0;
|   ;
|   return 0;
| }
configure:4887: result: no
configure:4898: checking whether avcodec_free_frame is declared
configure:4898: gcc -c -g -O2    conftest.c >&5
configure:4898: $? = 0
configure:4898: result: yes
configure:4909: checking whether av_frame_free is declared
configure:4909: gcc -c -g -O2    conftest.c >&5
conftest.c:26:29: fatal error: libavutil/frame.h: No such file or directory
 #include <libavutil/frame.h>
                             ^
compilation terminated.
configure:4909: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ffabi"
| #define PACKAGE_TARNAME "ffabi"
| #define PACKAGE_VERSION "0"
| #define PACKAGE_STRING "ffabi 0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ZLIB_H 1
| #define HAVE_LIBZ 1
| #define HAVE_OPENSSL_OPENSSLCONF_H 1
| #define HAVE_LIBCRYPTO 1
| #define HAVE_EXPAT_H 1
| #define HAVE_LIBEXPAT 1
| #define FFABI_HAVE_AVCODEC_FREE_FRAME 1
| /* end confdefs.h.  */
| #include <libavutil/frame.h>
| 
| int
| main ()
| {
| #ifndef av_frame_free
| #ifdef __cplusplus
|   (void) av_frame_free;
| #else
|   (void) av_frame_free;
| #endif
| #endif
| 
|   ;
|   return 0;
| }
configure:4909: result: no
configure:4920: checking for av_log_format_line
configure:4920: gcc -o conftest -g -O2     conftest.c -lexpat -lcrypto -lz  -lavcodec -lavutil   -lrt >&5
/tmp/ccmHzpIw.o: In function `main':
/home/z_shared/software/dvd_&_cd_tools/makemkv-oss-1.9.0/conftest.c:60: undefined reference to `av_log_format_line'
collect2: error: ld returned 1 exit status
configure:4920: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ffabi"
| #define PACKAGE_TARNAME "ffabi"
| #define PACKAGE_VERSION "0"
| #define PACKAGE_STRING "ffabi 0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ZLIB_H 1
| #define HAVE_LIBZ 1
| #define HAVE_OPENSSL_OPENSSLCONF_H 1
| #define HAVE_LIBCRYPTO 1
| #define HAVE_EXPAT_H 1
| #define HAVE_LIBEXPAT 1
| #define FFABI_HAVE_AVCODEC_FREE_FRAME 1
| /* end confdefs.h.  */
| /* Define av_log_format_line to an innocuous variant, in case <limits.h> declares av_log_format_line.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define av_log_format_line innocuous_av_log_format_line
| 
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char av_log_format_line (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
| 
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 
| #undef av_log_format_line
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char av_log_format_line ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined __stub_av_log_format_line || defined __stub___av_log_format_line
| choke me
| #endif
| 
| int
| main ()
| {
| return av_log_format_line ();
|   ;
|   return 0;
| }
configure:4920: result: no
configure:4930: checking for enum AVCodecID
configure:4930: gcc -c -g -O2    conftest.c >&5
configure:4930: $? = 0
configure:4930: gcc -c -g -O2    conftest.c >&5
conftest.c: In function 'main':
conftest.c:31:29: error: expected expression before ')' token
 if (sizeof ((enum AVCodecID)))
                             ^
configure:4930: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ffabi"
| #define PACKAGE_TARNAME "ffabi"
| #define PACKAGE_VERSION "0"
| #define PACKAGE_STRING "ffabi 0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ZLIB_H 1
| #define HAVE_LIBZ 1
| #define HAVE_OPENSSL_OPENSSLCONF_H 1
| #define HAVE_LIBCRYPTO 1
| #define HAVE_EXPAT_H 1
| #define HAVE_LIBEXPAT 1
| #define FFABI_HAVE_AVCODEC_FREE_FRAME 1
| /* end confdefs.h.  */
| #include <libavcodec/avcodec.h>
| 
| int
| main ()
| {
| if (sizeof ((enum AVCodecID)))
| 	    return 0;
|   ;
|   return 0;
| }
configure:4930: result: yes
configure:4954: checking whether AV_CODEC_ID_NONE is declared
configure:4954: gcc -c -g -O2    conftest.c >&5
configure:4954: $? = 0
configure:4954: result: yes
configure:4978: checking whether av_frame_get_channels is declared
configure:4978: gcc -c -g -O2    conftest.c >&5
conftest.c: In function 'main':
conftest.c:37:10: error: 'av_frame_get_channels' undeclared (first use in this function)
   (void) av_frame_get_channels;
          ^
conftest.c:37:10: note: each undeclared identifier is reported only once for each function it appears in
configure:4978: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ffabi"
| #define PACKAGE_TARNAME "ffabi"
| #define PACKAGE_VERSION "0"
| #define PACKAGE_STRING "ffabi 0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ZLIB_H 1
| #define HAVE_LIBZ 1
| #define HAVE_OPENSSL_OPENSSLCONF_H 1
| #define HAVE_LIBCRYPTO 1
| #define HAVE_EXPAT_H 1
| #define HAVE_LIBEXPAT 1
| #define FFABI_HAVE_AVCODEC_FREE_FRAME 1
| #define FFABI_HAVE_AVCODECID 1
| #define FFABI_HAVE_AV_CODEC_ID_NAMES 1
| /* end confdefs.h.  */
| #include <libavcodec/avcodec.h>
| 
| int
| main ()
| {
| #ifndef av_frame_get_channels
| #ifdef __cplusplus
|   (void) av_frame_get_channels;
| #else
|   (void) av_frame_get_channels;
| #endif
| #endif
| 
|   ;
|   return 0;
| }
configure:4978: result: no
configure:4989: checking whether av_frame_get_sample_rate is declared
configure:4989: gcc -c -g -O2    conftest.c >&5
conftest.c: In function 'main':
conftest.c:37:10: error: 'av_frame_get_sample_rate' undeclared (first use in this function)
   (void) av_frame_get_sample_rate;
          ^
conftest.c:37:10: note: each undeclared identifier is reported only once for each function it appears in
configure:4989: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ffabi"
| #define PACKAGE_TARNAME "ffabi"
| #define PACKAGE_VERSION "0"
| #define PACKAGE_STRING "ffabi 0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ZLIB_H 1
| #define HAVE_LIBZ 1
| #define HAVE_OPENSSL_OPENSSLCONF_H 1
| #define HAVE_LIBCRYPTO 1
| #define HAVE_EXPAT_H 1
| #define HAVE_LIBEXPAT 1
| #define FFABI_HAVE_AVCODEC_FREE_FRAME 1
| #define FFABI_HAVE_AVCODECID 1
| #define FFABI_HAVE_AV_CODEC_ID_NAMES 1
| /* end confdefs.h.  */
| #include <libavcodec/avcodec.h>
| 
| int
| main ()
| {
| #ifndef av_frame_get_sample_rate
| #ifdef __cplusplus
|   (void) av_frame_get_sample_rate;
| #else
|   (void) av_frame_get_sample_rate;
| #endif
| #endif
| 
|   ;
|   return 0;
| }
configure:4989: result: no
configure:5000: checking whether av_frame_set_channel_layout is declared
configure:5000: gcc -c -g -O2    conftest.c >&5
conftest.c: In function 'main':
conftest.c:37:10: error: 'av_frame_set_channel_layout' undeclared (first use in this function)
   (void) av_frame_set_channel_layout;
          ^
conftest.c:37:10: note: each undeclared identifier is reported only once for each function it appears in
configure:5000: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ffabi"
| #define PACKAGE_TARNAME "ffabi"
| #define PACKAGE_VERSION "0"
| #define PACKAGE_STRING "ffabi 0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_ZLIB_H 1
| #define HAVE_LIBZ 1
| #define HAVE_OPENSSL_OPENSSLCONF_H 1
| #define HAVE_LIBCRYPTO 1
| #define HAVE_EXPAT_H 1
| #define HAVE_LIBEXPAT 1
| #define FFABI_HAVE_AVCODEC_FREE_FRAME 1
| #define FFABI_HAVE_AVCODECID 1
| #define FFABI_HAVE_AV_CODEC_ID_NAMES 1
| /* end confdefs.h.  */
| #include <libavcodec/avcodec.h>
| 
| int
| main ()
| {
| #ifndef av_frame_set_channel_layout
| #ifdef __cplusplus
|   (void) av_frame_set_channel_layout;
| #else
|   (void) av_frame_set_channel_layout;
| #endif
| #endif
| 
|   ;
|   return 0;
| }
configure:5000: result: no
configure:5011: checking for AVCodecParserContext.duration
configure:5011: gcc -c -g -O2    conftest.c >&5
configure:5011: $? = 0
configure:5011: result: yes
configure:5022: checking whether AV_CH_TOP_BACK_CENTER is declared
configure:5022: gcc -c -g -O2    conftest.c >&5
configure:5022: $? = 0
configure:5022: result: yes
configure:5149: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by ffabi config.status 0, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on blackbox

config.status:837: creating Makefile
config.status:837: creating libffabi/src/ffabicfg.h
config.status:1012: libffabi/src/ffabicfg.h is unchanged

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DESTDIR_set=
ac_cv_env_DESTDIR_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_ffmpeg_CFLAGS_set=
ac_cv_env_ffmpeg_CFLAGS_value=
ac_cv_env_ffmpeg_LIBS_set=
ac_cv_env_ffmpeg_LIBS_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_av_log_format_line=no
ac_cv_func_avcodec_encode_audio2=yes
ac_cv_have_decl_AV_CH_TOP_BACK_CENTER=yes
ac_cv_have_decl_AV_CODEC_ID_NONE=yes
ac_cv_have_decl_AV_SAMPLE_FMT_U8P=yes
ac_cv_have_decl_LIBAVCODEC_VERSION_MAJOR=yes
ac_cv_have_decl_av_frame_free=no
ac_cv_have_decl_av_frame_get_channels=no
ac_cv_have_decl_av_frame_get_sample_rate=no
ac_cv_have_decl_av_frame_set_channel_layout=no
ac_cv_have_decl_avcodec_free_frame=yes
ac_cv_header_expat_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_openssl_opensslconf_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_header_zlib_h=yes
ac_cv_host=i686-pc-linux-gnu
ac_cv_lib_crypto_AES_encrypt=yes
ac_cv_lib_expat_XML_ParserCreate=yes
ac_cv_lib_z_compress2=yes
ac_cv_member_AVCodecContext_refcounted_frames=no
ac_cv_member_AVCodecParserContext_duration=yes
ac_cv_member_AVFrame_nb_samples=yes
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GREP=/bin/grep
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_LD=ld
ac_cv_prog_ac_ct_OBJCOPY=objcopy
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_target=i686-pc-linux-gnu
ac_cv_type_enum_AVCodecID=yes
pkg_cv_ffmpeg_CFLAGS=' '
pkg_cv_ffmpeg_LIBS='-lavcodec -lavutil  '

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='gcc'
CFLAGS='-g -O2  '
CFLAGS_OPT='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CXX='g++'
CXXFLAGS='-g -O2'
DEFS='-DHAVE_CONFIG_H'
DESTDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
ENABLE_GUI='yes'
EXEEXT=''
GREP='/bin/grep'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD='ld'
LDFLAGS=''
LIBOBJS=''
LIBS='-lexpat -lcrypto -lz  -lavcodec -lavutil   -lrt'
LTLIBOBJS=''
OBJCOPY='objcopy'
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='ffabi'
PACKAGE_STRING='ffabi 0'
PACKAGE_TARNAME='ffabi'
PACKAGE_URL=''
PACKAGE_VERSION='0'
PATH_SEPARATOR=':'
PKG_CONFIG='/usr/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
SHELL='/bin/bash'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
ffmpeg_CFLAGS=' '
ffmpeg_LIBS='-lavcodec -lavutil  '
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "ffabi"
#define PACKAGE_TARNAME "ffabi"
#define PACKAGE_VERSION "0"
#define PACKAGE_STRING "ffabi 0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_ZLIB_H 1
#define HAVE_LIBZ 1
#define HAVE_OPENSSL_OPENSSLCONF_H 1
#define HAVE_LIBCRYPTO 1
#define HAVE_EXPAT_H 1
#define HAVE_LIBEXPAT 1
#define FFABI_HAVE_AVCODEC_FREE_FRAME 1
#define FFABI_HAVE_AVCODECID 1
#define FFABI_HAVE_AV_CODEC_ID_NAMES 1
#define FFABI_HAVE_PARSER_DURATION 1
#define FFABI_HAVE_AVUTIL_CHANNEL_LAYOUT_H 1

configure: exit 0

demon
Posts: 134
Joined: Sat Dec 20, 2014 7:06 am

Re: ./configure fails with a sed error

#3 Post by demon » Sat Dec 20, 2014 7:08 am

I'm not sure which 'sed' invocation in the configure script it is, but the configure script hates the & character in the path. Unpack it somewhere else (or rename the directory to not use the & character) and you should be good to go.

Woodstock
Posts: 10323
Joined: Sun Jul 24, 2011 11:21 pm

Re: ./configure fails with a sed error

#4 Post by Woodstock » Sat Dec 20, 2014 8:05 am

You do realize that, in bash and most other Linux shells, the '&' character is used to signal "run the preceding as a detached (background) process", unless you escape it?

Post Reply