Skip to content

Build error after 6d06fcc2 (a typo?) #85

@asavah

Description

@asavah

After 6d06fcc the build fails.

Some insightful warnings:

pcm_dmix.c: In function ‘snd_pcm_dmix_rewind’:
pcm_dmix.c:719:9: warning: implicit declaration of function ‘pcm_frames_diff’; did you mean ‘pcm_frame_diff’? [-Wimplicit-function-declaration]
  719 |  size = pcm_frames_diff(dmix->last_appl_ptr, dmix->appl_ptr, pcm->boundary);
      |         ^~~~~~~~~~~~~~~
      |         pcm_frame_diff
pcm_dshare.c: In function ‘snd_pcm_dshare_sync_area’:
pcm_dshare.c:115:9: warning: implicit declaration of function ‘pcm_frames_diff’; did you mean ‘pcm_frame_diff’? [-Wimplicit-function-declaration]
  115 |  size = pcm_frames_diff(dshare->appl_ptr, dshare->last_appl_ptr, pcm->boundary);
      |         ^~~~~~~~~~~~~~~
      |         pcm_frame_diff
pcm_dsnoop.c: In function ‘snd_pcm_dsnoop_sync_ptr’:
pcm_dsnoop.c:155:9: warning: implicit declaration of function ‘pcm_frames_diff’; did you mean ‘pcm_frame_diff’? [-Wimplicit-function-declaration]
  155 |  diff = pcm_frames_diff(slave_hw_ptr, old_slave_hw_ptr, dsnoop->slave_boundary);
      |         ^~~~~~~~~~~~~~~
      |         pcm_frame_diff

The error itself:

/home/asavah/kross/host/asusb450eg/lib/gcc/x86_64-asusb450eg-linux-gnu/10.2.1/../../../../x86_64-asusb450eg-linux-gnu/bin/ld: pcm/.libs/libpcm.a(pcm_dmix.o): in function `snd_pcm_dmix_rewind':
pcm_dmix.c:(.text+0x1c8f): undefined reference to `pcm_frames_diff'
/home/asavah/kross/host/asusb450eg/lib/gcc/x86_64-asusb450eg-linux-gnu/10.2.1/../../../../x86_64-asusb450eg-linux-gnu/bin/ld: pcm_dmix.c:(.text+0x1ce7): undefined reference to `pcm_frames_diff'
/home/asavah/kross/host/asusb450eg/lib/gcc/x86_64-asusb450eg-linux-gnu/10.2.1/../../../../x86_64-asusb450eg-linux-gnu/bin/ld: pcm_dmix.c:(.text+0x1d00): undefined reference to `pcm_frames_diff'
/home/asavah/kross/host/asusb450eg/lib/gcc/x86_64-asusb450eg-linux-gnu/10.2.1/../../../../x86_64-asusb450eg-linux-gnu/bin/ld: pcm/.libs/libpcm.a(pcm_dshare.o): in function `snd_pcm_dshare_sync_area':
pcm_dshare.c:(.text+0x2af): undefined reference to `pcm_frames_diff'
/home/asavah/kross/host/asusb450eg/lib/gcc/x86_64-asusb450eg-linux-gnu/10.2.1/../../../../x86_64-asusb450eg-linux-gnu/bin/ld: pcm_dshare.c:(.text+0x2e7): undefined reference to `pcm_frames_diff'
/home/asavah/kross/host/asusb450eg/lib/gcc/x86_64-asusb450eg-linux-gnu/10.2.1/../../../../x86_64-asusb450eg-linux-gnu/bin/ld: pcm/.libs/libpcm.a(pcm_dshare.o):pcm_dshare.c:(.text+0x9f2): more undefined references to `pcm_frames_diff' follow
collect2: error: ld returned 1 exit status

Note the difference between pcm_frames_diff (typo?) and pcm_frame_diff (as defined in the header)

Ping @perexg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions