zziplib support to PHP4

Celson Aquino celson.aquino at gmail.com
Thu Aug 25 02:14:19 UTC 2005


I am trying to add zziplib support to PHP on Ubuntu 5.04 

Since I cannot find a package to install via apt-get I am trying to
compile zziplib to generate zziplib.so, then put it on PHP directory
and call with "extension=zziplib.so" (I dont know if it works this
way)

I downloaded zziplib (apt-get source zziplib-bin)
then I cd to new dir and ./configure

The following error appears:

root at localhost:/usr/local/src/zziplib-0.12.83 # ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gsed... sed
continue configure in default builddir ./i686-pc-linux-gnu
checking default prefix path... /usr/local
checking default prefix system... is /local-package
...using thread-safe linkage
checking zlib install prefix... none
checking rpm spec file... ../zziplib.spec
checking for spec package... zziplib
checking for spec version... 0.12.83
checking for spec license type... GNU LGPL (fallback)
checking for spec summary... ZZipLib - libZ-based ZIP-access Library
checking for spec category... Development/Libraries
checking for spec icon... zziplib-icon.png (fallback)
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... mawk
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD compatible install... /usr/bin/install -c
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking how to run the C preprocessor... gcc -E
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking out linker version info 0.12.83 ... /0/12:83 (-0.so.12.0.83)
creating zzip/_msvc.in via zzip/_msvc.sed of config.h.in
checking whether to enable maintainer-specific portions of Makefiles... no
checking for perl5... no
checking for perl... /usr/bin/perl
checking for python2.2... no
checking for python2.3... /usr/bin/python2.3
checking for zip... /usr/bin/zip
checking for xmlto... no
checking for gcc option to accept ANSI C... none needed
checking for inline... inline
checking for an ANSI C-conforming const... yes
checking for ANSI C header files... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for stdint.h... yes
checking for unistd.h... yes
checking for windows.h... no
checking for winnt.h... no
checking for winbase.h... no
checking for sys/int_types.h... no
checking for sys/types.h... yes
checking for sys/mman.h... yes
checking for sys/stat.h... yes
checking for sys/param.h... yes
checking for io.h... no
checking for direct.h... no
checking for zlib.h... no
checking for strcasecmp... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for off_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking whether system differentiates 64bit off_t by defines... yes
compiles library as 32bit off_t variant - largefile is not the default here
checking for zlib being found... ...oops: zlib.h not found - try
adding some CPPFLAGS to configure call
...note: and when linkage fails you might also need to set some LDFLAGS
...note: both can be set by specifying the install prefix of the zlib library
...note: via --with-zlib=path ... it will test for -Ipath/include -Lpath/lib
configure: error: zlib.h not found: "zlib" is required to build "zziplib"


What do I do?
Please help me. I need to add zziplib support to PHP4 urgently!


-- 
Celson Aquino
http://braziliancoder.multiply.com




More information about the ubuntu-users mailing list