On 08/09/2011 12:02 PM, [email protected] wrote: > I am trying to build emc-sim on Fedora 13 and failing ... > Compiling hal/utils/scope.c > Compiling hal/utils/scope_horiz.c > Compiling hal/utils/scope_vert.c > Compiling hal/utils/scope_trig.c > Compiling hal/utils/scope_disp.c > Compiling hal/utils/scope_files.c > Linking halscope > /usr/bin/ld: objects/hal/utils/scope_disp.o: undefined reference to symbol > 'hypot@@GLIBC_2.0' > /usr/bin/ld: note: 'hypot@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so > try adding it to the linker command line > /lib/libm.so.6: could not read symbols: Invalid operation > collect2: ld returned 1 exit status > make: *** [../bin/halscope] Error 1
I've never tried building emc2 on Redhat, but I see that scope_disp.c calls hypot() and that its Submakefile does not explicitly link against libm. That seems like a bug. halscope links against GTK_LIBS, which includes -lm on our usual distros (Ubuntu Hardy and Lucid, and various Debian flavours). Look in your src/config.log, what is the value of GTK_LIBS? In src/hal/utils/Submakefile, in the ../bin/halscope target, on the $(CC) line, add "-lm" to the end and see if it builds for you. -- Sebastian Kuzminsky ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
