Find the answer to your Linux question:
Results 1 to 2 of 2
hi there, first of all, although a did some programming once in a while, i'm not into this really well, so forgive me some stupid questions i may have or ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2011
    Posts
    3

    Assembler message "symbol already defined"


    hi there,

    first of all, although a did some programming once in a while, i'm not into this really well, so forgive me some stupid questions i may have or do not use the right phrases.

    that said, here is my question.

    i want to build x264 on a sles 10 server.

    i had some trouble caused by a dual install of binutils (one older version by the distro in /usr/bin and another one compiled by myself in /usr/local/bin) which caused some configure-errors but i made that gone away.

    anyway, now i'm running in a problem while compiling common/cpu.o . i get the assembler errors that multiple symbols are already defined.

    i give you the complete output of the compiler output in question:

    Code:
    gcc -Wshadow -O3 -ffast-math -v -Wall -I. -std=gnu99 -fPIC -s -fomit-frame-pointer -fno-tree-vectorize   -c -o common/cpu.o common/cpu.c
    Using built-in specs.
    Target: x86_64-suse-linux
    Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.4 --enable-ssp --disable-libssp --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.4 --enable-linux-futex --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux
    Thread model: posix
    gcc version 4.4.2 [gcc-4_4-branch revision 155966] (SUSE Linux)
    COLLECT_GCC_OPTIONS='-Wshadow' '-O3' '-ffast-math' '-v' '-Wall' '-I.' '-std=gnu99' '-fPIC' '-s' '-fomit-frame-pointer' '-fno-tree-vectorize' '-c' '-o' 'common/cpu.o' '-mtune=generic'
     /usr/lib64/gcc/x86_64-suse-linux/4.4/cc1 -quiet -v -I. common/cpu.c -quiet -dumpbase cpu.c -mtune=generic -auxbase-strip common/cpu.o -O3 -Wshadow -Wall -std=gnu99 -version -ffast-math -fPIC -fomit-frame-pointer -fno-tree-vectorize -o /tmp/ccKl9DMW.s
    #include "..." search starts here:
    #include <...> search starts here:
     .
     /usr/local/include
     /usr/lib64/gcc/x86_64-suse-linux/4.4/include
     /usr/lib64/gcc/x86_64-suse-linux/4.4/include-fixed
     /usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/include
     /usr/include
    End of search list.
    GNU C (SUSE Linux) version 4.4.2 [gcc-4_4-branch revision 155966] (x86_64-suse-linux)
            compiled by GNU C version 4.4.2 [gcc-4_4-branch revision 155966], GMP version 4.3.2, MPFR version 2.4.2.
    warning: GMP header version 4.3.2 differs from library version 4.1.4.
    warning: MPFR header version 2.4.2 differs from library version 2.2.1.
    GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
    Compiler executable checksum: a786cb6ffef6053cd3d10ad902e83195
    COLLECT_GCC_OPTIONS='-Wshadow' '-O3' '-ffast-math' '-v' '-Wall' '-I.' '-std=gnu99' '-fPIC' '-s' '-fomit-frame-pointer' '-fno-tree-vectorize' '-c' '-o' 'common/cpu.o' '-mtune=generic'
     /usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/as -V -Qy -o common/cpu.o /tmp/ccKl9DMW.s
    GNU assembler version 2.21 (x86_64-suse-linux) using BFD version (GNU Binutils) 2.21
    /tmp/ccKl9DMW.s: Assembler messages:
    /tmp/ccKl9DMW.s:1283: Error: symbol `fstatat64' is already defined
    /tmp/ccKl9DMW.s:1298: Error: symbol `fstat64' is already defined
    /tmp/ccKl9DMW.s:1311: Error: symbol `lstat64' is already defined
    /tmp/ccKl9DMW.s:1324: Error: symbol `stat64' is already defined
    make: *** [common/cpu.o] Fehler 1
    i noticed the warnings complaining about differing libraries from header files. are these the culprits and how can i fix that?

    if not: please give me advice how to track down the error on my system or build environment. that would be great!

    thank you very much in advance
    Jonas

  2. #2
    Just Joined!
    Join Date
    Jun 2011
    Posts
    3
    SOLVED.

    adding -fgnu89-inline did the trick..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •