LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-17-2004, 01:22 PM   #1
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 34
Can't compile Alsa under Slack 10.0


Hey guys, I can't seem to compile some of the alsa packeges under slackware 10.0 (I can under Slack 9.1) here is the compiler output:

/usr/include/linux/byteorder/little_endian.h:43: error: parse error before "__cpu_to_le64p"
/usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_le64p':
/usr/include/linux/byteorder/little_endian.h:45: error: `__le64' undeclared (first use in this function)
/usr/include/linux/byteorder/little_endian.h:45: error: (Each undeclared identifier is reported only once
/usr/include/linux/byteorder/little_endian.h:45: error: for each function it appears in.)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:47: error: parse error before '*' token
/usr/include/linux/byteorder/little_endian.h: In function `__le64_to_cpup':
/usr/include/linux/byteorder/little_endian.h:49: error: `p' undeclared (first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:51: error: parse error before "__cpu_to_le32p"
/usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_le32p':
/usr/include/linux/byteorder/little_endian.h:53: error: `__le32' undeclared (first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:55: error: parse error before '*' token
/usr/include/linux/byteorder/little_endian.h: In function `__le32_to_cpup':
/usr/include/linux/byteorder/little_endian.h:57: error: `p' undeclared (first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:59: error: parse error before "__cpu_to_le16p"
/usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_le16p':
/usr/include/linux/byteorder/little_endian.h:61: error: `__le16' undeclared (first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:63: error: parse error before '*' token
/usr/include/linux/byteorder/little_endian.h: In function `__le16_to_cpup':
/usr/include/linux/byteorder/little_endian.h:65: error: `p' undeclared (first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:67: error: parse error before "__cpu_to_be64p"
/usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_be64p':
/usr/include/linux/byteorder/little_endian.h:69: error: `__be64' undeclared (first use in this function)
/usr/include/linux/byteorder/little_endian.h:69: error: parse error before "__swab64p"
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:71: error: parse error before '*' token
/usr/include/linux/byteorder/little_endian.h: In function `__be64_to_cpup':
/usr/include/linux/byteorder/little_endian.h:73: error: `p' undeclared (first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:75: error: parse error before "__cpu_to_be32p"
/usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_be32p':
/usr/include/linux/byteorder/little_endian.h:77: error: `__be32' undeclared (first use in this function)
/usr/include/linux/byteorder/little_endian.h:77: error: parse error before "__swab32p"
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:79: error: parse error before '*' token
/usr/include/linux/byteorder/little_endian.h: In function `__be32_to_cpup':
/usr/include/linux/byteorder/little_endian.h:81: error: `p' undeclared (first use in this function)
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:83: error: parse error before "__cpu_to_be16p"
/usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_be16p':
/usr/include/linux/byteorder/little_endian.h:85: error: `__be16' undeclared (first use in this function)
/usr/include/linux/byteorder/little_endian.h:85: error: parse error before "__swab16p"
/usr/include/linux/byteorder/little_endian.h: At top level:
/usr/include/linux/byteorder/little_endian.h:87: error: parse error before '*' token
/usr/include/linux/byteorder/little_endian.h: In function `__be16_to_cpup':
/usr/include/linux/byteorder/little_endian.h:89: error: `p' undeclared (first use in this function)
fm.c: In function `snd_instr_fm_convert_to_stream':
fm.c:81: error: `__be32' undeclared (first use in this function)
fm.c:81: error: parse error before '{' token
fm.c:81: error: parse error before ')' token
fm.c:81: error: `__x' undeclared (first use in this function)
fm.c: At top level:
fm.c:81: error: parse error before ')' token
fm.c:106: error: `put' undeclared here (not in a function)
fm.c:106: warning: data definition has no type or storage class
fm.c:107: error: `put' undeclared here (not in a function)
fm.c:107: warning: initialization makes pointer from integer without a cast
fm.c:107: warning: data definition has no type or storage class
fm.c:108: error: parse error before "return"
make[2]: *** [fm.lo] Error 1
make[2]: Leaving directory `/usr/src/alsa-lib-1.0.7rc2/src/instr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/alsa-lib-1.0.7rc2/src'
make: *** [all-recursive] Error 1

