[raring] FTBFS: pcm_usb_stream.c:222:73: error: 'MREMAP_MAYMOVE' undeclared

Bug #1075718 reported by Reinhard Tartler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
alsa-plugins (Ubuntu)
Fix Released
High
Luke Yelavich

Bug Description

the package currently FTBFS in raring, no extra packages needed to reproduce.

make[3]: Entering directory `/«PKGBUILDDIR»/usb_stream'
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -Wall -g -I/usr/include/alsa -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -c -o pcm_usb_stream.lo pcm_usb_stream.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -Wall -g -I/usr/include/alsa -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -c pcm_usb_stream.c -fPIC -DPIC -o .libs/pcm_usb_stream.o
pcm_usb_stream.c: In function 'snd_pcm_us_prepare':
pcm_usb_stream.c:222:3: warning: implicit declaration of function 'mremap' [-Wimplicit-function-declaration]
pcm_usb_stream.c:222:73: error: 'MREMAP_MAYMOVE' undeclared (first use in this function)
pcm_usb_stream.c:222:73: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [pcm_usb_stream.lo] Error 1

Tags: libav9-ftbfs
Revision history for this message
Reinhard Tartler (siretart) wrote :

adding

#include <linux/mman.h>

below the <sys/mmam.h> seems to fix it. But I'm not sure if that would be the correct solution.

Revision history for this message
Luke Yelavich (themuso) wrote : Re: [Bug 1075718] Re: [raring] FTBFS: pcm_usb_stream.c:222:73: error: 'MREMAP_MAYMOVE' undeclared

Git commit 81ae188c8d1b42d187b97846e3b31479a00d4720 from upstream alsa-plugins is likely the correct solution, will upload.

Thanks for the heads up.

 affects ubuntu/alsa-plugins
 assignee themuso
 status inprogress

Changed in alsa-plugins (Ubuntu):
assignee: nobody → Luke Yelavich (themuso)
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package alsa-plugins - 1.0.25-2ubuntu2

---------------
alsa-plugins (1.0.25-2ubuntu2) raring-proposed; urgency=low

  * debian/control: Update Vcs-Bzr field for raring
  * debian/patches/usb_stream-Fix-build-with-glibc-2.16.patch: Fix FTBFS,
    thanks to Reinhard Tartler (LP: #1075718)
 -- Luke Yelavich <email address hidden> Wed, 07 Nov 2012 10:46:10 +1100

Changed in alsa-plugins (Ubuntu):
status: In Progress → Fix Released
tags: added: libav9-ftbfs
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.