*This message was transferred with a trial version of CommuniGate(tm) Pro*
Hello, everyone. I am make somewhat of a transition from mod_perl to php and
running into some problems along the way. Any help would really be
appreciated.

Here are my problem(s). I want to ad libpdf support to my box [OSX Server
10/Unix]. I have had no problem building & installing php, *except* for the
fact that I cannot load modules dynamically and/or cannot get libpdf to
install. 

I get the following error:
Warning: Cannot dynamically load libpdf.dylib - dynamic modules are not
supported in /Library/WebServer/jpmktg/clock.php on line 3

If I try to staticlly compile libpdf with php I get this message:
Fatal error: Call to undefined function: pdf_new() in
/Library/WebServer/jpmktg/clock.php on line 4

I am not sure what I have done wrong. I can get GD support along with tiff,
png, & jpeg just fine!

I guess ultimately I want to be able to run dynamic modules and/or libpdf.

Thanks in advance,
Isaac

Here is the config for my last install

[localhost:/private/var/php-4.0.6] root# ./configure
--with-apxs=/usr/sbin/apxs --prefix=/System/Library/PHP --with-gd
--with-config-file-path=/System/Library/PHP --with-zlib-dir=/usr/lib
--with-jpeg-dir=/usr/local/lib --with-tiff-dir=/usr/local/lib
--with-png-dir=/usr/local/lib --enable-track-vars --enable-magic-quotes
--enable-debugger --enable-ftp --enable-sockets --with-mysql=/usr/local
--with-pdflib=/usr/local/lib --with-ttf=/usr/local/include
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... missing
Updated php_version.h
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... powerpc-apple-darwin1.3.3
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for bison... bison -y
checking bison version... 1.28 (ok)
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc  ) works... yes
checking whether the C compiler (cc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking how to run the C preprocessor... cc -E -traditional-cpp
checking for AIX... no
checking for cc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking whether cc understands -c and -o together... yes
checking whether ln -s works... yes
checking for flex... flex
checking for yywrap in -lfl... no
checking lex output file root... lex.yy
checking whether yytext is a pointer... no
checking for working const... yes
checking for pthreads_cflags...
checking for pthreads_lib...

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS... yes
checking for mod_charset compatibility option... no
checking for Apache 2.0 module support via DSO through APXS... no
checking for Caudium support... no
checking for fhttpd module support... no
checking for FastCGI support... no
checking for Zeus ISAPI support... no
checking for NSAPI support... no
checking for PHTTPD support... no
checking for Pi3Web Support... no
checking for Roxen/Pike support... no
checking for Servlet support... no
checking for thttpd... no
checking for chosen SAPI module... apache

Running system checks
checking for missing declarations of reentrant functions... done
checking whether compiler supports -R... no
checking whether compiler supports -Wl,-rpath,... no
checking for sendmail... /usr/sbin/sendmail
checking whether system uses EBCDIC... no
checking for socket in -lsocket... no
checking for htonl in -lsocket... no
checking for yp_get_default_domain... yes
checking for dlopen in -ldl... no
checking for sin in -lm... yes
checking for inet_aton in -lresolv... no
checking for inet_aton in -lbind... no
checking for __inet_aton in -lbind... no
checking for res_search in -lsocket... no
checking for res_search in -lresolv... no
checking for dn_skipname in -lresolv... no
checking for __dn_skipname in -lresolv... no
checking for ANSI C header files... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for fclose declaration... ok
checking for alloca.h... no
checking for arpa/inet.h... yes
checking for arpa/nameser.h... yes
checking for crypt.h... no
checking for fcntl.h... yes
checking for grp.h... yes
checking for ieeefp.h... no
checking for limits.h... yes
checking for locale.h... yes
checking for netinet/in.h... yes
checking for pwd.h... yes
checking for resolv.h... yes
checking for signal.h... yes
checking for stdarg.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for syslog.h... yes
checking for sysexits.h... yes
checking for sys/file.h... yes
checking for sys/mman.h... yes
checking for sys/mount.h... yes
checking for sys/resource.h... yes
checking for sys/select.h... yes
checking for sys/socket.h... yes
checking for sys/statfs.h... no
checking for sys/statvfs.h... no
checking for sys/sysexits.h... no
checking for sys/time.h... yes
checking for sys/types.h... yes
checking for sys/varargs.h... no
checking for sys/wait.h... yes
checking for unistd.h... yes
checking for unix.h... no
checking for utime.h... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for tm_zone in struct tm... yes
checking for tm_gmtoff in struct tm... yes
checking for struct flock... yes
checking for socklen_t... no
checking size of long... 4
checking size of int... 4
checking for st_blksize in struct stat... yes
checking for st_blocks in struct stat... yes
checking for st_rdev in struct stat... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for IPv6 support... yes
checking for vprintf... yes
checking for asctime_r... no
checking for chroot... yes
checking for ctime_r... no
checking for cuserid... no
checking for flock... yes
checking for gai_strerror... yes
checking for gcvt... no
checking for getlogin... yes
checking for gethostbyaddr... yes
checking for getprotobyname... yes
checking for getprotobynumber... yes
checking for getservbyname... yes
checking for getservbyport... yes
checking for getrusage... yes
checking for gettimeofday... yes
checking for gmtime_r... no
checking for inet_aton... yes
checking for isascii... yes
checking for link... yes
checking for localtime_r... no
checking for lockf... no
checking for lrand48... no
checking for memcpy... yes
checking for memmove... yes
checking for mkstemp... yes
checking for mmap... yes
checking for putenv... yes
checking for random... yes
checking for rand_r... no
checking for regcomp... yes
checking for res_search... yes
checking for setitimer... yes
checking for setlocale... yes
checking for localeconv... yes
checking for setsockopt... yes
checking for setvbuf... yes
checking for shutdown... yes
checking for sin... yes
checking for snprintf... yes
checking for srand48... no
checking for srandom... yes
checking for statfs... yes
checking for statvfs... no
checking for std_syslog... no
checking for strcasecmp... yes
checking for strcoll... yes
checking for strdup... yes
checking for strerror... yes
checking for strftime... yes
checking for strstr... yes
checking for strtok_r... no
checking for symlink... yes
checking for tempnam... yes
checking for tzset... yes
checking for unsetenv... yes
checking for usleep... yes
checking for utime... yes
checking for vsnprintf... yes
checking for getaddrinfo... yes
checking for strlcat... no
checking for strlcpy... no
checking for getopt... yes
checking whether utime accepts a null argument... yes
checking for working alloca.h... (cached) no
checking for alloca... yes
checking whether sprintf is broken... no
checking for declared timezone... yes
checking for type of reentrant time-related functions... POSIX
checking for readdir_r... no
checking whether to include debugging symbols... no
checking layout of installed files... yes
checking path to configuration file... yes
checking whether to install PEAR... yes
checking whether to enable safe mode by default... no
checking for safe mode exec dir... /usr/local/php/bin
checking for OpenSSL support... no
checking whether to enable PHP's own SIGCHLD handler... no
checking whether to enable magic quotes by default... yes
checking whether to enable runpaths... yes
checking whether to explicitly link against libgcc... no
checking whether to enable short tags by default... yes
checking whether to enable PIC for shared objects... yes
checking whether to enable dmalloc... no
checking whether to enable php streams... no
checking for crypt in -lcrypt... no

Configuring extensions
checking if the location of ZLIB install directory is defined... yes
checking whether to include ZLIB support... no
checking for gzgets in -lz... yes
checking for fopencookie... no
checking for ASPELL support... no
checking for bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking CCVS Support... no
checking whether to include cpdflib support... no
checking whether to include crack support... no
checking whether to enable ctype support... no
checking for CURL support... no
checking for CyberCash support... no
checking for cybermut support... no
checking whether to include old xDBM support... no
checking whether to enable DBA... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB2 support... no
checking for Berkeley DB3 support... no
checking for DBM support... no
checking for CDB support... no
checking whether to enable DBA interface... no
checking whether to enable the bundled dbase library... no
checking whether to enable dbx support... no
checking for DOM support... no
checking whether to enable exif support... no
checking for FrontBase SQL92 (fbsql) support... no
checking for fdftk support... no
checking whether to enable the bundled filePro support... no
checking whether to add fribidi support... no
checking whether to enable FTP support... yes
checking whether to include GD support... yes
checking whether to enable truetype string function in gd... no
checking for the location of libjpeg... yes
checking for jpeg_read_header in -ljpeg... yes
checking for the location of libpng... yes
checking for png_info_init in -lpng... yes
checking for the location of libXpm... no
If configure fails try --with-xpm-dir=<DIR>
checking for freetype(2)... no
If configure fails try --with-freetype-dir=<DIR>
checking whether to include include FreeType 1.x support... yes
checking whether to include T1lib support... no
checking for gdImageString16 in -lgd... yes
checking for gdImagePaletteCopy in -lgd... yes
checking for gdImageCreateFromPng in -lgd... yes
checking for gdImageCreateFromGif in -lgd... no
checking for gdImageWBMP in -lgd... yes
checking for gdImageCreateFromJpeg in -lgd... yes
checking for gdImageCreateFromXpm in -lgd... yes
checking for gdImageCreateTrueColor in -lgd... no
checking for gdImageSetTile in -lgd... yes
checking for gdImageSetBrush in -lgd... yes
checking for gdImageStringFTEx in -lgd... no
checking for gdImageColorClosestHWB in -lgd... yes
checking for gdImageColorResolve in -lgd... yes
checking for gdImageGifCtx in -lgd... no
checking whether to include GNU gettext support... no
checking for gmp support... no
checking for Hyperwave support... no
checking for ICAP support... no
checking for iconv support... no
checking for IMAP support... no
checking for Informix support... no
checking for Ingres II support... no
checking for InterBase support... no
checking for ircg support... no
checking for Java support... no
checking whether to include LDAP support... no
checking whether to enable multibyte string support... no
checking whether to enable japanese encoding translation... no
checking for MCAL support... no
checking for mcrypt support... no
checking for mhash support... no
checking whether to include ming support... no
checking for mnoGoSearch support... no
checking for mSQL support... no
checking for Muscat support... no
checking for MySQL support... yes
checking for MySQL UNIX socket... /tmp/mysql.sock
checking for Oracle-OCI8 support... no
checking for Adabas support... no
checking for SAP DB support... no
checking for Solid support... no
checking for IBM DB2 support... no
checking for Empress support... no
checking for Empress local access support... no
checking for Velocis support... no
checking for a custom ODBC support... no
checking for iODBC support... no
checking for Easysoft ODBC-ODBC Bridge support... no
checking for unixODBC support... no
checking for OpenLink ODBC support... no
checking for DBMaker support... no
checking for Oracle-ORACLE support... no
checking for Ovrimos SQL Server support... no
checking whether to include PCRE support... yes
checking for memmove... (cached) yes
checking whether to include PDFlib support... yes
checking whether to include Verisign Payflow Pro support... no
checking for PostgreSQL support... no
checking whether to include POSIX-like functions... yes
checking for seteuid... yes
checking for setegid... yes
checking for setsid... yes
checking for getsid... no
checking for setpgid... yes
checking for ctermid... yes
checking for mkfifo... yes
checking for getrlimit... yes
checking whether to include pspell support... no
checking whether to include QDOM support... no
checking for libedit readline replacement... no
checking for readline support... no
checking for recode support... no
checking for Sablotron XSL support... no
checking libexpat dir for Sablotron 0.50... no
checking whether to enable CORBA support via Satellite... no
checking for mm support... no
checking whether to enable transparent session id propagation... no
checking whether to enable session support... yes
checking whether to enable shmop support... no
checking for SNMP support... no
checking whether to enable UCD SNMP hack... no
checking whether to enable sockets support... yes
checking for netdb.h... yes
checking for netinet/tcp.h... yes
checking for sys/un.h... yes
checking for errno.h... yes
checking for hstrerror... yes
checking for dlopen... no
checking for pam_start in -lpam... no
checking for getcwd... yes
checking for getwd... yes
checking for standard DES crypt... yes
checking for extended DES crypt... yes
checking for MD5 crypt... yes
checking for Blowfish crypt... yes
checking whether flush should be called explicitly after a bufferered io...
yes
checking for libswf support... no
checking for Sybase support... no
checking for Sybase-CT support... no
checking whether to enable System V semaphore support... no
checking whether to enable System V shared memory support... no
checking for vpopmail support... no
checking for WDDX support... no
checking whether byte ordering is bigendian... yes
checking for XML support... yes
checking external libexpat install dir... no
checking whether to enable xslt support... no
checking whether to enable the XSLT Sablotron backend... no
checking libexpat dir for Sablotron XSL support... no
checking for YAZ support... no
checking whether to include YP support... no
checking whether to include zziplib support... no
checking whether to enable versioning... no
checking which regex library to use... php

Configuring Zend
checking bison version... 1.28 (ok)
checking for limits.h... (cached) yes
checking for malloc.h... no
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for signal.h... (cached) yes
checking for unix.h... (cached) no
checking for dlfcn.h... no
checking for size_t... (cached) yes
checking return type of signal handlers... void
checking for dlopen in -ldl... (cached) no
checking for dlopen... (cached) no
checking for uint... yes
checking for ulong... no
checking for vprintf... (cached) yes
checking for 8-bit clean memcmp... yes
checking for working alloca.h... (cached) no
checking for alloca... (cached) yes
checking for memcpy... (cached) yes
checking for strdup... (cached) yes
checking for getpid... yes
checking for kill... yes
checking for strtod... yes
checking for strtol... yes
checking for finite... yes
checking for fpclass... no
checking whether sprintf is broken... (cached) no
checking for finite... (cached) yes
checking for isfinite... no
checking for isinf... yes
checking for isnan... yes
checking whether fp_except is defined... no
checking whether to enable experimental ZTS... no
checking whether to enable inline optimization for GCC... no
checking whether to enable a memory limit... no
checking whether to enable Zend debugging... no
checking for inline... inline

Configuring TSRM
checking for stdarg.h... (cached) yes

Configuring libtool
checking build system type... powerpc-apple-darwin1.3.3
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD-compatible nm... /usr/bin/nm -p
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc supports -c -o file.o... ~/php-4.0.6/conftest
yes
checking if cc supports -c -o file.lo... yes
checking if cc supports -fno-rtti -fno-exceptions ... yes
checking if cc static flag -static works... none
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -p output... ok
checking how to hardcode library paths into programs... unsupported
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... darwin1.3.3 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for objdir... .libs
creating libtool
updating cache ./config.cache
loading cache ./config.cache

Generating files
checking for working mkdir -p... yes
creating config_vars.mk
updating cache ./config.cache
creating ./config.status
creating php4.spec
creating Zend/Makefile
creating main/build-defs.h
creating pear/scripts/pear
creating pear/scripts/phpize
creating pear/scripts/php-config
creating TSRM/Makefile
creating main/php_config.h
creating sapi/Makefile
creating ext/Makefile
creating Makefile
creating pear/Makefile
creating main/Makefile
creating ext/zlib/Makefile
creating ext/ftp/Makefile
creating ext/gd/Makefile
creating ext/mysql/Makefile
creating ext/pcre/Makefile
creating ext/pcre/pcrelib/Makefile
creating ext/pdf/Makefile
creating ext/posix/Makefile
creating ext/session/Makefile
creating ext/sockets/Makefile
creating ext/standard/Makefile
creating ext/xml/Makefile
creating ext/xml/expat/Makefile
creating ext/xml/expat/xmlparse/Makefile
creating ext/xml/expat/xmltok/Makefile
creating sapi/apache/Makefile
creating regex/Makefile
creating number.c
creating number.h
creating main/internal_functions.c
+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE.  By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+

Thank you for using PHP.

Here is the portion of my libpdf make
Making all in pdf
/bin/sh /private/var/root/php-4.0.6/libtool --silent --mode=compile cc  -I.
-I/private/var/root/php-4.0.6/ext/pdf -I/private/var/root/php-4.0.6/main
-I/private/var/root/php-4.0.6 -I/usr/include/httpd
-I/private/var/root/php-4.0.6/Zend -I/include -I/usr/local/include/mysql
-I/private/var/root/php-4.0.6/ext/xml/expat/xmltok
-I/private/var/root/php-4.0.6/ext/xml/expat/xmlparse
-I/private/var/root/php-4.0.6/TSRM  -traditional-cpp -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT -DHARD_SERVER_LIMIT=1024 -DEAPI -DSUPPORT_UTF8
-DXML_BYTE_ORDER=21 -g -O2  -c pdf.c
/bin/sh /private/var/root/php-4.0.6/libtool --silent --mode=link cc  -I.
-I/private/var/root/php-4.0.6/ext/pdf -I/private/var/root/php-4.0.6/main
-I/private/var/root/php-4.0.6 -I/usr/include/httpd
-I/private/var/root/php-4.0.6/Zend -I/include -I/usr/local/include/mysql
-I/private/var/root/php-4.0.6/ext/xml/expat/xmltok
-I/private/var/root/php-4.0.6/ext/xml/expat/xmlparse
-I/private/var/root/php-4.0.6/TSRM  -traditional-cpp -DDARWIN -DUSE_HSREGEX
-DUSE_EXPAT -DHARD_SERVER_LIMIT=1024 -DEAPI -DSUPPORT_UTF8
-DXML_BYTE_ORDER=21 -g -O2   -o libpdf.la  pdf.lo
ranlib: warning for library: .libs/libpdf.al the table of contents is empty
(no object file members in the library define global symbols)
~/php-4.0.6/ext/pdf/.libs



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to