Compile Error

Teo En Ming (Zhang Enming) teo.en.ming.2 at gmail.com
Thu Jul 25 16:08:35 UTC 2013


On 25/07/2013 21:24, Tom H wrote:
> On Thu, Jul 25, 2013 at 8:32 AM, Teo En Ming (Zhang Enming)
> <teo.en.ming.2 at gmail.com> wrote:
>> I was trying to compile Xen 4.3-unstable changeset 26666 but encountered the
>> following error. I believe it is an Ubuntu-specific linker error.
>>
>>    LINK  i386-dm/qemu-dm
>> /usr/bin/ld: vl.o: undefined reference to symbol
>> 'timer_settime@@GLIBC_2.3.3'
>> /usr/bin/ld: note: 'timer_settime@@GLIBC_2.3.3' is defined in DSO
>> /lib/x86_64-linux-gnu/librt.so.1 so try adding it to the linker command line
>> /lib/x86_64-linux-gnu/librt.so.1: could not read symbols: Invalid operation
>> collect2: error: ld returned 1 exit status
>> make[5]: *** [qemu-dm] Error 1
>> make[5]: Leaving directory
>> `/home/teo-en-ming/xen-unstable.hg-cs26666/tools/qemu-xen-traditional-dir-remote/i386-dm'
>> make[4]: *** [subdir-i386-dm] Error 2
>> make[4]: Leaving directory
>> `/home/teo-en-ming/xen-unstable.hg-cs26666/tools/qemu-xen-traditional-dir-remote'
>> make[3]: *** [subdir-install-qemu-xen-traditional-dir] Error 2
>> make[3]: Leaving directory `/home/teo-en-ming/xen-unstable.hg-cs26666/tools'
>> make[2]: *** [subdirs-install] Error 2
>> make[2]: Leaving directory `/home/teo-en-ming/xen-unstable.hg-cs26666/tools'
>> make[1]: *** [install-tools] Error 2
>> make[1]: Leaving directory `/home/teo-en-ming/xen-unstable.hg-cs26666'
>> make: *** [world] Error 2
>>
>> How do I solve the above problem?
> This page [1] might have a solution
>
> Comment by lamdy @ 2013-04-24 06:06
>
> LINK i386-softmmu/qemu-system-i386
> ../slirp/misc.o: In function `memset':
> /usr/include/bits/string3.h:81: warning: memset used with constant
> zero length parameter; this could be due to transposed parameters
> /usr/bin/ld: ../qemu-timer.o: undefined reference to symbol
> 'timer_settime@@GLIBC_2.3.3'
> /usr/bin/ld: note: 'timer_settime@@GLIBC_2.3.3' is defined in DSO
> /usr/lib/librt.so.1 so try adding it to the linker command line
> /usr/lib/librt.so.1: could not read symbols: Invalid operation
> collect2: error: ld returned 1 exit status
> make[4]: *** [qemu-system-i386] Error 1
> make[3]: *** [subdir-i386-softmmu] Error 2
> make[3]: Leaving directory
> `/tmp/yaourt-tmp-root/aur-xen/src/xen-4.2.1/tools/qemu-xen-dir'
> make[2]: *** [subdir-all-qemu-xen-dir] Error 2
> make[2]: Leaving directory `/tmp/yaourt-tmp-root/aur-xen/src/xen-4.2.1/tools'
> make[1]: *** [subdirs-install] Error 2
> make[1]: Leaving directory `/tmp/yaourt-tmp-root/aur-xen/src/xen-4.2.1/tools'
> make: *** [install-tools] Error 2
>
> [1] https://aur.archlinux.org/packages/xen/?comments=all
>
Dear Tom,

Thanks for pointing me in the correct direction!!!

The solution is here:

https://github.com/slacks42/alpine-apk/blob/master/xen-git/timer-add-lrt-lm.patch

Thank you very much.

-- 
Teo En Ming (Zhang Enming)





More information about the ubuntu-users mailing list