Compile errors: Cannot find <sys/audio.h>

OSS specific Solaris discussion (x86/SPARC)

Moderators: hannu, dev, kodachi, cesium

Compile errors: Cannot find <sys/audio.h>

Postby roman_austria » Fri Jun 13, 2008 2:22 pm

Hi,

I am encountering compile errors when I try
to build oss.

Code: Select all
"../../kernel/framework/include/os.h", "line 79: cannot find include file: sys/audio.h"
"../../kernel/framework/include/os.h", "line 80: cannot find include file: sys/mixer.h"


What is wrong here?

Roman.
roman_austria
 
Posts: 25
Joined: Mon Oct 15, 2007 2:27 pm

Postby cesium » Fri Jun 13, 2008 3:24 pm

You're missing audio headers - I think you need to install SUNWaudh. Which version of Solaris do you use?
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Postby Ionic » Fri Jun 13, 2008 5:34 pm

I am asuming you tried to run configure.

HOW do you run it? Please be sure to specify an absolute path to configure, e.g. /path/to/oss-foobar/configure --options and NOT ../../oss-foobar/configure --options and the like.

-Ionic
Ionic
 
Posts: 14
Joined: Wed Jul 25, 2007 5:05 pm
Location: Germany

Postby dev » Sat Jun 14, 2008 4:57 am

Check to see if you have the SUNWhea package installed - I think OpenSolaris 5/08 doesn't install the compiler and development packages.
dev
 
Posts: 576
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby roman_austria » Mon Jun 16, 2008 8:56 am

Hi,

thank you for your answers.

What I am using:
OpenSolaris 2008.05

Which compilers do I have installed:
SunStudio 12 (over the packaging system)

To Ionic:
I am aware of how to access the path, but thank you.

I'll check if I have installed either SUNWaudh, or SUNWhea
respecitvely.

Roman.
roman_austria
 
Posts: 25
Joined: Mon Oct 15, 2007 2:27 pm

Postby roman_austria » Mon Jun 16, 2008 2:22 pm

I missed the SUNWaudh package. But the compilation
still not works. A lot of undefined symbol errors occurred.
Like:

Code: Select all
"udi.c", line 627: undefined symbol: USB_SUCCESS


Roman.
roman_austria
 
Posts: 25
Joined: Mon Oct 15, 2007 2:27 pm

Postby Ionic » Mon Jun 16, 2008 3:19 pm

Hello roman,

could you please try the following patch and report back, please? (against current HG): http://oss.pastebin.com/d316e8525 (seems like the Forum is not allowing pasting code - it replaced some necessary things...)

[edit by cesium: I don't think this is neccesary since usba.h already includes usbai.h]

-Ionic
Ionic
 
Posts: 14
Joined: Wed Jul 25, 2007 5:05 pm
Location: Germany

Postby roman_austria » Wed Jun 18, 2008 12:29 pm

Ionic wrote:Hello roman,

could you please try the following patch and report back, please? (against current HG): http://oss.pastebin.com/d316e8525 (seems like the Forum is not allowing pasting code - it replaced some necessary things...)


-Ionic


Hi Ionic,

sorry for the delay. If you mean the mercurial repository, that is
what I am using anyway. So I'll give it a try, by fetching the latest
bits. By the way, the pastebin site didn't show me any useful
information.

Roman.
roman_austria
 
Posts: 25
Joined: Mon Oct 15, 2007 2:27 pm

Postby Ionic » Wed Jun 18, 2008 12:37 pm

Hi,

I assumed you would fetch the patch the same day. :P

http://oss.pastebin.com/mf5bbd8a here it is again.

Yeah, I mean the mercurial repository. :)

-Ionic
Ionic
 
Posts: 14
Joined: Wed Jul 25, 2007 5:05 pm
Location: Germany

Postby roman_austria » Wed Jun 18, 2008 1:06 pm

Ionic wrote:Hi,

I assumed you would fetch the patch the same day. :P

http://oss.pastebin.com/mf5bbd8a here it is again.

Yeah, I mean the mercurial repository. :)

-Ionic


So for now I have the problem that configure states:

Cannot locate "sys/usb/usbai.h" (<>, doesn't work)

Roman
roman_austria
 
Posts: 25
Joined: Mon Oct 15, 2007 2:27 pm

Postby cesium » Wed Jun 18, 2008 1:15 pm

You need SUNWusbu package to be installed for that file.
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Postby roman_austria » Wed Jun 18, 2008 1:33 pm

cesium wrote:You need SUNWusbu package to be installed for that file.


Thank you for this hint. For now the build seemed to run
smoothly, but another packege might missing.

Code: Select all
oss-gate/setup/txt2man: line 172: gawk: not found


I have an awk installed found in /usr/bin. So if I could do
a symbolic link to gawk to get it work, I think I would be
done. Can I do that, or is there really gawk required?

By the way. It is really a shame that so many packages are
missing in order to compile as on SXCE.


Roman.
roman_austria
 
Posts: 25
Joined: Mon Oct 15, 2007 2:27 pm

Postby cesium » Wed Jun 18, 2008 1:47 pm

You're better off installing SFWgawk. (gawk is used for man pages since txt2man uses a GNU extension. Actually the install can avoid it and use a lower-quality method, not sure why it doesn't).
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Postby roman_austria » Wed Jun 18, 2008 1:53 pm

cesium wrote:You're better off installing SFWgawk. (gawk is used for man pages since txt2man uses a GNU extension. Actually the install can avoid it and use a lower-quality method, not sure why it doesn't).


So it's me again ...

Sorry, SFWgawk couldn't be found in the repository. Where could
I find that package?

Roman.
roman_austria
 
Posts: 25
Joined: Mon Oct 15, 2007 2:27 pm

Postby Ionic » Wed Jun 18, 2008 2:05 pm

Hi,

could you please install CSWgawk? I had a quick look at the Blastwave repo and found it there with this name.

I hope that's working. :)


-Ionic
Ionic
 
Posts: 14
Joined: Wed Jul 25, 2007 5:05 pm
Location: Germany

Next

Return to Solaris

Who is online

Users browsing this forum: No registered users and 2 guests