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

OSS specific Solaris discussion (x86/SPARC)

Moderators: hannu, dev, cesium, kodachi

Postby roman_austria » Wed Jun 18, 2008 2:58 pm

Ionic wrote: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


Don't get me wrong, but IMHO I avoid blastwave when
possible. As the name implies a blast of packages are
to be installed, and that is not my intention.

I got gawk compiled from source right out of the box.
So I have one little installation instead of hundred
packages which I don't need (but blastwave) ;-)

The compilation now worked. It is to say that I have
applied the patch in "kernel/OS/SunOS/udi.c" before,
using "sys/usb/usbai.h" instead of "sys/usb/usba.h".

Conclusion:

1. Install SUNWaudh package
Code: Select all
    # pkg install SUNWaudh
   

2. Install SUNWusbu package
Code: Select all
    # pkg install SUNWusbu
   

3. Download, compile and install gawk
Code: Select all
    # wget http://ftp.gnu.org/pub/gnu/gawk/gawk-3.1.6.tar.bz2
    # gtar -xjvf gawk-3.1.6.tar.bz2
    # cd gawk-3.1.6
    # ./configure --prefix=/opt/gawk
    # make install
    # ln -s /opt/gawk/bin/gawk /usr/bin/gawk
   


[edit by cesium: This message at OpenSolaris.org says gawk package is available via sunfreeware]

4. Now ready to compile and package oss!
Code: Select all
    (In an empty directory)
    # /path_to_oss/configure
    # make package
   


I hope these steps helps people with the same
problem on a bare OpenSolaris 2008.05 installation.

Many thanks to Cesium, dev and Ionic (in alphabetical
order).

Roman.
Last edited by roman_austria on Wed Jun 18, 2008 3:03 pm, edited 1 time in total.
roman_austria
 
Posts: 25
Joined: Mon Oct 15, 2007 2:27 pm

Postby Ionic » Wed Jun 18, 2008 3:02 pm

Hey,

cool, enjoy OSS. :)

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

Postby roman_austria » Thu Jun 19, 2008 7:04 am

Ionic wrote:Hey,

cool, enjoy OSS. :)

-Ionic


Oh my gosh, the journey is not ended ...

"ossxmix" is missing. I think due to missing GTK
stuff.

"osstest" worked right after installation, but after reboot
it states:

Code: Select all
-bash-3.2$ osstest
Sound subsystem and version: OSS 4.1 (b 080607/200806181431) (0x00040090)
Platform: SunOS/i86pc 5.11 snv_90


NOTICE! You don't have any audio devices available.
        It looks like your audio hardware was not recognized
        by OSS. Please contact 4Front technologies for help
        (http://www.opensound.com/support.cgi). Don't forget to
        include your soundon.log file to the support request.


This is probably the reason why no application can play the
sound.

Does anyone know which GTK-package I must have installed?
And why does OSS doesn't recognize any sound device after
reboot? (I did a "init 6")

Roman.

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

Postby roman_austria » Thu Jun 19, 2008 8:08 am

So for now I have installed SUNWGtk which also
included SUNWGlib. So I got the following compile
error:

Code: Select all
"gtkvu.c", line 8: cannot find include file: "gtk/gtkmain.h"


"gtkmain.h" is installed under

Code: Select all
/usr/include/gtk-2.0/gtk/gtkmain.h


Either the package is not installed correctly, or "gtkvu.c"
should point to "gtk-2.0/gtk/gtkmain.h"????

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

Postby cesium » Thu Jun 19, 2008 8:48 am

Either GTK1 or GTK2 developement libraries are needed for ossxmix. I think SUNWgtku or SUNWgtkr are needed. There's a "pkg search" command which could help here. I don't know why it doesn't load on reboot. Hopefully someone else does...
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Postby roman_austria » Thu Jun 19, 2008 10:07 am

Thank you for your hint. SUNWGtku installs legacy versions
of GTK. I can't follow the package politics of OpenSolaris 2008.05 ...

cesium wrote:I don't know why it doesn't load on reboot. Hopefully someone else does...


One possible reason could be that for OpenSolaris 2008.05 a
different approach for installation has to be made. Like:

Code: Select all
pkg install oss-v4.1-x86.pkg

instead of
Code: Select all
pkgadd -d oss-v4.1-x86.pkg


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

Previous

Return to Solaris

Who is online

Users browsing this forum: No registered users and 2 guests