Menu

#295 0.5.1-dev-4895 build works + 0.5.1-dev-4899 build fails

v1.0 (example)
open
nobody
None
5
2014-10-20
2013-11-14
David Favor
No

CC live.c
filedump.o: In function dump_file_nal': filedump.c:(.text+0x44cc): undefined reference togf_isom_shvc_config_get'
filedump.o: In function DumpTrackInfo': filedump.c:(.text+0x8243): undefined reference togf_isom_shvc_config_get'
filedump.o: In function DumpMovieInfo': filedump.c:(.text+0xb43b): undefined reference togf_isom_shvc_config_get'
fileimport.o: In function import_file': fileimport.c:(.text+0x18e9): undefined reference togf_isom_get_hevc_shvc_type'
fileimport.c:(.text+0x1f96): undefined reference to gf_media_split_shvc' fileimport.c:(.text+0x2187): undefined reference togf_isom_get_hevc_shvc_type'
collect2: error: ld returned 1 exit status
make[2]: [MP4Box] Error 1
make[2]: Leaving directory /smartbuild/work/gpac.svn/applications/mp4box' make[1]: *** [apps] Error 2 make[1]: Leaving directory/smartbuild/work/gpac.svn/applications'
make:
[apps] Error 2

Discussion

  • David Favor

    David Favor - 2013-11-15

    Also broken in 0.5.1-dev-4904

     
  • David Favor

    David Favor - 2013-11-15

    Building on OSX-10.9 (Mavericks) yields a bit more information.

    CC live.c
    Undefined symbols for architecture x86_64:
    "_gf_isom_get_hevc_shvc_type", referenced from:
    _import_file in fileimport.o
    "_gf_isom_shvc_config_get", referenced from:
    _dump_file_nal in filedump.o
    _DumpTrackInfo in filedump.o
    "_gf_media_split_shvc", referenced from:
    _import_file in fileimport.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: [MP4Box] Error 1
    make[1]:
    [apps] Error 2
    make: *** [apps] Error 2

    Build commands are the same for both Ubuntu (first log) + OSX. Commands are...

    cd /smartbuild/work && [ -e gpac.svn ] || svn --quiet co https://gpac.svn.sourceforge.net/svnroot/gpac/trunk/gpac gpac.svn
    cd /smartbuild/work/gpac.svn
    svn --quiet up

    source : 0.5.1-DEV-4904

    installed: NONE

    rebuild : rebuilding, source out of date

    rm -f /smartbuild/work/gpac.svn/build.log
    make distclean >/dev/null 2>&1 || /usr/bin/true
    ./configure --prefix=/david-favor-tools/osx-10.9 --enable-pic --enable-gpl --extra-cflags='-pipe -Os -arch x86_64 -I/david-favor-tools/osx-10.9/include -I/opt/local/include -I/usr/local/include -I/usr/include' --extra-ldflags='-Wl,-rpath,/david-favor-tools/osx-10.9/lib -Wl,-rpath,/opt/local/lib -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/lib -L/david-favor-tools/osx-10.9/lib -L/opt/local/lib -L/usr/local/lib -L/usr/lib' > /smartbuild/work/gpac.svn/build.log 2>&1
    make -j8 lib > /smartbuild/work/gpac.svn/build.log 2>&1
    make apps > /smartbuild/work/gpac.svn/build.log 2>&1

    Notice the linker error message is complaining about 64 bit symbols missing.

    The symbol is being generated...

    nm -A ./src/isomedia/avc_ext.o | grep gf_isom_shvc_config_get
    ./src/isomedia/avc_ext.o: 00000000000027ff T _gf_isom_shvc_config_get
    ./src/isomedia/avc_ext.o: 0000000000004058 S _gf_isom_shvc_config_get.eh

    The entire log file is attached...

     
  • David Favor

    David Favor - 2013-11-15

    Code is in the library...

    nm -A ./bin/gcc/libgpac.dylib | grep gf_isom_shvc_config_get
    ./bin/gcc/libgpac.dylib: 00000000000c9b67 T _gf_isom_shvc_config_get

     
  • David Favor

    David Favor - 2013-11-15

    Here's the verbose version of the command also with -arch forced, same problem...

    cc -L/opt/local/lib -v -arch x86_64 -Wl,-rpath,/david-favor-tools/osx-10.9/lib -Wl,-rpath,/opt/local/lib -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/lib -L/david-favor-tools/osx-10.9/lib -L/opt/local/lib -L/usr/local/lib -L/usr/lib -o ../../bin/gcc/MP4Box main.o filedump.o fileimport.o live.o -L../../bin/gcc -L../../extra_lib/lib/gcc -lgpac
    Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
    Target: x86_64-apple-darwin13.0.0
    Thread model: posix
    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.9.0 -o ../../bin/gcc/MP4Box -L/opt/local/lib -L/david-favor-tools/osx-10.9/lib -L/opt/local/lib -L/usr/local/lib -L/usr/lib -L../../bin/gcc -L../../extra_lib/lib/gcc -rpath /david-favor-tools/osx-10.9/lib -rpath /opt/local/lib -rpath /usr/local/lib -rpath /usr/lib main.o filedump.o fileimport.o live.o -lgpac -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0/lib/darwin/libclang_rt.osx.a
    Undefined symbols for architecture x86_64:
    "_gf_isom_get_hevc_shvc_type", referenced from:
    _import_file in fileimport.o
    "_gf_isom_shvc_config_get", referenced from:
    _dump_file_nal in filedump.o
    _DumpTrackInfo in filedump.o
    "_gf_media_split_shvc", referenced from:
    _import_file in fileimport.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: [MP4Box] Error 1
    make[1]:
    [apps] Error 2
    make: *** [apps] Error 2

     
  • Jean Le Feuvre

    Jean Le Feuvre - 2013-11-15

    are you sur you don't have an old libgpac installed on the system ?

     
  • David Favor

    David Favor - 2013-11-15

    net1# dpkg -l | grep gpac
    net1#

    Nada... No shred of gpac installed.

     
  • David Favor

    David Favor - 2013-11-15

    This is very odd... I'm back to Ubuntu testing this, as I understand Linux tools better.

    Library is shown to be... elf64-x86-64...

    net1# objdump -a bin/gcc/libgpac.so
    bin/gcc/libgpac.so: file format elf64-x86-64
    bin/gcc/libgpac.so

    And a verbose link shows... all seems to be well also, as these are set...

    -m elf_x86_64
    --host=x86_64-linux-gnu --target=x86_64-linux-gnu

    gcc -v -v -v -Wl,-rpath,/david-favor-tools/ubuntu-13.10/lib -Wl,-rpath,/opt/local/lib -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/lib -L/david-favor-tools/ubuntu-13.10/lib -L/opt/local/lib -L /usr/local/lib -L/usr/lib -Wl,--warn-common -Wl,-z,defs -o ../../bin/gcc/MP4Box main.o filedump.o fileimport.o live.o -L../../bin/gcc -L../../extra_lib/lib/gcc -lgpac
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
    Target: x86_64-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.8.1-10ubuntu8' --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 --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-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
    Thread model: posix
    gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu8)
    COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/
    LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../:/lib/:/usr/lib/
    COLLECT_GCC_OPTIONS='-v' '-v' '-v' '-L/david-favor-tools/ubuntu-13.10/lib' '-L/opt/local/lib' '-L/usr/local/lib' '-L/usr/lib' '-o' '../../bin/gcc/MP4Box' '-L../../bin/gcc' '-L../../extra_lib/lib/gcc' '-mtune=generic' '-march=x86-64'
    /usr/lib/gcc/x86_64-linux-gnu/4.8/collect2 --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o ../../bin/gcc/MP4Box /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o -L/david-favor-tools/ubuntu-13.10/lib -L/opt/local/lib -L/usr/local/lib -L/usr/lib -L../../bin/gcc -L../../extra_lib/lib/gcc -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. -rpath /david-favor-tools/ubuntu-13.10/lib -rpath /opt/local/lib -rpath /usr/local/lib -rpath /usr/lib --warn-common -z defs main.o filedump.o fileimport.o live.o -lgpac -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/4.8/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o
    filedump.o: In function dump_file_nal': filedump.c:(.text+0x44cc): undefined reference togf_isom_shvc_config_get'
    filedump.o: In function DumpTrackInfo': filedump.c:(.text+0x8243): undefined reference togf_isom_shvc_config_get'
    filedump.o: In function DumpMovieInfo': filedump.c:(.text+0xb43b): undefined reference togf_isom_shvc_config_get'
    fileimport.o: In function import_file': fileimport.c:(.text+0x18e9): undefined reference togf_isom_get_hevc_shvc_type'
    fileimport.c:(.text+0x1f96): undefined reference to gf_media_split_shvc' fileimport.c:(.text+0x2187): undefined reference togf_isom_get_hevc_shvc_type'
    collect2: error: ld returned 1 exit status

     
  • David Favor

    David Favor - 2013-11-15

    This one has me stumped.

     
  • David Favor

    David Favor - 2013-11-15

    Hum... I do see one difference between the build of MP4Client (which worked) and MP4Box...

    MP4Box includes... --with-arch-32=i686 which seems odd.

     
  • David Favor

    David Favor - 2013-11-15

    Nope... MP4Client passes this option during linkage. My mistake.

     
  • David Favor

    David Favor - 2013-11-15

    Duh... The build was picking up a previous copy out of the sandbox I was installing gpac into... Working now.

     
  • Jean Le Feuvre

    Jean Le Feuvre - 2014-01-23

    did you manage to compile with latest versions ?

     
  • Jean Le Feuvre

    Jean Le Feuvre - 2014-01-23
     

Log in to post a comment.