Volk: duplicate symbol _volk_cpu

when I try to build volk from next branch of git, I got error during
make

libtool: link: gcc -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o
.libs/libvolk_runtime.0.dylib .libs/volk_cpu_x86.o .libs/cpuid_x86_64.o
.libs/volk_runtime.o .libs/volk_init.o .libs/volk_rank_archs.o
-L/opt/local/lib -O2 -install_name
/usr/local/lib/libvolk_runtime.0.dylib -compatibility_version 1
-current_version 1.0 -Wl,-single_module
ld: duplicate symbol _volk_cpu in .libs/volk_runtime.o and
.libs/volk_cpu_x86.o
collect2: ld returned 1 exit status
make[2]: *** [libvolk_runtime.la] Error 1

BTW, I did it on OSX 10.6.5

Have not tried ubuntu yet.
Kyle

On Thu, Dec 16, 2010 at 6:07 AM, Kyle Z. [email protected] wrote:

Kyle
Thanks for the info. We’ll look into it.

Can you compile on OSX if you use --disable-volk during configure?

Tom

On 16/12/2010, at 11:20 PM, Tom R. wrote:

Have not tried ubuntu yet.
Kyle

Thanks for the info. We’ll look into it.

Can you compile on OSX if you use --disable-volk during configure?

Tom

Yes, for the moment, I used --disable-volk and that succeeded.
Kyle

On 12/16/2010 03:07 AM, Kyle Z. wrote:

when I try to build volk from next branch of git, I got error during make

libtool: link: gcc -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o
.libs/libvolk_runtime.0.dylib .libs/volk_cpu_x86.o .libs/cpuid_x86_64.o
.libs/volk_runtime.o .libs/volk_init.o .libs/volk_rank_archs.o -L/opt/local/lib
-O2 -install_name /usr/local/lib/libvolk_runtime.0.dylib -compatibility_version
1 -current_version 1.0 -Wl,-single_module
ld: duplicate symbol _volk_cpu in .libs/volk_runtime.o and .libs/volk_cpu_x86.o
collect2: ld returned 1 exit status
make[2]: *** [libvolk_runtime.la] Error 1

BTW, I did it on OSX 10.6.5

I ran into duplicate symbol with UHD + mac a few times. It seems that
the macintosh linker was just more “picky”. Need more “extern this” in
the headers, and “this” in the c files.

-Josh