Date: 08/15/00
- Next message: rabbott <email protected>: "[PHP-DEV] PHP 4.0 Bug #6184: When I call odbc_fetch_row($db, $i), php or the odbc processor crashes."
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #4289 Updated: php caused illegal operation error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: tammy <email protected>
Operating system: linux
PHP version: 4.0.1pl2
PHP Bug Type: Solid related
Bug description: Failure to make PHP4 with SOLID
PHP4 fails on compilation with SOLID support. Here is a summar from the SOLID mailing list with no resolution posted thus far. If information on the meaning of "cannot build libtool library from non-libtool objects" can be acquired, it might shed some light on this...
[prev in list] [next in list] [prev in thread] [next in thread]
List: solid
Subject: Re: Problem to compile http+php4+solid - detailed instructions
From: Russ Gritzo <gritzo <email protected>>
Date: 2000-05-23 14:46:44
[Download message RAW]
Folks:
I don't know about your specific issues, but here are detailed
instructions
that I wrote up for doing a build of solid EE30, php4 gd, ttf, and
apache.
All seems to work dandy.
hope they help.
r.
-----------------------------------------------------------------------
Instructions for building and installing php
4/27/00
R. Gritzo
Los Alamos National Lab
Versions:
php - Version 4.0 Release Candidate 1.0
apache - Version 1.3.12
gd - 1.8.1 (png graphics library)
zlib version 1.1.3,
libpng version 1.0.6
jpeg, jpegsrc.v6b
freetype - 1.3.1 (true type font library)
solid EE version 3.0 libraries (for glibc)
Setup:
php3 running as an apache module (static), with solid and unified ODBC
database connections,
the gd png library and the true-type font routines
Assumes:
the web engine will reside in /var/lib/httpd,
web configuraiton files will reside in /var/lib/httpd/conf,
php3 configuration file will reside in /usr/local/lib.
Steps:
download all the tar files into /usr/src.
gd is found at http://www.boutell.com/gd/,
Note: be sure that the necessary libraries are also loaded and built
(libpng, jpeg, zlib)
freetype (currently version 1.2) is found at http://www.freetype.org
build-up a tarball with the solid libraries and include files, from the
solid SDK. This assumes the use of the solid libraries from the solid
SDK3.0 for linux/glibc.
Untar the sources, and build in the following order
zlib:
untar with tar -xvzf zlib.tar.gz
cd zlib*
./configure
make
make install
ldconfig
cd ..
libpng:
untar with tar -xvzf libpng*
cd libpng*
cd scripts
copy the correct makefile with cp makefile.linux ../Makefile
cd ..
make
make install
ldconfig
cd ..
jpeg:
untar with tar -xvzf jpeg*
cd jpeg*
./configure
make
make install
ldconfig
cd ..
freetype:
tar -xvzf freetype*
cd *
./configure
make
make install
ldconfig
cd ..
gd1.8.1:
tar -xvzf gd*
cd gd*
edit the makefile to set the following:
CFLAGS should include ttf and jpg,
LIBS should include all but Xpm.
add /usr/X11R6/include to the include directories
save
make
make install
ldconfig
cd ..
for Solid, version 2.3:
make a version 2.3 specific directory: mkdir solidv23 (in /usr/src)
move the solid devel and tool package into this directory.
untar at least the solid devel package with tar -xvzf sd*
cd ..
for Solid, version 3.0 :
untar the include and library files, assume that they are in an archive
named soliddev.tar,
and will make the directory /usr/src/solid, with subdir's ./include and
./lib.
Apache:
untar with tar -xvzf apache*
cd apache*
./configure --prefix=/var/lib/httpd
(note --prefix= <dir> is where all of the httpd subdirectories will be
put after being built)
cd ..
PHP:
untar php with tar -xvzf php*
cd ../php*
There is now no setup script, the configuration is done with arguments
to ./configure.
for solid v 2.3:
node:/usr/src/php-4.0RC1# ./configure
--with-apache=/usr/src/apache_1.3.12 \
> --with-gd=/usr/src/gd-1.8.1 --with-solid=/usr/src/solidv23 --with-ttf=/usr/src/freetype-1.3.1 \
> --with-jpeg-dir=/usr/src/jpeg-6b
type make
Note: build failed - had to make the following changes to files:
./build-defs.h:
//#define PHP_ODBC_LIBS "/usr/src/solidv23/lib/bcllux*.a"
#define PHP_ODBC_LIBS "/usr/src/solidv23/lib/scll2x23.so"
./Zend/Makefile:
line 96, change the section /usr/src/solidv23/lib/bcllux*.a to
/usr/src/solidv23/lib/bcllux*.a
Had to modify the file ./ext/odbc/php_odbc.c:
change line 849 from
rc = SQLParamData(result->stmt, (PTR FAR *)&fp);
to:
rc = SQLParamData(result->stmt, (PTR)&fp);
also change line 852 from
SQLPutData(result->stmt,(UCHAR FAR*) &buf, nbytes);
to:
SQLPutData(result->stmt,(PTR) &buf, nbytes);
also had to execute /bin/sh libtool command by hand (see file
libtoolcommand.sh for correct command),
due to solid lib filename parsing problem above.
completed make
make install.
cd ..
for solid version 3.0 glibc:
edit the configure script. change the line (~line 14696):
Linux) ac_solid_os=lux;;
to
Linux) ac_solid_os=l2x;;
(necessary for naming conventions on glibc solid libraries)
configure with the command:
elisha:/usr/src/php-4.0RC1# ./configure
--with-apache=/usr/src/apache_1.3.12 \
> --with-gd=/usr/src/gd-1.8.1 --with-solid=/usr/src/solid --with-ttf=/usr/src/freetype-1.3.1 \
> --with-jpeg-dir=/usr/src/jpeg-6b --without-mysql
edit the file ./ext/odbc/php_odbc.h. comment out the lines:
#include <cli0core.h>
#include <cli0ext1.h>
and insert the lines:
#include <cli0cli.h>
#include <cli0defs.h>
#include <cli0env.h>
(necessary for naming convention changes on include files with ee30)
edit the file ./ext/odbc/php_odbc.c:
change line 849 from
rc = SQLParamData(result->stmt, (PTR FAR *)&fp);
to:
rc = SQLParamData(result->stmt, (PTR)&fp);
also change line 852 from
SQLPutData(result->stmt,(UCHAR FAR*) &buf, nbytes);
to:
SQLPutData(result->stmt,(PTR) &buf, nbytes);
type make
make install.
cd ..
Apache:
cd ../apache*
run
./configure --prefix=/var/lib/httpd
--activate-module=src/modules/php4/libphp4.a
make
make install
Edit your httpd.conf file and add:
AddType application/x-httpd-php .php3 (if still have some .php3
scripts)
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Be sure that you have the necessary commands installed in rc.local or
rc.httpd or whereever to start httpd, with the right configuration file.
if you think you need the ini file to change some defaults, do the
following:
cp php.ini-dist /usr/local/lib/php.ini
You can edit /usr/local/lib/php.ini file to set PHP options. If you
prefer this file in another location,
use --with-config-file=/path in the php
configuration.
Use your normal procedure for starting the Apache server. (You must stop
and restart the server, not just cause the server to reload by use a HUP
or USR1 signal.)
-----------------------------------------------------------------------
-- /**************************************************************************/ Russ Gritzo email: gritzo <email protected> Los Alamos National Lab voice: 505-667-0481 Group CST-11, Nuclear and Radiochemistry fax: 505-665-4955 MS J514 Los Alamos, NM 87545 /usr/games/fortune: BOO! We changed Coke again! BLEAH! BLEAH! /**************************************************************************/[prev in list] [next in list] [prev in thread] [next in thread]
Log in / Log out About MARC We're Hiring! Want to add a list? Tell us about it. The AIMS Group
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: rabbott <email protected>: "[PHP-DEV] PHP 4.0 Bug #6184: When I call odbc_fetch_row($db, $i), php or the odbc processor crashes."
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #4289 Updated: php caused illegal operation error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

