Skip to contentSkip to conversation

Cross compiling alsa-lib

DISCUSSION Adrian McMenamin 4 participants 14 messages Nov 27, 2005 – Dec 1, 2005

lore
Share & tools
lore
#0 lore raw

This is failing due to (seemingly) a missing type definition in pcm_ladspa.c.

I am trying to compile this against uclibc rather than glibc... does anyone know what the issue is and how to fix it?

Adrian

if /bin/sh ../../libtool
--mode=compile /home/adrian/buildroot/build_sh4/staging_dir/bin/sh4-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -MT pcm_ladspa.lo -MD -MP -MF ".deps/pcm_ladspa.Tpo" \
-c -o pcm_ladspa.lo test -f 'pcm_ladspa.c' || echo './'pcm_ladspa.c;
\
then mv -f ".deps/pcm_ladspa.Tpo" ".deps/pcm_ladspa.Plo"; \
else rm -f ".deps/pcm_ladspa.Tpo"; exit 1; \
fi
/home/adrian/buildroot/build_sh4/staging_dir/bin/sh4-linux-uclibc-gcc
-DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -MT pcm_ladspa.lo -MD -MP -MF .deps/pcm_ladspa.Tpo -c pcm_ladspa.c -fPIC -DPIC -o .libs/pcm_ladspa.o
pcm_ladspa.c:31:21: wordexp.h: No such file or directory
In file included from pcm_plugin.h:22,

                 from pcm_ladspa.c:34:

../../include/iatomic.h:1017:2: warning: #warning "Atomic operations are not supported on this architecture."
pcm_ladspa.c: In function `snd_pcm_ladspa_look_for_plugin':
pcm_ladspa.c:818: error: `wordexp_t' undeclared (first use in this function)
pcm_ladspa.c:818: error: (Each undeclared identifier is reported only once
pcm_ladspa.c:818: error: for each function it appears in.) pcm_ladspa.c:818: error: parse error before "we" pcm_ladspa.c:825: error: we' undeclared (first use in this function) pcm_ladspa.c:825: error: WRDE_NOCMD' undeclared (first use in this function)
pcm_ladspa.c:827: error: `WRDE_NOSPACE' undeclared (first use in this function)
make[2]: *** [pcm_ladspa.lo] Error 1
make[2]: Leaving directory `/home/adrian/alsa-lib-1.0.10/src/pcm' make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/adrian/alsa-lib-1.0.10/src'
make: *** [all-recursive] Error 1

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#1 lore raw

At Sun, 27 Nov 2005 18:31:43 +0000,

Quoted 6 lines · Adrian McMenamin

This is failing due to (seemingly) a missing type definition in pcm_ladspa.c.

I am trying to compile this against uclibc rather than glibc... does anyone know what the issue is and how to fix it?

An easy solution is to disable the compilation of this plugin. Remove it from src/pcm/Makefile.am, and the word "ladspa" from build_in_pcms in src/pcm/pcm.c:1940.

We can add a check of workexp.h in configure, but I think it's better to detect ulibc. Do you have an idea how to detect ulibc?

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#2 lore raw
Quoted 9 lines · Takashi Iwai

At Sun, 27 Nov 2005 18:31:43 +0000,

Quoted 6 lines · Adrian McMenamin

This is failing due to (seemingly) a missing type definition in pcm_ladspa.c.

I am trying to compile this against uclibc rather than glibc... does anyone know what the issue is and how to fix it?

Quoted 6 lines

An easy solution is to disable the compilation of this plugin. Remove it from src/pcm/Makefile.am, and the word "ladspa" from build_in_pcms in src/pcm/pcm.c:1940.

We can add a check of workexp.h in configure, but I think it's better to detect ulibc. Do you have an idea how to detect ulibc?

I think that we already solved this issue in alsa-lib/src/conf.c .

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#3 lore raw

At Mon, 28 Nov 2005 12:50:32 +0100 (CET),

Quoted 12 lines · Jaroslav Kysela
Quoted 9 lines · Takashi Iwai

At Sun, 27 Nov 2005 18:31:43 +0000,

Quoted 6 lines · Adrian McMenamin

