Recent Changes - Search:



My journals will take the place of a blog. They have moved to

Sites I take responsibility for






Places I frequent



Items for sale:


edit SideBar

Compiling Expat 2 as root and creating a package on Solaris 10

Include our styles below Infobox - invoke as >>infobox<< ... >><<

Codebox: - invoke as >>codebox<< ... >><<

warnbox: - invoke as >>codebox<< ... >><<

editingbox: - invoke as >>codebox<< ... >><<

noticebox: - invoke as >>codebox<< ... >><<

Page bread crumbs: Main - CompilingExpat2AsRootAndCreatingAPackageOnSolaris10

Pages by tags: (:listtags:)
Subscribe to this wiki: RSS Feed RSS or subscribe to this page for changes: RSS Feed RSS
496 articles have been published so far. Recent changes
(:addThis btn="custom":)

2016-03-22: This site is being moved to my main site at as part of a consolidation to one domain.

Back to Howtos?

Building Expat 2 on Solaris 10



gcc and GNU make installed from

Download and install:

The GNU C compiler and related programs - installs in /usr/local. This package includes the GNU C, C++, and f77 suites and support files. These gcc packages require the installation of libiconv. It was compiled to use the SUN assembler and loader usually in /usr/ccs/bin if the SUNW developer packages are installed. When needed and the source code supports it, this C compiler can create 64-bit executables via the -m64 flag as well as the usual 32-bit ones. Please read the details on how this package was created which can be found at Comments on gcc 3.4.6 . The Details link below contains information on what is new in 3.4.6. Documentation is in /usr/local/doc/gcc, /usr/local/man, and /usr/local/info. The gcc package is quite large. Some users may have trouble downloading very large files via a browser. These users should try using command line anonymous ftp or perhaps the Sun Download Manager.


The GNU version of make, also known as gmake - installs in /usr/local. Dependencies: To have /usr/local/lib/ install either the libgcc-3.4.6 or gcc-3.4.6 or higher packages.

Testing that our installed products work:

 # gcc -v
 Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
 Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
 Thread model: posix
 gcc version 3.4.6

 # make -v
 GNU Make 3.81
 Copyright (C) 2006  Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.
 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

 This program built for sparc-sun-solaris2.10

Prep and Environment:

Make sure /usr/ccs/bin is in your PATH. The easiest way to do this prior to compiling is

 # PATH=/usr/ccs/bin:$PATH


Create our source workbench:

 # mkdir /build

Download the Expat 2 source code from


Make sure you use a minimum version of 1.1.4 due to an exploit.

Building expat:

 # cd /build/expat-2.0.1
 # ./configure --prefix=/usr/local
 # make
 # make install

You can now compile Apache or GNU base programs requiring Expat 2 libraries using the following environment variables (if needed):

 # LDFLAGS="-L/usr/local/lib"; export LDFLAGS

Kevin's Public Wiki maintained and created by Kevin P. Inscoe is licensed under a
Creative Commons Attribution 3.0 United States License.

Back to my web site -

Edit - History - Print - Recent Changes - Search
Page last modified on August 12, 2008, at 07:07 PM EST