Friday, 16 May 2014

Re: [Rpcemu] Stuck on installing RPCemu/Mint 16

Thanks Tom - I'm still stuck. I've played around trying to understand
the various makefiles, but it's not at all obvious to me where I need to
add -lm. The article seemed to help but it suggested explicitly linking
the missing stuff, and I can't work that one out either.

Please bear with me, this is a learning experience for me and any
pointers would be most welcome.

Sean.

On 13/05/14 09:42, Tom Hughes wrote:
> On 13/05/14 08:59, Seán Kelly wrote:
>
>> After a few false starts I got Allegro in place and all seemed to be
>> going well (following
>> http://www.marutan.net/rpcemuspoon/linuxcompile.html), until I typed
>> make:
>>
>> ~/rpcemu/src $ make
>> make all-am
>> make[1]: Entering directory `/home/sean/rpcemu/src'
>> gcc -I/usr/include -DDYNAREC -Wall -O0 -g -D_DEBUG -o rpcemu
>> rpcemu-82c711.o rpcemu-cdrom-iso.o rpcemu-cmos.o rpcemu-cp15.o
>> rpcemu-fpa.o rpcemu-hostfs.o rpcemu-ide.o rpcemu-iomd.o
>> rpcemu-keyboard.o rpcemu-mem.o rpcemu-romload.o rpcemu-rpcemu.o
>> rpcemu-sound.o rpcemu-vidc20.o rpcemu-podules.o rpcemu-podulerom.o
>> rpcemu-icside.o rpcemu-ArmDynarec.o rpcemu-codegen_x86.o
>> rpcemu-rpc-linux.o rpcemu-gui.o rpcemu-cdrom-linuxioctl.o
>> rpcemu-network-linux.o -L/usr/lib/i386-linux-gnu -lalleg
>> /usr/bin/ld: rpcemu-fpa.o: undefined reference to symbol 'cos@@GLIBC_2.0'
>> /lib/i386-linux-gnu/libm.so.6: error adding symbols: DSO missing from
>> command line
>> collect2: error: ld returned 1 exit status
>> make[1]: *** [rpcemu] Error 1
>> make[1]: Leaving directory `/home/sean/rpcemu/src'
>> make: *** [all] Error 2
>> ~/rpcemu/src $
>>
>> I've googled but not found anything which helps. Clearly the rot starts
>> at /usr/bin/ld: rpcemu-fpa.o: undefined reference to symbol
>> 'cos@@GLIBC_2.0' but what do I look for, and how might I fix it?
>> Guidance would be most welcome.
>
> You need to add "-lm" to the link command.
>
> See https://fedoraproject.org/wiki/UnderstandingDSOLinkChange for more
> information on the change in linker behaviour which makes this necessary.
>
> Tom
>

_______________________________________________
Rpcemu mailing list
Rpcemu@riscos.info
http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu

No comments:

Post a Comment