php-install Digest 27 May 2002 10:09:16 -0000 Issue 855

Topics (messages 7109 through 7117):

config problems --with-ldap
        7109 by: Ian Miller

Overriding already-loaded GD extension via .htaccess or dl()?
        7110 by: Andy Chase
        7111 by: Rasmus Lerdorf
        7112 by: Andy Chase
        7113 by: Rasmus Lerdorf
        7116 by: Carsten Gehling

PHP v4.1.2 -- ImageFTText Problem
        7114 by: Paul Hiles
        7115 by: Rasmus Lerdorf

Porblems with php+Suse
        7117 by: Alberto Tarantino

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Everything with work fine until I try the --with ldap switch  If I try 
--with-mcrypt with will not work with ldap
I am using php 4.2.0 with solaris 8 with latest patches and gcc -3.0.1 and 
apache 2.0.36
tried php ver 4.2.1 same problem.

Ian Miller
BSD/IS-BMI Computing
Sr. System Engineer
University of Chicago
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hi all,

I've searched the PHP manual, Google, and the list archives for an 
answer to this and come up empty-handed.  Here's my situation:

My hosting provider runs PHP 4.1.2 under Apache on Linux.  Here are the 
GD configuration options from php.ini:

'--with-gd=/usr/local'
'--enable-gd-native-ttf'
'--with-jpeg-dir=/usr/local/lib'
'--with-png-dir=/usr/lib'
'--with-zlib'

GD version is 1.62, and although they attempted to include TTF support 
it does not work.

I've compiled my own GD 2.0.1 module with Freetype as a shared gd.so 
extension in hopes that I can override the built-in version provided by 
my hosting company, but attempting to load it using dl("gd.so") results 
in numerous errors:

*Warning*: Function registration failed - duplicate name - imagearc
*Warning*: Function registration failed - duplicate name - imagechar
*Warning*: Function registration failed - duplicate name - imagecharup
etc.

I also tried to use an Apache configuration directive in an .htaccess file:

php_value extension_dir ./
php_value extension gd.so

Although this causes no errors, the 'extention=gd.so' directive seems to 
be ignored.

Is there anyway to override or unload my ISP's GD extension so that I 
can use my own, or am I stuck with GD 1.62 without Freetype support?

Thanks for any tips/insight!

Cheers,
-Andy

--- End Message ---
--- Begin Message ---
You are stuck. You can not run gd2 on top of a PHP instance that has gd1
compiled in statically.

> Is there anyway to override or unload my ISP's GD extension so that I
> can use my own, or am I stuck with GD 1.62 without Freetype support?

--- End Message ---
--- Begin Message ---
I was afraid of that.  Out of curiosity, do you know if it would it be 
possible to override GD1 if it was compiled as a dynamic module?

Thanks,
-Andy


Rasmus Lerdorf wrote:

>You are stuck. You can not run gd2 on top of a PHP instance that has gd1
>compiled in statically.
>


--- End Message ---
--- Begin Message ---
Nope, how it is loaded is not relevant.

On Sun, 26 May 2002, Andy Chase wrote:

> I was afraid of that.  Out of curiosity, do you know if it would it be
> possible to override GD1 if it was compiled as a dynamic module?
>
> Thanks,
> -Andy
>
>
> Rasmus Lerdorf wrote:
>
> >You are stuck. You can not run gd2 on top of a PHP instance that has gd1
> >compiled in statically.
> >
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Maybe ImageMagick is installed on the server? You can use that instead,
although it only serves a commandline interface. But it's possible.

- Carsten

> -----Oprindelig meddelelse-----
> Fra: Andy Chase [mailto:[EMAIL PROTECTED]]
> Sendt: 26. maj 2002 23:38
> Til: [EMAIL PROTECTED]
> Emne: Re: [PHP-INST] Overriding already-loaded GD extension via
> .htaccess or dl()?
>
>
> I was afraid of that.  Out of curiosity, do you know if it would it be
> possible to override GD1 if it was compiled as a dynamic module?
>
> Thanks,
> -Andy
>
>
> Rasmus Lerdorf wrote:
>
> >You are stuck. You can not run gd2 on top of a PHP instance that has gd1
> >compiled in statically.
> >
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Hello...

I get the following warning when I try to use ImageFTText()

Warning: imagefttext(): No FreeType 2 support in this PHP build ....

However when I use 'print(phpinfo(INFO_ALL));'  I see the following
information...

<***>PHP Version<***>
PHP Version 4.1.2

<***>Configure Command Line<***>
 './configure' 'i386-redhat-linux' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--prefix=/usr'
'--with-config-file-path=/etc' '--enable-force-cgi-redirect'
'--disable-debug' '--enable-dbg=shared' '--with-dbg-profiler'
'--enable-pic' '--disable-rpath' '--enable-inline-optimization'
'--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr'
'--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr'
'--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf'
'--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses'
'--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-mm'
'--with-openssl' '--with-png' '--with-pspell' '--with-regex=system'
'--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU'
'--enable-bcmath' '--enable-debugger' '--enable-exif' '--enable-ftp'
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path'
'--enable-track-vars' '--enable-trans-sid' '--enable-yp'
'--enable-wddx' '--without-oci8' '--with-imap=shared'
'--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared'
'--with-mysql=shared,/usr' '--with-pgsql=shared'
'--with-snmp=shared,/usr' '--with-snmp=shared'
'--enable-ucd-snmp-hack' '--with-unixODBC=shared'
'--enable-memory-limit' '--enable-bcmath' '--enable-shmop'
'--enable-versioning' '--enable-calendar' '--enable-dbx'
'--enable-dio' '--enable-mcal' '--enable-mbstring'
'--enable-mbstr-enc-trans' '--with-apxs=/usr/sbin/apxs'