This is failing due to (seemingly) a missing type definition in pcm_ladspa.c.

I am trying to compile this against uclibc rather than glibc... does anyone know what the issue is and how to fix it?

Quoted 8 lines
Quoted 6 lines

An easy solution is to disable the compilation of this plugin. Remove it from src/pcm/Makefile.am, and the word "ladspa" from build_in_pcms in src/pcm/pcm.c:1940.

We can add a check of workexp.h in configure, but I think it's better to detect ulibc. Do you have an idea how to detect ulibc?

I think that we already solved this issue in alsa-lib/src/conf.c .

Hmm, it also incldues wordexp.h. Can it be really compiled?

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#4 lore raw
Quoted 18 lines · Takashi Iwai

At Mon, 28 Nov 2005 12:50:32 +0100 (CET),

Quoted 16 lines · Jaroslav Kysela
Quoted 13 lines · Takashi Iwai

At Sun, 27 Nov 2005 18:31:43 +0000,

Quoted 6 lines · Adrian McMenamin

This is failing due to (seemingly) a missing type definition in pcm_ladspa.c.

I am trying to compile this against uclibc rather than glibc... does anyone know what the issue is and how to fix it?

An easy solution is to disable the compilation of this plugin. Remove it from src/pcm/Makefile.am, and the word "ladspa" from build_in_pcms in src/pcm/pcm.c:1940.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

We can add a check of workexp.h in configure, but I think it's better to detect ulibc. Do you have an idea how to detect ulibc?

I think that we already solved this issue in alsa-lib/src/conf.c .

Hmm, it also incldues wordexp.h. Can it be really compiled?

It's superfluous. Only strcspn() is used to iterate through all directories.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#5 lore raw

At Mon, 28 Nov 2005 13:05:59 +0100 (CET),

Quoted 24 lines · Jaroslav Kysela
Quoted 21 lines · Takashi Iwai

At Mon, 28 Nov 2005 12:50:32 +0100 (CET),

Quoted 19 lines · Jaroslav Kysela
Quoted 15 lines · Takashi Iwai

At Sun, 27 Nov 2005 18:31:43 +0000,

Quoted 6 lines · Adrian McMenamin

This is failing due to (seemingly) a missing type definition in pcm_ladspa.c.

I am trying to compile this against uclibc rather than glibc... does anyone know what the issue is and how to fix it?

An easy solution is to disable the compilation of this plugin. Remove it from src/pcm/Makefile.am, and the word "ladspa" from build_in_pcms in src/pcm/pcm.c:1940.

We can add a check of workexp.h in configure, but I think it's better to detect ulibc. Do you have an idea how to detect ulibc?

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

I think that we already solved this issue in alsa-lib/src/conf.c .

Hmm, it also incldues wordexp.h. Can it be really compiled?

It's superfluous. Only strcspn() is used to iterate through all directories.

I see. But wordexp.h doesn't exist for ulibc, so we'll need ifdef around its inclusion, or create a dummy wordexp.h in configure script.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#6 lore raw

At Mon, 28 Nov 2005 14:05:26 +0100,

Quoted 29 lines · I wrote:

At Mon, 28 Nov 2005 13:05:59 +0100 (CET),

Quoted 26 lines · Jaroslav Kysela
Quoted 23 lines · Takashi Iwai

At Mon, 28 Nov 2005 12:50:32 +0100 (CET),

Quoted 20 lines · Jaroslav Kysela
Quoted 9 lines · Takashi Iwai

At Sun, 27 Nov 2005 18:31:43 +0000,

Quoted 6 lines · Adrian McMenamin

This is failing due to (seemingly) a missing type definition in pcm_ladspa.c.

I am trying to compile this against uclibc rather than glibc... does anyone know what the issue is and how to fix it?

Quoted 6 lines

An easy solution is to disable the compilation of this plugin. Remove it from src/pcm/Makefile.am, and the word "ladspa" from build_in_pcms in src/pcm/pcm.c:1940.

We can add a check of workexp.h in configure, but I think it's better to detect ulibc. Do you have an idea how to detect ulibc?

I think that we already solved this issue in alsa-lib/src/conf.c .

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Hmm, it also incldues wordexp.h. Can it be really compiled?

