[pulseaudio-tickets] [PulseAudio] #493: gdbm makes building difficult on Solaris

PulseAudio trac-noreply at tango.0pointer.de
Wed Feb 25 17:52:10 PST 2009


#493: gdbm makes building difficult on Solaris
-----------------------------------+----------------------------------------
 Reporter:  zanchey                |       Owner:  lennart
     Type:  enhancement            |      Status:  new    
 Priority:  normal                 |   Milestone:  0.9.15 
Component:  module-device-restore  |    Severity:  normal 
 Keywords:                         |  
-----------------------------------+----------------------------------------
 The use of gdbm has made compiling PulseAudio a bit interesting on
 Solaris.

 gdbm is not shipped by Sun and is not available as an optional SUNW
 package. It is available from third-party distributors (e.g.
 blastwave.org) but this requires users to set up a secondary package
 installation tool.

 ndbm is a possible replacement.

 Possible approaches:

  1. Add a note in the documentation to say that PulseAudio requires gdbm,
 and that Solaris users will need to download and install it separately.

  Presumably autotools will pick up libraries from /opt/csw/lib etc.

  2. Convert modules/module-device-restore.c to use ndbm if gdbm is not
 available.

  Presumably requires a bunch of #ifdef-ing, which is potentially ugly.

  3. Convert modules/module-device-restore.c to use ndbm. If gdbm is
 available, link with -lgdbm -lgdbm_compat to use GDBM's NDBM compatibility
 layer.

  Possible issues if there are features in GDBM unsupported by NDBM (e.g.
 there is no way in NDBM to set the cache size, AFAICT). Files created by
 NDBM and GDBM-in-NDBM-compat-mode are incompatible but the use of the host
 name in creating the file probably negates this.

 (I am happy to work on a patch using methods 2 or 3, but would appreciate
 some guidance as to which would be more acceptable to the PulseAudio
 project.)

-- 
Ticket URL: <http://pulseaudio.org/ticket/493>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list