On Tue, 9 Aug 2011, Sebastian Kuzminsky wrote:

> 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?

GTK_LIBS='-pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 
-lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 
-lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt 
-lglib-2.0  '

> > 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.

Yes that fixed it, but

Linking rs274
gcc -L/home/rray/emc2-dev/lib -Wl,-rpath,/home/rray/emc2-dev/lib -o 
../bin/rs274 objects/emc/sai/saicanon.o objects/emc/sai/driver.o 
objects/emc/rs274ngc/tool_parse.o ../lib/librs274.so.0 -Wall -g -I. 
-I/home/rray/emc2-dev/src/include -DULAPI -D_GNU_SOURCE -Os 
-DLOCALE_DIR=\"/usr/share/locale\" -DPACKAGE=\"emc2\"
/usr/bin/ld: objects/emc/sai/saicanon.o: undefined reference to symbol 
'__gxx_personality_v0@@CXXABI_1.3'
/usr/bin/ld: note: '__gxx_personality_v0@@CXXABI_1.3' is defined in DSO 
/usr/lib/libstdc++.so.6 so try adding it to the linker command line
/usr/lib/libstdc++.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [../bin/rs274] Error 1
make: Leaving directory `/home/rray/emc2-dev/src'

So in src/emc/sai/Submakefile on CC line I added "-lstdc++" and compile 
completed
And I have emc 2.6.0~pre running on Fedora 13

Thanks
Richard

------------------------------------------------------------------------------
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

Reply via email to