It's superfluous. Only strcspn() is used to iterate through all directories.

I see. But wordexp.h doesn't exist for ulibc, so we'll need ifdef around its inclusion, or create a dummy wordexp.h in configure script.

Oh I found that you already fixed conf.c :)

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#7 lore raw
Quoted 3 lines · Takashi Iwai
Quoted 1 line

Oh I found that you already fixed conf.c :)

If it has been "fixed" why won't it compile? Do I need to specify something in the configure or use the CVS sources or what?

Thanks

Adrian

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#8 lore raw
Quoted 1 line · Adrian McMenamin

use the CVS sources

Yes.

Lee

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#9 lore raw
In reply to Adrian McMenamin

At Mon, 28 Nov 2005 17:13:26 -0000 (GMT),

Quoted 6 lines · Adrian McMenamin
Quoted 3 lines · Takashi Iwai
Quoted 1 line

Oh I found that you already fixed conf.c :)

If it has been "fixed" why won't it compile?

Look at "conf.c". pcm_ladspa.c isn't fixed yet.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#10 lore raw
Quoted 11 lines · Takashi Iwai

At Mon, 28 Nov 2005 17:13:26 -0000 (GMT),

Quoted 6 lines · Adrian McMenamin
Quoted 3 lines · Takashi Iwai
Quoted 1 line

Oh I found that you already fixed conf.c :)

If it has been "fixed" why won't it compile?

Look at "conf.c". pcm_ladspa.c isn't fixed yet.

OK, I understand

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#11 lore raw

At Mon, 28 Nov 2005 17:27:16 -0000 (GMT),

Quoted 7 lines · Adrian McMenamin
Quoted 5 lines · Takashi Iwai

At Mon, 28 Nov 2005 17:13:26 -0000 (GMT),

Quoted 3 lines · Adrian McMenamin
Quoted 1 line · Takashi Iwai
Quoted 1 line
Quoted 7 lines
Quoted 6 lines
Quoted 3 lines
Quoted 2 lines

Oh I found that you already fixed conf.c :)

If it has been "fixed" why won't it compile?

Look at "conf.c". pcm_ladspa.c isn't fixed yet.

OK, I understand

I fixed for pcm_ladspa.c now. Try the CVS version later.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#12 lore raw
Quoted 11 lines · Takashi Iwai

At Mon, 28 Nov 2005 17:27:16 -0000 (GMT),

Quoted 9 lines · Adrian McMenamin
Quoted 7 lines · Takashi Iwai

At Mon, 28 Nov 2005 17:13:26 -0000 (GMT),

Quoted 5 lines · Adrian McMenamin
Quoted 3 lines · Takashi Iwai
Quoted 1 line

Oh I found that you already fixed conf.c :)

Quoted 8 lines
Quoted 5 lines
Quoted 4 lines
Quoted 1 line

If it has been "fixed" why won't it compile?

Look at "conf.c". pcm_ladspa.c isn't fixed yet.

OK, I understand

I fixed for pcm_ladspa.c now. Try the CVS version later.

I got a patch from the uclibc list which fixed ladspa.c but unfortunately failed on another file later in the build

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#13 lore raw

At Wed, 30 Nov 2005 20:14:26 +0000,

Quoted 15 lines · Adrian McMenamin
Quoted 13 lines · Takashi Iwai

At Mon, 28 Nov 2005 17:27:16 -0000 (GMT),

Quoted 11 lines · Adrian McMenamin
Quoted 9 lines · Takashi Iwai

At Mon, 28 Nov 2005 17:13:26 -0000 (GMT),

Quoted 6 lines · Adrian McMenamin
Quoted 3 lines · Takashi Iwai
Quoted 1 line

Oh I found that you already fixed conf.c :)

If it has been "fixed" why won't it compile?

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 2 lines

Look at "conf.c". pcm_ladspa.c isn't fixed yet.

OK, I understand

I fixed for pcm_ladspa.c now. Try the CVS version later.

I got a patch from the uclibc list which fixed ladspa.c but unfortunately failed on another file later in the build

Did you try the ALSA CVS version?

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click