Subject: Compilation of Shared libraries
To: None <>
From: Kwok Ng <>
List: tech-userlevel
Date: 06/17/2005 13:43:44

Target Application: PHP-5.0.4

I'm trying to compile php to use shared libraries (i.e. not static) and have 
so far been unable to get it to recognise my options.

"...checking whether to build shared libraries... no
checking whether to build static libraries... yes.."

My build environment seems sane - I've managed to build shared libraries for 
lighttpd AND static ones for openSSH.

The options that I used are listed below.  I've experimented with using 
explicit definitions such as --enable-shared=yes and just --enabled-shared.  
I also tried explicitly defining the host value at compile time, still no 

Below I have listed the extra packages not native to a standard build.  Has 
anyone run into this too?  If I were to jump to "cause", I'd suspect a 
crucial package not being present -although, I'd be interested to hear any 
feedback if anyone else has run into this.

BTW, I took at look at the mailing list definitions & this one seemed the 
best, if this is somewhat off topic, if you could point me in the right 
direction, that'd be ok too.


NetBSD 1.6.2 Kernel Source CVS/Stable - updated (last week)

perl-5.8.1          Practical Extraction and Report Language
sqlite-2.8.16       SQL Database Engine in a C Library
tcl-8.4.8           Ousterhout's Tool Command Language, a scripting language
pcre-5.0nb1         Perl Compatible Regular Expressions library
m4-1.4.2            GNU version of UNIX m4 macro language processor
bison-2.0           GNU yacc(1) replacement
libtool-base-1.5.10nb10 Generic shared library support script (the script 
readline-5.0        GNU library that can recall and edit previous input
gmake-3.80nb4       GNU version of 'make' utility


checking host system type... i386-unknown-netbsdelf1.6.2.
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... NetBSD ld.elf_so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes