You are not logged in.

#1 2013-04-06 17:09:31

tsliwkan
Member
Registered: 2011-10-01
Posts: 2

Problem compiling Coin3D from AUR

I'm trying to build coin for the freecad package and I am running into what looks like some kind of conflict with freetype. I have extra/freetype2 2.4.11-2  and extra/libxft 2.3.1-1 installed. I just did a full system upgrade this morning before trying to build coin.

<Snip>

/bin/sh ../../libtool --mode=compile clang++ -DHAVE_CONFIG_H -I../../include -I../../include  -I../../src -I../../src   -D_REENTRANT -DNDEBUG -DCOIN_DEBUG=0 -DCOIN_INTERNAL  -march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -W -Wall -Wno-unused -Wno-multichar -Woverloaded-virtual  -c -o glyph3d.lo glyph3d.cpp
In file included from freetype.cpp:142:
In file included from ../../src/base/dict.h:31:
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../include/c++/4.8.0/cstdlib:165:3: error: declaration conflicts with target of using
      declaration already in scope
  abs(long __i) { return __builtin_labs(__i); }
  ^
/usr/include/stdlib.h:770:12: note: target of using declaration
extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
           ^
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../include/c++/4.8.0/cstdlib:121:11: note: using declaration
  using ::abs;
          ^
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../include/c++/4.8.0/cstdlib:168:3: error: declaration conflicts with target of using
      declaration already in scope
  div(long __i, long __j) { return ldiv(__i, __j); }
  ^
/usr/include/stdlib.h:784:14: note: target of using declaration
extern div_t div (int __numer, int __denom)
             ^
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../include/c++/4.8.0/cstdlib:133:11: note: using declaration
  using ::div;
          ^
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../include/c++/4.8.0/cstdlib:173:3: error: declaration conflicts with target of using
      declaration already in scope
  abs(long long __x) { return __builtin_llabs (__x); }
  ^
/usr/include/stdlib.h:770:12: note: target of using declaration
extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
           ^
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../include/c++/4.8.0/cstdlib:121:11: note: using declaration
  using ::abs;
          ^
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../include/c++/4.8.0/cstdlib:178:3: error: declaration conflicts with target of using
      declaration already in scope
  abs(__int128 __x) { return __x >= 0 ? __x : -__x; }
  ^
/usr/include/stdlib.h:770:12: note: target of using declaration
extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
           ^
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../include/c++/4.8.0/cstdlib:121:11: note: using declaration
  using ::abs;

<Snip>

Finally, make will fail with

10 warnings and 4 errors generated.
make[4]: *** [freetype.lo] Error 1

Compiling with g++ or clang++ yields the same errors. Any help here would be greatly appreciated. If you would like any other information just let me know.

Offline

Board footer

Powered by FluxBB