Does anyone know what I can do to fix this, this happened with alsa-libs 1.0.6 up to 1.0.7.rc2 same errors.
 
Old 11-17-2004, 01:40 PM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
is there a problem with alsa packages from slapt?
 
Old 11-17-2004, 01:43 PM   #3
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Original Poster
Rep: Reputation: 34
Well kinda, I need kernel 2.6.x modules not 2.4.x modules so I have to recompile alsa myself, the drivers compile perfectly but when I try to compile the libs I get that error.
 
Old 11-17-2004, 03:47 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally posted by ProtoformX
Well kinda, I need kernel 2.6.x modules not 2.4.x modules so I have to recompile alsa myself, the drivers compile perfectly but when I try to compile the libs I get that error.
Um, I'm running a custom 2.6.7 kernel and I'm using the Slack packages for alsa and it works fine. I think I've compiled pretty much every alsa option available in the kernel, but it really hasn't been a problem.
 
Old 11-17-2004, 04:23 PM   #5
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Original Poster
Rep: Reputation: 34
So your using alsa 1.0.5 libs with kernel's included drivers, well thats another problem. 2.6.9 has alsa 1.0.6a drivers so why would I want to use alsa-libs1.0.5 with 1.0.6a drivers?
 
Old 11-17-2004, 06:48 PM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally posted by ProtoformX
So your using alsa 1.0.5 libs with kernel's included drivers, well thats another problem. 2.6.9 has alsa 1.0.6a drivers so why would I want to use alsa-libs1.0.5 with 1.0.6a drivers?
Because it might work?

Patrick has already done the hard work, you might as well take advantage of it. However, the choice is entirely yours.
 
Old 11-17-2004, 08:02 PM   #7
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Original Poster
Rep: Reputation: 34
Well, if Slack 10.0 would allow me to compile in the frist place I wouldn't have this problem now would I?I think I'm gonna go back to Slack 9.1 recompile everything slowly up to 10.0.
 
Old 11-27-2004, 11:45 AM   #8
shashir
Member
 
Registered: Jul 2004
Posts: 70

Rep: Reputation: 15
k I can help

Ok! I can help here... alsa can be installed fairly well using a 2.6.* kernel in which you have "yes" said to the ALSA and OSS modules... it is important that you do that. That or install Mr. Volkerding's alsa packages... they work hand in hand.

But if you really want to compile alsa... don't use that kernel you are using... switch to another 2.6 kernel and say yes to the alsa modules... but compile as you usually do. Switching kernels can fight that bug your compilation has... about alsa: probablyt best to use precompiled packages.... they work fine with a little tweaking.
 
Old 11-28-2004, 04:30 AM   #9
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Original Poster
Rep: Reputation: 34
Actully I fixed it, and I still use my own compiled modules, not the kernels modules, I always compile my own modules sound, tv card, eithernet controller, webcam there all compiled by me.

And swtiching kernels had nothing to do with my problem, I could'nt even make the drivers using the defualt kernel slack ships with. There was something wrong with my GCC so I just recompiled off another box and now it works.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ALSA compile problem Ziggydisturbed Linux - Software 3 07-25-2005 02:53 PM
Can't compile Alsa starionwolf Slackware 23 02-18-2005 12:11 PM
Can't Compile ALSA Drivers AFI_Flame Linux - General 3 07-01-2004 02:59 PM
Do We Have to Compile ALSA As a Module? johnleemk Linux - Hardware 1 02-04-2004 01:06 PM
compile alsa 0.5.12a under RH 8.0 ? null_mind Linux - Hardware 0 01-01-2003 09:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration