php-install Digest 27 Nov 2002 10:03:22 -0000 Issue 1136
Topics (messages 9251 through 9257):
Re: odbc -> make doesn't work
9251 by: Vincent Courcelle
php_odbc error when "make"
9252 by: Vincent Courcelle
Re: make error with gd
9253 by: Dave
Re: PHP and HTML message
9254 by: Dave
Re: HP-UX 11.00 PHP-4.3.0RC1 Apache-2.0.43 'Bad Magic Number'
9255 by: Briggs, Patrick
Re: cybercash /usr/bin/ld: cannot find -lmckcrypto
9256 by: Grant Morgan
XSLT support for RH8
9257 by: Dan Kuykendall
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 ---
(note that i have the same error when i'm triing to install php-4.3-0RC1)
Vincent Courcelle,
http://www.france-jeunes.net et http://www.tubededentifrice.com
--- End Message ---
--- Begin Message ---
print("hello world!");
when i'm triing to "make" php (4.2.3 patched by the patch on boutell to
accept the gdlib 2.0.8), php says me :
In file included from php_odbc.c:37:
php_odbc.h:120:17: sql.h: No such file or directory
php_odbc.h:121:20: sqlext.h: No such file or directory
make[3]: *** [php_odbc.slo] Error 1
make[3]: Leaving directory `/root/php-4.2.3/ext/odbc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/php-4.2.3/ext/odbc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/php-4.2.3/ext'
make: *** [all-recursive] Error 1
what happened ?
i've already a distrib installed via a rpm by my hoster (rackshack) but
without a gd>2 which i will uninstall when i'll have installed this (did i
must uninstall the other first ?)
thanks to help me (i just need gdlib 2 or > to use imagecreatetruecolor())
(i'm a french linux newbie, so sorry for my bad english)
thanks again
my compiling options (red hat 7.2) :
./configure
i386-redhat-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbind
ir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/includ
e --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --shareds
tatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --prefix=
/usr --with-config-file-path=/etc --enable-force-cgi-redirect --disable-debu
g --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --wit
h-db3 --with-curl --with-dom=/usr --with-exec-dir=/usr/bin --with-freetype-d
ir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --wi
th-gdbm --with-gettext=shared --with-ncurses --with-gmp --with-iconv --with-
jpeg-dir=/usr --with-openssl --with-pear --with-png --with-pspell --with-reg
ex=system --with-expat-dir=/usr --with-zlib --with-layout=GNU --enable-bcmat
h --enable-debugger --enable-exif --enable-ftp=shared --enable-magic-quotes
--enable-safe-mode --enable-sockets --enable-sysvsem=shared --enable-sysvshm
=shared --enable-discard-path --enable-track-vars --enable-trans-sid --enabl
e-yp --enable-wddx --without-oci8 --with-kerberos=/usr/kerberos --with-ldap=
shared --with-mysql=shared,/usr --with-pgsql=shared --with-unixODBC=shared -
-enable-memory-limit --enable-bcmath --enable-shmop --enable-versioning --en
able-calendar --enable-dbx --enable-dio --enable-mcal --enable-mbstring --en
able-mbstr-enc-trans --disable-experimental-zts --with-apxs=/usr/sbin/apxs
Vincent Courcelle,
[EMAIL PROTECTED]
http://www.france-jeunes.net et http://www.tubededentifrice.com
--- End Message ---
--- Begin Message ---
i don't know if this will help, but you might try changing your gdlib
Makefile 'LIBS=' line to have it start
with LIBS=libgd.a ......
then do a 'make libgd.a' from shell
now when you compile PHP, reference the gdlib source directory
'--with-gd=../gd-2xx/' (for me)
or something like that. it always works for me when i do that with gd2,
don't need to with 1.
dave
ps - i know rasmus wrote a page somewhere on how to do it right. i'm typing
this from memory.
"Denis" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I don't know how anyone manages it to compile php from source. I tried it
> know with the last 3 versions of php and it always fails.
> configure goes ok, but when I do make it stops with:
>
> In file included from gd.c:83:
> gd_ctx.c: In function `_php_image_output_ctx':
> gd_ctx.c:70: structure has no member named `free'
> gd_ctx.c:98: structure has no member named `free'
> gd.c: In function `_php_image_type':
> gd.c:1014: structure has no member named `free'
> gd.c:1017: structure has no member named `free'
> gd.c: In function `_php_image_create_from':
> gd.c:1209: structure has no member named `free'
> make[3]: *** [gd.lo] Error 1
> make[3]: Leaving directory `/backup/sources/php-4.2.3/ext/gd'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/backup/sources/php-4.2.3/ext/gd'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/backup/sources/php-4.2.3/ext'
> make: *** [all-recursive] Error 1
>
> Maybe someone can help me?
> I use RedHat 8.0 but compiled apache 1.3.27 by hand (cause I use Modules
> which don't work with apache 2).
> To use php I did:
>
> pdflib-4.0.3
> ----------------------
>
> $ tar -xvzf pdflib-4.0.3.tar.gz
> $ cd pdflib-4.0.3
> $ ./configure --prefix=/usr --enable-shared-pdflib --enable-cxx
> $ make
> $ make test
> $ make install
> $ ldconfig
>
> freetyp (http://www.freetype.org/download.html#stable)
>
> -------------------------
> ./configure --prefix=/usr
> make
> make install
>
> libpng-1.2.5.tar.gz (http://www.libpng.org/pub/png/)
> ------------------------
>
> $ mv scripts/makefile.linux ../makefile
>
> edit makefile and change paths
>
> $ make test
> $make install
>
>
> zlib (ftp://ftp.info-zip.org/pub/infozip/zlib/zlib.html)
> -----------------------
>
> $ tar ..
> $ cd
> $ ./configure --prefix=/usr
> $ make
> $ make test
> $ make install
>
> libjpeg (ftp://ftp.uu.net/graphics/jpeg/)
> -----------------------------------
>
> ./configure --prefix=/usr \
> --sysconfdir=/etc \
> --mandir=/usr/share/man \
> --infodir=/usr/share/info \
> --localstatedir=/var \
> --enable-shared \
>
> make
> make install
>
> gd http://www.boutell.com/gd/
> ----------------
>
> ./configure --prefix=/usr
> make
> make install
>
> bzip2-1.0.2.tar.gz (http://sources.redhat.com/bzip2/#bzip2-doco)
> -------------
>
> make
> make install
>
> mm
> -------------------------
> $ tar -xvzf mm-1.2.1.tar.gz
> $ cd mm-1.2.1
>
> $ ./configure --prefix=/usr \
> --sysconfdir=/etc \
> --mandir=/usr/share/man \
> --infodir=/usr/share/info \
> --localstatedir=/var \
> --enable-shared \
>
> $ make
> $ make test
>
>
> php-4.2.3
> ---------------------
>
> $ tar -xvzf php-4.2.3.tar.gz
> $ cd php-4.2.3
>
> ./configure --with-apxs=/usr/sbin/apxs \
> --prefix=/usr \
> --sysconfdir=/etc \
> --datadir=/usr/share \
> --includedir=/usr/include \
> --localstatedir=/var \
> --mandir=/usr/share/man \
> --infodir=/usr/share/info \
> --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-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-kerberos=/usr/kerberos \
> --with-ldap=shared \
> --with-mysql=shared,/usr \
> --with-snmp=shared,/usr \
> --with-pdflib=shared,/usr \
> --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 \
>
>
> make
>
>
--- End Message ---
--- Begin Message ---
to quote php.net mail function page.....
/* recipients */
$to = "Mary <[EMAIL PROTECTED]>" . ", " ; // note the comma
$to .= "Kelly <[EMAIL PROTECTED]>";
/* subject */
$subject = "Birthday Reminders for August";
/* message */
$message = '
<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body>
<p>Here are the birthdays upcoming in August!</p>
<table>
<tr>
<th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>
';
/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
/* additional headers */
$headers .= "From: Birthday Reminder <[EMAIL PROTECTED]>\r\n";
$headers .= "Cc: [EMAIL PROTECTED]\r\n";
$headers .= "Bcc: [EMAIL PROTECTED]\r\n";
/* and now mail it */
mail($to, $subject, $message, $headers);
"William Cheung" <[EMAIL PROTECTED]> wrote in message
000701c28f5f$edf77d80$[EMAIL PROTECTED]">news:000701c28f5f$edf77d80$[EMAIL PROTECTED]...
> I am now using PHP CLI to send a plain text email. However, I was
> requested to make the body of the email in HTML format. Is there an
> add-on that I could use to generate HTML format email from PHP 4.2.3 and
> Windows 2K?
>
> William Cheung, B.Sc. MCSE MCDBA
> Databyte Corp.
>
>
--- End Message ---
--- Begin Message ---
Using the latest CVS snapshot php4-STABLE-200211262230, I was able to
locate what I believe to be the problem. Apparently PHP is trying to
link in -lcrypt, and because libcrypt.a is not a shared library object,
libtool is complaining and then not creating a shared libphp.so object
because of it:
*** Warning: linker path does not have real file for library -lcrypt.
*** I have the capability to make that library automatically link in
when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libcrypt and none of the candidates passed a file format test
*** using a file magic. Last file checked: /usr/lib/libcrypt.a
*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module libphp4. Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.
So what I did was re-run the last libtool command, which is supposed to
link all the objects together, and create a libphp4.so, but I took out
the -lcrypt portion of the command. Once that was done, a libphp4.so was
created as expected, and then a 'make install' worked also as expected
putting libphp4.so into /opt/apache/modules. Starting apache so far
also works without an error about 'Bad magic number'. I took a gamble
that php didn't use or require the crypt library, otherwise I was half
expecting to get an error from dld.sl about missing reference to
'crypt', but so far so good.
> -----Original Message-----
> From: Konrad Ludwikowski [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, November 21, 2002 6:21 AM
> To: Briggs, Patrick
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-INST] HP-UX 11.00 PHP-4.3.0RC1 Apache-2.0.43 'Bad
> Magic Number'
>
> Czesc Patrick,
>
> Wednesday, November 20, 2002, 12:54:50 AM, you wrote:
>
> BP> I'm attempting to build PHP-4.3.0RC1 on HP-UX 11.00 with Apache-2.0.43
> and
>
> try PHSS_26559, if it don't help mayby it will give you better message...
>
> --
> Pozdrawiam,
> Konrad mailto:[EMAIL PROTECTED]
This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential or privileged
information. Any unauthorized review; use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the
sender by reply e-mail and destroy the message.
--- End Message ---
--- Begin Message ---
The meaning of "/usr/bin/ld: cannot find -lmckcrypto" error message is that
the c complirer can not find the needed library. Configure found it but
compiler can't. I solved it by making a symlink from /usr/lib to the library
files under /usr/local/mck-3.3.1-i586-pc-linux-gnulibc2.1/.
Grant
From: "Grant Morgan" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [PHP-INST] cybercash /usr/bin/ld: cannot find -lmckcrypto
Date: Mon, 25 Nov 2002 17:16:06 +0900
I am moving servers to a redhat 7.2 & PHP 4.2.3 from redhat 6.2 and PHP
4.0.6 and trying to install cybercash. I have
'--with-cybercash=/usr/local/mck-3.3.1-i586-pc-linux-gnulibc2.1/'
in the config and get this error
/usr/bin/ld: cannot find -lmckcrypto
I have found 5 other references to this problem on the list and the web but
no replies with a solution. Also searched the bug database. Also tried PHP
version 4.1.2 same problem.
TIA
Grant
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
--- End Message ---
--- Begin Message ---
I cannot seem to get RH8 to to compile XSLT support. Has anyone else
gotten this to work? Anyone with the resulting php-xslt rpm?
Dan
--- End Message ---