Fwd: ERRORS: xbelld.spec
Jakub Bogusz
qboosh at pld-linux.org
Thu Jun 6 09:48:38 CEST 2013
On Wed, Jun 05, 2013 at 04:40:09PM +0200, Lukasz Glebicki wrote:
> Why this package is not able to link on builders?
With as-needed libraries must appear in link command after objects which use them.
> I suppose a flag "--as-needed", but my personal builder, which is up to date,
> can build this.
Possibly you have gold by default, it seems to work slightly different.
[...]
> cc -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-
> z,combreloc -lm -lX11 -lasound xbelld.o -o xbelld
> xbelld.o: In function `playSineWave':
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:452:
> undefined reference to `snd_pcm_open'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:459:
> undefined reference to `snd_pcm_set_params'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:471:
> undefined reference to `snd_pcm_frames_to_bytes'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:488:
> undefined reference to `sin'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:501:
> undefined reference to `snd_pcm_writei'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:517:
> undefined reference to `snd_pcm_drain'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:518:
> undefined reference to `snd_pcm_close'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:503:
> undefined reference to `snd_pcm_recover'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:507:
> undefined reference to `snd_strerror'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:522:
> undefined reference to `snd_pcm_close'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:467:
> undefined reference to `snd_strerror'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:455:
> undefined reference to `snd_strerror'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:472:
> undefined reference to `snd_pcm_frames_to_bytes'
> xbelld.o: In function `playSoundBuffer':
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:541:
> undefined reference to `snd_pcm_open'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:548:
> undefined reference to `snd_pcm_set_params'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:558:
> undefined reference to `snd_pcm_bytes_to_frames'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:560:
> undefined reference to `snd_pcm_writei'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:574:
> undefined reference to `snd_pcm_drain'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:575:
> undefined reference to `snd_pcm_close'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:554:
> undefined reference to `snd_strerror'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:579:
> undefined reference to `snd_pcm_close'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:544:
> undefined reference to `snd_strerror'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:562:
> undefined reference to `snd_pcm_recover'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:566:
> undefined reference to `snd_strerror'
> xbelld.o: In function `playSoundFile':
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:609:
> undefined reference to `snd_pcm_open'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:616:
> undefined reference to `snd_pcm_set_params'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:636:
> undefined reference to `snd_pcm_bytes_to_frames'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:639:
> undefined reference to `snd_pcm_writei'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:654:
> undefined reference to `snd_pcm_drain'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:655:
> undefined reference to `snd_pcm_close'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:641:
> undefined reference to `snd_pcm_recover'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:645:
> undefined reference to `snd_strerror'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:660:
> undefined reference to `snd_pcm_close'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:612:
> undefined reference to `snd_strerror'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:622:
> undefined reference to `snd_strerror'
> xbelld.o: In function `main':
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:271:
> undefined reference to `XkbOpenDisplay'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:304:
> undefined reference to `XGetKeyboardControl'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:320:
> undefined reference to `XkbSelectEvents'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:342:
> undefined reference to `XNextEvent'
> /tmp/B.3034129c-d55a-418d-8943-0b85a94bd355/BUILD/xbelld-0.3.4/xbelld.c:326:
> undefined reference to `XkbChangeEnabledControls'
> collect2: error: ld returned 1 exit status
> make: *** [xbelld] Error 1
--
Jakub Bogusz http://qboosh.pl/
More information about the pld-devel-en
mailing list