Subject: Compilation of Shared libraries
To: None <tech-userlevel@netbsd.org>
From: Kwok Ng <kwokng888@hotmail.com>
List: tech-userlevel
Date: 06/17/2005 13:43:44
Hi,

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 
change..

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.

Thanks
kwok

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 
itself)
readline-5.0        GNU library that can recall and edit previous input
gmake-3.80nb4       GNU version of 'make' utility



./configure
--prefix=/code/php
--enable-fastcgi
--enable-discard-path
--enable-force-cgi-redirect
--with-config-file-path=/etc
--disable-ipv6
--with-openssl=/code/openssl
--with-zlib=/usr
--without-iconv
--enable-sqlite-utf8
--without-pear
--enable-shared
--enable-static

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