<***>GD Module<***>
GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with freetype
JPG Support enabled
PNG Support enabled
WBMP Support enabled


So .... it seems to me that GD is enabled, and FreeType is enabled,
and yet I get warnings/errors when trying to use ImageFTText();

Is this a configuration problem on my part?

Any help/suggestions would be appreciated.


Paul

--- End Message ---
--- Begin Message ---
Imagefttext() requires Freetype2.  You have Freetype1.  Use ImageTTFText()
instead.

-Rasmus

On Sun, 26 May 2002, Paul Hiles wrote:

> Hello...
>
> I get the following warning when I try to use ImageFTText()
>
> Warning: imagefttext(): No FreeType 2 support in this PHP build ....
>
> However when I use 'print(phpinfo(INFO_ALL));'  I see the following
> information...
>
> <***>PHP Version<***>
> PHP Version 4.1.2
>
> <***>Configure Command Line<***>
>  './configure' 'i386-redhat-linux' '--prefix=/usr'
> '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
> '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
> '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var'
> '--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
> '--infodir=/usr/share/info' '--prefix=/usr'
> '--with-config-file-path=/etc' '--enable-force-cgi-redirect'
> '--disable-debug' '--enable-dbg=shared' '--with-dbg-profiler'
> '--enable-pic' '--disable-rpath' '--enable-inline-optimization'
> '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr'
> '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr'
> '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf'
> '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses'
> '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-mm'
> '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system'
> '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU'
> '--enable-bcmath' '--enable-debugger' '--enable-exif' '--enable-ftp'
> '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets'
> '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path'
> '--enable-track-vars' '--enable-trans-sid' '--enable-yp'
> '--enable-wddx' '--without-oci8' '--with-imap=shared'
> '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared'
> '--with-mysql=shared,/usr' '--with-pgsql=shared'
> '--with-snmp=shared,/usr' '--with-snmp=shared'
> '--enable-ucd-snmp-hack' '--with-unixODBC=shared'
> '--enable-memory-limit' '--enable-bcmath' '--enable-shmop'
> '--enable-versioning' '--enable-calendar' '--enable-dbx'
> '--enable-dio' '--enable-mcal' '--enable-mbstring'
> '--enable-mbstr-enc-trans' '--with-apxs=/usr/sbin/apxs'
>
> <***>GD Module<***>
> GD Support enabled
> GD Version 1.6.2 or higher
> FreeType Support enabled
> FreeType Linkage with freetype
> JPG Support enabled
> PNG Support enabled
> WBMP Support enabled
>
>
> So .... it seems to me that GD is enabled, and FreeType is enabled,
> and yet I get warnings/errors when trying to use ImageFTText();
>
> Is this a configuration problem on my part?
>
> Any help/suggestions would be appreciated.
>
>
> Paul
>
>

--- End Message ---
--- Begin Message ---
Hi there,
I'm trying to compile PHP 4.1.2  as an Apahce module on a standard Suse Pro
8.0 distro.
As you can see I need both Oracle8 and Mysql support and, in my past
experiences m, everything always worked right. Now.. the debug script seems
to be unable to find the Mysql client.. I've checked it twice and I'm sure I
have installed it.. since I used it.
Can you please help me?
Thanks in advance
Alberto Tarantino

Debug.log:

CONFIGURE:   './configure' '--prefix=/usr/share' '--datadir=/usr/share/php'
'--bindir=/usr/bin' '--libdir=/usr/share'
'--with-config-file-path=/etc/httpd' '--with-exec-dir=/usr/lib/php/bin'
'--with-mysql=/usr' '--with-zlib=yes' '--with-xml' '--with-mcrypt'
'--with-mm' '--enable-trans-sid' '--enable-track-vars'
'--enable-memory-limit' '--enable-sigchild' '--with-apxs=/usr/sbin/apxs'
'--with-oci8'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:    -DEAPI_MM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHARD_SER
VER_LIMIT=2048 -DDYNAMIC_MODULE_LIMIT=128 -DLINUX=22 -DMOD_SSL=208107 -DEAPI
CXX:
CXXFLAGS:
INCLUDES:    -I/usr/include/apache  -I$(top_builddir)/Zend -I/usr/include/my
sql -I/opt/oracle/product/817/rdbms/public -I/opt/oracle/product/817/rdbms/d
emo
LDFLAGS:     -Wl,-rpath,/opt/oracle/product/817/lib -L/opt/oracle/product/81
7/lib
LIBS:       -lmm -lm -ldl -lmysqlclient -lz -lmcrypt -lltdl -lz -lcrypt -lre
solv -lm -ldl -lnsl  -lresolv -lcrypt -lclntsh
DLIBS:
SAPI:       apache
PHP_RPATHS:  /opt/oracle/product/817/lib
uname -a:   Linux servizi2 2.4.18-64GB-SMP #1 SMP Wed Mar 27 13:58:12 UTC
2002 i686 unknown

gcc -o
conftest -g -O2  -DEAPI_MM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHARD
_SERVER_LIMIT=2048 -DDYNAMIC_MODULE_LIMIT=128 -DLINUX=22 -DMOD_SSL=208107 -D
EAPI  -Wl,-rpath,/opt/oracle/product/817/lib -L/opt/oracle/product/817/lib
conftest.c -lmm -lm -ldl -lmysqlclient -lz -lmcrypt -lltdl -lz -lcrypt -lres
olv -lm -ldl -lnsl  -lresolv -lcrypt -lclntsh 1>&5
/usr/i486-suse-linux/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status

--- End Message ---

Reply via email to