SVN HEAD and non-English system locales

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.x.x package for your distribution or compile Audacity from the source code.
bgravato
Posts: 2080
Joined: Wed Jan 13, 2010 8:56 pm
Operating System: Please select

Re: SVN HEAD and non-English system locales

Post by bgravato » Tue Dec 07, 2010 2:55 am

Gale Andrews wrote:If you or Steve can test installing Audacity with a suffix that would still be good.
I ran:

Code: Select all

./configure --program-suffix=-svn
make
It succesfully built but then it fails to start. If I remove the program-suffix option it builds and it starts normally.

The error messages I got when starting audacity are this:

Code: Select all

$ ./audacity 
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.AV200.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4170:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4649:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.AV200.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4170:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4649:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.AV200.pcm.modem.0:CARD=0'
ALSA lib conf.c:4170:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4649:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.AV200.pcm.modem.0:CARD=0'
ALSA lib conf.c:4170:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4649:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.AV200.pcm.modem.0:CARD=0'
ALSA lib conf.c:4170:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4649:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.AV200.pcm.modem.0:CARD=0'
ALSA lib conf.c:4170:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4649:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
audacity: pcm_plug.c:388: snd_pcm_plug_change_channels: Assertion `snd_pcm_format_linear(slv->format)' failed.
Aborted
If I install it (make install), it still fails to start with the same error messages.
Include as much details as you can in your post (Audacity version, Operating System, Equipment used, etc).
Please post your question in the appropriate forum (regarding audacity version and operating system).

steve
Site Admin
Posts: 80682
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: SVN HEAD and non-English system locales

Post by steve » Wed Dec 08, 2010 12:41 am

Gale Andrews wrote:If you or Steve can test installing Audacity with a suffix that would still be good.
Sorry I've not been following this thread.

I install -svn with the configure option:

Code: Select all

--program-suffix=-alpha
The last build I made was November 29th.
The language options are "System/English"

I also have the default Ubuntu installation of Audacity 1.3.12 which gives the full choice of languages.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: SVN HEAD and non-English system locales

Post by Gale Andrews » Thu Dec 09, 2010 12:44 am

steve wrote:
Gale Andrews wrote:If you or Steve can test installing Audacity with a suffix that would still be good.
Sorry I've not been following this thread.

I install -svn with the configure option:

Code: Select all

--program-suffix=-alpha
The last build I made was November 29th.
The language options are "System/English"

I also have the default Ubuntu installation of Audacity 1.3.12 which gives the full choice of languages.
OK, thanks. So clearly the original "problem" is still there (if it is one), and at the least this ought to be mentioned on our Linux Wiki pages. Richard's post looked to me as if he was acknowledging a bug, if so whatever he was intending to fix in his commit didn't "fix" this.

You were obviously confused by this at first although the workaround to edit .cfg isn't arduous. Do you think this should be a low priority bug on bugzilla? I'm inclined to think so.



Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

bgravato
Posts: 2080
Joined: Wed Jan 13, 2010 8:56 pm
Operating System: Please select

Re: SVN HEAD and non-English system locales

Post by bgravato » Thu Dec 09, 2010 2:25 am

I figured out what was the problem with my "suffixed build". Looks like adding a suffix changes a lot of things, not only the binary name(*). It appears that the ~/.audacity-data directory also changes name to ~/.audacity-suffix-data.
Copying my audacity.cfg file to that new directory allows me to start audacity, but I still get those error/warning messages I posted before, which I don't get on a build without the suffix.

(*) the name of the compiled binary (surprisingly) doesn't actually change... it's still called 'audacity'. It's during the copy step in the 'make install' process that it gets it's name changed... I think the binary resulting from the compiling process should already have the suffix added. It least (IMHO) I think it would be more coherent than renaming it only when copying/installing.

Regarding the languages issue, when I compile with suffix, even after performing 'make install' it still shows only System and english on Preferences.
Include as much details as you can in your post (Audacity version, Operating System, Equipment used, etc).
Please post your question in the appropriate forum (regarding audacity version and operating system).

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: SVN HEAD and non-English system locales

Post by Gale Andrews » Thu Dec 09, 2010 11:47 pm

bgravato wrote:I figured out what was the problem with my "suffixed build". Looks like adding a suffix changes a lot of things, not only the binary name(*). It appears that the ~/.audacity-data directory also changes name to ~/.audacity-suffix-data.
Copying my audacity.cfg file to that new directory allows me to start audacity, but I still get those error/warning messages I posted before, which I don't get on a build without the suffix.
The only unexpected message I get when I

Code: Select all

./configure --program-suffix=-svn
make
and then run "audacity" from the build directory is:

Code: Select all

ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
That doesn't stop launch or affect playback/recording. It's true in "Recording Devices" in Preferences that I don't have dmix - I'll have to check if it's there when I build without suffix.

When I install (producing an "audacity-svn" executable in /usr/local/bin and ~/.audacity-svn-data) and run that exectuable the same message appears and I can launch and use Audacity OK. I didn't really test what .cfg preferences it was actually using.
bgravato wrote: the name of the compiled binary (surprisingly) doesn't actually change... it's still called 'audacity'. It's during the copy step in the 'make install' process that it gets it's name changed... I think the binary resulting from the compiling process should already have the suffix added. It least (IMHO) I think it would be more coherent than renaming it only when copying/installing.
I renamed the compiled binary in the build dir to "audacity-svn" before installing it, and then tried to run it from the terminal. But bash changed dir to /usr/local/bin then (correctly) said that audacity-svn did not exist there.
bgravato wrote:Regarding the languages issue, when I compile with suffix, even after performing 'make install' it still shows only System and english on Preferences.
So to get full languages in Preferences I think you would need to install "audacity" in the directory you installed "audacity-svn" in (presumably usr/local/).



Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Locked