![]() |
How to compile OpenH323 and PWLib on Solaris 9 Craig Southeren Last updated 18 June 2004 |
Introduction
Prerequisites
Environment
Compiling
Installing
Running
Bison problems
Compile problems
Change history
OpenH323 is capable of running on many Unix-like platforms due to an underlying multi-platform library called PWLib. While this library is supposed to compile "out of the box" for most common platforms, it can be difficult for some users to know what actions are required for some of the less common environments .
This document describes the steps followed by the author between 23rd April and 10th May 2004 to get OpenH323 compiled and running under Solaris 9. The version of Solaris used was obtained under the Free Solaris Binary License Program, and an evaluation version of VMWare was used on a Windows 2000 host to avoid reconfiguring or purchasing new hardware.
The following packages must be downloaded and installed in order to compile OpenH323 on Solaris. These are all Open Source packages that can be downloaded in binary form from many different web sites, such as Sunfreeware.com
GNU gcc, version 2.95.x, version 3.2.x, 3.3.x or 3.4.0
GNU Make
GNU Bison (see note below)
GNU Flex
Installation of the following packages is recommended as they can be used by PWLib and OpenH323 to provide significant additional functionality
Expat XML library
OpenSSL
The following components were used for this test:
gcc 3.3.2 package from Sunfreeware.com
make 3.80 package from Sunfreeware.com
bison 1.875 compiled from source, as described below
flex 2.5.31 package from Sunfreeware.com
expat 1.95.5 package from Sunfreeware.com
openssl 0.9.7d package from Sunfreeware.com
PWLib and OpenH323 CVS head revision as of 10 May 2004
PWLib and OpenH323 configured and compiled cleanly using both the "debug" and "opt" targets after resolving the following three issues (see below for additional information):
As of this date (10 May 2004) the install target does work as required on Solaris, but the installed files have problems relating to incorrect paths. This is a not a Solaris specific problem - the same problem exists on Linux. It is also important to use the GNU make when running install, which requires specifying the full path of make on the command line or putting /usr/local/bin into the PATH for root.
The OpenH323 sample program openam was used for testing as it was preferred to avoid any problems that may have been caused by VMWare attempting to emulate the Sun audio hardware. The only problem encountered was that the LD_LIBRARY_PATH environment variable must include the OpenH323, PWLib and OpenSSL lib directories, as follows:
/usr/local/lib:${HOME}/openh323/lib:${HOME}/pwlib/lib:/usr/local/ssl/lib
There were problems running openam on Solaris, but these matched similar problems on Linux and are attributed to the current state of the development code in the CVS
The quality of software from the Sunfreeware.com is usually excellent, but the bison-1.75 package for Solaris 9 on Intel did not work correctly during this test. When compiling PWLib, the following error occurred:
gcc -DP_USE_PRAGMA -D_REENTRANT -I/usr/local/ssl/include -Wall -gstabs+ -D_DEBUG -DNDEBUG -I/home/craigs/pwlib/include -c ../common/getdate.tab.c -o /home/craigs/pwlib/lib/obj_solaris_x86_d/getdate.tab.o
gcc: ../common/getdate.tab.c: No such file or directory
gcc: no input files
The problem was fixed by removing precompiled bison-1.75 package, and compiling and installing the bison 1.875 direct from the GNU sources. This required the installation of GNU M4, as the M4 supplied with Solaris 9 cannot be used for this purpose. Note that this requires a PATH that has /usr/local/bin before /usr/bin, work (after installing M4 as required by bison). With the new bison version installed, PWLib was able to compile cleanly.
As of this date (18 June 2004) the only known problem with the Solaris build relate to link problems when creating static executable (make debugnoshared and make optnoshared)
| 18 June 2004 | Craig Southeren | Added section on final completion |
| 10 June 2004 | Craig Southeren | Renamed to "How to compile OpenH323 and PWLib on Solaris 9" |
| 10 May 2004 | Craig Southeren | Checked and verified with latest plugin changes |
| 27 April 2004 | Craig Southeren | Updated for latest CVS and additional information on compiling, running and installing |
| 23 April 2004 | Craig Southeren | Initial version started |
Copyright © 2003-2007 by Post Increment
A.B.N 95 856 785 279
All Rights Reserved
All trademarks and copyrights on this page are owned by their respective owners.