Now I got it to compile and install. I get the warning from gcc but portage does not give me a QA. Strange indeed...
2013/3/30 Karl Lindén <spray.su...@gmail.com>: > I get that warning on my box too. > CFLAGS="-march=amdfam10 -O2 -pipe" in my case. > Standard FEATURES. > > I think there is an "#include <math.h>" missing. > > I also get the following error: > x86_64-pc-linux-gnu-gcc -march=amdfam10 -O2 -pipe -Wl,-O1 > -Wl,--as-needed -o raton main.o support.o interface.o callbacks.o > midicontrol.o -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 > -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 > -lgobject-2.0 -lglib-2.0 -lfreetype -lfontconfig -lasound > /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: > callbacks.o: undefined reference to symbol 'sin@@GLIBC_2.2.5' > /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: > note: 'sin@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try > adding it to the linker command line > /lib64/libm.so.6: could not read symbols: Invalid operation > collect2: error: ld returned 1 exit status > > I have fixed these types of bugs before so I can fix it. The -lm is missing. > > Karl > > 2013/3/30 Dominique Michel <dominique.mic...@vtxnet.ch>: >> I noticed that QA Notice doesn't behave the same in my 2 gentoo boxes. >> >> When merging raton in the new one, I get no QA Notice, but in the old >> one, I get: >> >> * QA Notice: Package triggers severe warnings which indicate that it >> * may exhibit random runtime failures. >> * callbacks.c:671:9: warning: incompatible implicit declaration of >> built-in function ‘sin’ [enabled by default] >> >> This is with the same gcc version (4.7.2). >> The only differences that can trigger this are the CFLAGS or the >> FEATURES. >> >> New box: >> CFLAGS="-march=amdfam10 -mcx16 -msahf -mpopcnt -mabm --param >> l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 >> -mtune=amdfam10 -O2 -pipe" >> FEATURES="parallel-fetch userfetch" >> >> Old box: >> CFLAGS="-march=native -O2 -pipe -ggdb" >> FEATURES="parallel-fetch userfetch splitdebug" >> >> Dominique >> -- >> "We have the heroes we deserve." >> >>