Bug 54658 - configure --disable-nls option broken
Summary: configure --disable-nls option broken
Status: NEW
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: build-system (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
Depends on:
Reported: 2012-09-08 03:25 UTC by lameventanas
Modified: 2018-03-23 03:28 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Note You need to log in before you can comment on or make changes to this bug.
Description lameventanas 2012-09-08 03:25:16 UTC
When building pulseaudio 2.1 the build process halts.

This is what I'm doing:

cd pulseaudio-2.1
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/man \
--localstatedir=/var \
--disable-nls \
--disable-tcpwrap \
--disable-hal \
--disable-esound \
--disable-oss-output \
--disable-oss-wrapper \
--disable-ipv6 \
--disable-legacy-runtime-dir \
--disable-legacy-database-entry-format \
--disable-rpath \
---{ pulseaudio 2.1 }---

    prefix:                        /usr
    sysconfdir:                    /etc
    localstatedir:                 /var
    modlibexecdir:                 ${exec_prefix}/lib/pulse-2.1/modules
    System Runtime Path:           /var/run/pulse
    System State Path:             /var/lib/pulse
    System Config Path:            /var/lib/pulse
    Compiler:                      gcc -std=gnu99
    CFLAGS:                        -O2 -march=native -mtune=native -pipe -w -Wall -W -Wextra -Wno-long-long -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option
    LIBS:                          -lcap -lpthread -lrt -ldl -lm 

    Enable X11:                    yes
    Enable OSS Output:             no
    Enable OSS Wrapper:            no
    Enable EsounD:                 no
    Enable Alsa:                   yes
    Enable CoreAudio:              no
    Enable Solaris:                no
    Enable WaveOut:                no
    Enable GLib 2.0:               yes
    Enable Gtk+ 2.0:               yes
    Enable GConf:                  no
    Enable Avahi:                  no
    Enable Jack:                   yes
    Enable Async DNS:              no
    Enable LIRC:                   yes
    Enable Xen PV driver:          no
    Enable D-Bus:                  yes
      Enable HAL:                  no
      Enable BlueZ:                yes
    Enable udev:                   yes
      Enable HAL->udev compat:     yes
    Enable systemd login:          no
    Enable TCP Wrappers:           no
    Enable libsamplerate:          yes
    Enable IPv6:                   no
    Enable OpenSSL (for Airtunes): yes
    Enable fftw:                   yes
    Enable orc:                    yes
    Enable Adrian echo canceller:  yes
    Enable speex (resampler, AEC): yes
    Enable WebRTC echo canceller:  no
      tdb:                         yes
      gdbm:                        no
      simple database:             no

    System User:                   pulse
    System Group:                  pulse
    Access Group:                  pulse-access
    Enable per-user EsounD socket: no
    Force preopen:                 no
    Preopened modules:             all

    Legacy Runtime Dir Support:    no
    Legacy Database Entry Support: no


  CC     pasuspender-pasuspender.o
  CC     pacmd-pacmd.o
  CC     pax11publish-pax11publish.o
  CC     proximity_helper-proximity-helper.o
make[3]: *** No rule to make target `daemon/pulseaudio.desktop', needed by `all-am'.  Stop.
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/dev/shm/pulseaudio-2.0-kde/src/pulseaudio-2.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/dev/shm/pulseaudio-2.0-kde/src/pulseaudio-2.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/dev/shm/pulseaudio-2.0-kde/src/pulseaudio-2.1'
make: *** [all] Error 2

If I add --disable-x11 it works.
Comment 1 Tanu Kaskinen 2012-09-08 06:25:14 UTC
The .desktop files depend on intltool (disabled by "--disable-nls"). I guess we should add a way to generate non-translated versions somehow when intltool is disabled.
Comment 2 Puyol 2014-05-30 19:25:03 UTC
(In reply to comment #1)
> The .desktop files depend on intltool (disabled by "--disable-nls"). I guess
> we should add a way to generate non-translated versions somehow when
> intltool is disabled.

Hello, did you find a way to activate the module-echo-cancel webrtc?
Comment 3 Jonathan Sieber 2018-03-23 03:19:29 UTC
I'm also affected by this bug.
Comment 4 Jonathan Sieber 2018-03-23 03:28:35 UTC
I came across this bug when building pulseaudio for Alpine Linux, where locales don't exist by design decision.
Removing the --disable-nls option leads to other problems in the build, so i think this should be fixed.
An easy solution would be to "generate" pulseaudio.desktop by copying over the untranslated pulseaudio.desktop.in.
I lack the automake scripting skills to execute that, but i guess it could be done with a simple rule that checks for the USE_NLS macro defined in configure.ac

Another small problems appears when "make check" executes po/Makefile.in, because it will try to execute the "GENPOT" macro with the unsubstituted empty "INTLTOOL_EXTRACT" command variable.
This also boils down to consequences of --disable-nls not being checked properly and should be fixed.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.