php-install Digest 11 Feb 2003 23:41:23 -0000 Issue 1243
Topics (messages 10010 through 10016):
PHP 4.3.0 - inbuilt GD and MySQL compilation problems on multiple machines
10010 by: Jason Donald
Re: PHP Fatal error: Call to undefined function: mail()
10011 by: Joaquim Homrighausen
Re: Problems with mail()
10012 by: "Juan Ant. Marti'nez"
does pdflib need safemode = Off
10013 by: Robin Mordasiewicz
file:// wrapper not found error using fopen()
10014 by: Steve Gallo
ORACLE pre-requisite librairies
10015 by: Robin Mordasiewicz
PHP 4.3.0 - inbuilt GD and MySQL (extra information)
10016 by: Jason Donald
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 ---
Hi,
I am having quite some difficulty installing 4.3.0 on two of my 3
machines.
I have spent the entire day surfing php.net, phpbuilder, google and
every archive I could find. I would very much appreciate any help
anyone can provide.
Machine 1 bombs out with a mysql lib error when trying to use the
internal mysql client.
Machine 2 bombs out during make with a GD/TTF error.
Machine 3 compiles AOK.
They were all on various 4.2.x version previously.
======================
Machine 1:
======================
./configure
--with-apache= /usr/local/src/apache_1.3.24
--prefix= /usr/local/php
--with-mysql
--with-pgsql= /usr/local/pgsql
--with-gd
--with-freetype-dir= /usr/local/include/freetype2
--with-jpeg-dir
--with-png-dir
--with-zlib
--with-curl=/usr/local/lib
--disable-debug
--enable-sysvsem
--enable-sysvshm
--enable-sockets
--enable-track-vars
--enable-gd-native-tt
--without-xpm-dir
--with-mnogosearch
After configuring...
+--------------------------------------------------------------------
+
| *** ATTENTION ***
|
|
|
| Something is likely to be messed up here, because the configure
|
etc...
And looking at debug.log:
[php-4.3.0]# cat debug.log
CONFIGURE: './configure' '--with-apache=
/usr/local/src/apache_1.3.24' '--prefix= /usr/local/php' '-
-with-mysql ' '--with-pgsql= /usr/local/pgsql' '--with-gd
' '--with-freetype-dir= /usr/local/include/freetype2' '--with-jpeg-
dir' '--with-png-dir' '--with-zlib' '--with-curl=/usr/local/lib' '--
disable-debug' '--enable-sysvsem' '--enable-sysvshm' '--enable-
sockets' '--enable-track-vars' '--enable-gd-native-tt' '--without-xpm-
dir' '--with-mnogosearch'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS:
CXX:
CXXFLAGS:
INCLUDES: -I$(top_builddir)/Zend -I/usr/local/include -
I/usr/local/include/freetype2 -I/usr/local/mnogosearch/include -
I/usr/local/pgsql/include
LDFLAGS: -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-
rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql -Wl,-
rpath,/usr/local/mnogosearch/lib -L/usr/local/mnogosearch/lib -Wl,-
rpath,/usr/local/pgsql/lib -L/usr/local/pgsql/lib
LIBS: -lpq -lfreetype -lpng -lz -ljpeg -lcurl -lz -lcrypt -
lresolv -lm -ldl -lnsl -lcrypt -lcurl -lz -lssl -lcrypto -ldl -lz -
lz -lm -lmysqlclient -ludmsearch
DLIBS:
SAPI: apache
PHP_RPATHS: /usr/local/lib /usr/local/mysql/lib/mysql
/usr/local/mnogosearch/lib /usr/local/pgsql/lib
uname -a: Linux denise 2.4.18 #3 Sat Jun 15 14:38:49 EST 2002 i686
unknown
gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/lib -L/usr/local/lib -
Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql -
Wl,-rpath,/usr/local/mnogosearch/lib -L/usr/local/mnogosearch/lib -
Wl,-rpath,/usr/local/pgsql/lib -L/usr/local/pgsql/lib conftest.c -lpq
-lfreetype -lpng -lz -ljpeg -lcurl -lz -lcrypt -lresolv -lm -ldl -
lnsl -lcrypt -lcurl -lz -lssl -lcrypto -ldl -lz -lz -lm -
lmysqlclient -ludmsearch 1>&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
Any ideas? I have cleaned out my ld.so.conf and ldconfig'd as well.
======================
Machine 2:
======================
Bombs out trying to compile in the inbuilt GD. I was previously
running 4.2.2 and it worked fine. Moving to 4.3.0 with the exact
same configure command and it will configure happily but fails during
compilation.
CFLAGS="-O6 -mpentiumpro" CXX=gcc CXXFLAGS="-O6 -mpentiumpro -felide-
constructors -fno-exceptions -fno-rtti"
./configure
--prefix= /usr/local/php"
--with-apache=/usr/local/src/apache_1.3.26"
--with-mysql "
--with-gd "
--with-freetype-dir= /usr/local/include/freetype2"
--with-jpeg-dir"
--with-png-dir"
--with-zlib"
--disable-debug"
--enable-sockets"
--enable-track-vars"
--enable-gd-native-tt"
No errors during config.
Error producted during make.
gcc -I/usr/local/src/php-4.3.0/ext/gd/libgd -DHAVE_LIBPNG -
DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -Iext/gd/ -I/usr/local/src/php-
4.3.0/ext/gd/ -DPHP_ATOM_INC -I/usr/local/src/php-4.3.0/include -
I/usr/local/src/php-4.3.0/main -I/usr/local/src/php-4.3.0 -
I/usr/local/src/php-4.3.0/Zend -I/usr/local/include -
I/usr/local/include/freetype2 -I/usr/local/src/php-
4.3.0/ext/xml/expat -I/usr/local/src/php-4.3.0/TSRM -O6 -
mpentiumpro -c /usr/local/src/php-4.3.0/ext/gd/libgd/gdft.c -o
ext/gd/libgd/gdft.o && echo > ext/gd/libgd/gdft.lo
In file included from /usr/local/src/php-
4.3.0/ext/gd/libgd/gdft.c:50:
/usr/local/include/freetype2/freetype/ftglyph.h:104: parse error
before `FT_Library'
[...lots of stuff...]
usr/local/src/php-4.3.0/ext/gd/libgd/gdft.c:1001: `bm' undeclared
(first use in this function)
/usr/local/src/php-4.3.0/ext/gd/libgd/gdft.c:1011: dereferencing
pointer to incomplete type
/usr/local/src/php-4.3.0/ext/gd/libgd/gdft.c:1012: dereferencing
pointer to incomplete type
make: *** [ext/gd/libgd/gdft.lo] Error 1
Any ideas on that one?
Thank you very much for any help you can provide!
Faithfully!
Jason.
--- End Message ---
--- Begin Message ---
* On 2003-02-11 @ 08:21, Kaan wrote:
> I can not send any mail using any PHP script. I installed Sendmail after
> i compiled PHP with Apache. I don't think that would be a problem???
> Here is the error i get while trying to send a mail through command line
> "PHP Fatal error: Call to undefined function: mail()"
Re-compile PHP now that you have Sendmail installed, and all should be
well.
-Joaquim
--- End Message ---
--- Begin Message ---
Hi,
First of all, thanks for the suggestions. My problem is 'almost' solved.
I have succeeded sending an e-mail with the mail function. The problem
was in the php.ini file. I had limited the execution of phpinfo() and
system() commands. If I enable both commands, the mail() function works
fine.
The problem is that I would like to have both functions limited. PHP is
installed in a multiuser environment and there's a lot of information
available with phpinfo(). Is it possible to make mail() work with
phpinfo() and system() disabled? If that's not possible, how can I limit
the information phpinfo() gives -ideally it should give no information-.
Thanks,
Juanan
Vladimir Galkov wrote:
I feel the qweston become offtopick soon ;-)))))))
1. Look into permissions of the user you set to run web service
2. Use simple <? print phpinfo(); ?> code to look at real values your php
enviroment varibles have.
3. Check
[mail function]
; For Win32 only.
SMTP = < smtp.somewhere.go >
; For Win32 only.
sendmail_from = < [EMAIL PROTECTED] >
4. Write code to send mail threw socets, then you'll see targeted server
ansver on every your request.
""juan ant. martМnez"" <[EMAIL PROTECTED]> сообщил/сообщила в новостях
следующее: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I'm new to php. I have downloaded and installed PHP 4.3.0 on a Windows
NT 4.0 server. I have tested the configuration and changed the
parameters in php.ini to fit my environment.
The basic code works fine, but one of the things I'd like to do is to
send mails. I have found the sample code and tested the following :
mail("[EMAIL PROTECTED]", "test", "This is a test!","From:
[EMAIL PROTECTED]")
But when I run this code, I get the following error:
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or
custom "From:" header missing in d:\www\mail.php on line 9
In fact, the sendmail_from is configured in the php.ini file (in the
windows directory), and also forced in the line above (I have tried also
without the "From:..." but it does neither work) . The smtp server is
in a remote machine, and in fact, no connection is made from the php
script (I have looked through the logs and there has been no attempt to
connect)
Does anyone know where is the problem? Any suggestions will be welcomed.
Thanks in advance,
Juanan
--- End Message ---
--- Begin Message ---
The documentation statesd that for pdflib safemode must be off. The
documentation looks old and I am wondering if this is still true.
--- End Message ---
--- Begin Message ---
Hello,
I've installed PHP 4.3.0 and have configured it with the following command:
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-config-file-path=/usr/local/apache2/conf --with-mysql=/usr \
--with-ldap=/usr --with-openssl --with-zlib --enable-trans-sid \
--enable-wddx
make
make test
make install
But when I try to open a file using the "file://path/to/file" string, I
get an error message saying that this wrapper was not found. I also tried
using --enable-php-streams in the configure command but to no avail.
make test doesn't show any errors.
This occurs in both the Apache module and CLI version.
Is there something else that I need to do to enable the file: wrapper?
Steve
--
Steve Gallo
Database Administrator
[EMAIL PROTECTED]
Center for Computational Research
University at Buffalo, The State University of New York
9 Norton Hall, Buffalo, NY 14260-1800
716-645-6500 x521
--- End Message ---
--- Begin Message ---
Is there a set of files somewhere that I can download in order to
compile php with oracle support.
--- End Message ---
--- Begin Message ---
Errata for that last email.
* Both machines are redhat based linux 2.4.18, but are completely
different installations (one local, one remotely hosted server).
Here is a larger chunk from the GD problem. I noticed the "no
semicolon at end of struct or union" line after sending the original
message to the list, and thought it might have been important.
gcc -I/usr/local/src/php-4.3.0/ext/gd/libgd -DHAVE_LIBPNG -DHAVE_LIBJPEG
-DHAVE_LIBFREETYPE -Iext/gd/ -I/usr/local/src/php-4.3.0/ext/gd/ -DPHP_ATOM_INC
-I/usr/local/src/php-4.3.0/include -I/usr/local/src/php-4.3.0/main
-I/usr/local/src/php-4.3.0 -I/usr/local/src/php-4.3.0/Zend -I/usr/local/includ
In file included from /usr/local/src/php-4.3.0/ext/gd/libgd/gdft.c:50:
/usr/local/include/freetype2/freetype/ftglyph.h:104: parse error before `FT_Library'
/usr/local/include/freetype2/freetype/ftglyph.h:104: warning: no semicolon at end of
struct or union
/usr/local/include/freetype2/freetype/ftglyph.h:106: parse error before `format'
/usr/local/include/freetype2/freetype/ftglyph.h:106: warning: data definition has no
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:107: parse error before `advance'
/usr/local/include/freetype2/freetype/ftglyph.h:107: warning: data definition has no
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:109: warning: data definition has no
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:156: parse error before `FT_GlyphRec'
/usr/local/include/freetype2/freetype/ftglyph.h:156: warning: no semicolon at end of
struct or union
/usr/local/include/freetype2/freetype/ftglyph.h:157: warning: data definition has no
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:158: parse error before `top'
/usr/local/include/freetype2/freetype/ftglyph.h:158: warning: data definition has no
type or storage class
/usr/local/include/freetype2/freetype/ftglyph.h:159: parse error before `bitmap'
Any ideas please let me know...
Jason.
--- End Message ---