Source: fastnetmon Version: 1.1.3+dfsg-2 Severity: important Tags: upstream Justification: fails to build from source
Thanks for quickly taking care of fastnetmon's nonportable use of rdtsc. This change was very helpful, but alas turned out to be insufficient on mips(el) and the non-release architecture powerpc, on which the build fails with errors along the lines of ./obj-mips-linux-gnu/./src/fastnetmon.cpp:1695: undefined reference to `__sync_fetch_and_add_8' ./obj-mips-linux-gnu/./src/fastnetmon.cpp:1785: undefined reference to `__sync_fetch_and_add_8' ./obj-mips-linux-gnu/./src/fastnetmon.cpp:1786: undefined reference to `__sync_fetch_and_add_8' ./obj-mips-linux-gnu/./src/fastnetmon.cpp:1806: undefined reference to `__sync_fetch_and_add_8' ./obj-mips-linux-gnu/./src/fastnetmon.cpp:1807: undefined reference to `__sync_fetch_and_add_8' CMakeFiles/fastnetmon.dir/fastnetmon.cpp.o:./obj-mips-linux-gnu/./src/fastnetmon.cpp:1785: more undefined references to `__sync_fetch_and_add_8' follow I suspect the non-release architecture powerpcspe will fail in the same fashion if fastnetmon makes it out of Needs-Build before you fix this bug. ;-) armel and armhf builds do succeed now, thanks. At any rate, I believe you should be able to pick up a definition of __sync_fetch_and_add_8 on these architectures by linking against -latomic. If you don't want a dependency on this library elsewhere, you can either precede -latomic with -Wl,--as-needed or explicitly conditionalize its use. Could you please take a look? Thanks! -- Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org) http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?a...@monk.mit.edu