php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6183 Failure to make PHP4 with SOLID
Submitted: 2000-08-15 17:29 UTC Modified: 2000-09-21 10:37 UTC
From: tammy at synchronis dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.1pl2 OS: linux
Private report: No CVE-ID: None
 [2000-08-15 17:29 UTC] tammy at synchronis dot com
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@lanl.gov>
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@lanl.gov
  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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-15 17:42 UTC] tammy at synchronis dot com
Sorry but I just found a more pertinent/coherent post on this problem. I'm not sorry I found it, just sorry I didn't post it in the first place! Any help is appreciated;) 
Once again the post is from the solid list and no answer has been posted to date. thanks.

[prev in list] [next in list] [prev in thread] [next in thread] 

List:     solid
Subject:  Re: Problem to compile http+php4+solid
From:     Fulvio <af@edinet.it>
Date:     2000-05-23 10:33:41
[Download message RAW]



CHAPARD Yannick wrote:
> 
> hi
> 
> go to your php4 source directory
> and type grep -r "lux;" *
> then replace in the file you see "lux" by "l2x"
> it should work
> 
> Bye

Thanks for response, but I have the 2nd problem (zend compile):

Making install in Zend
make[1]: Entering directory
`/home/af/development/apache_php4/php-4.0.0/Zend'
/bin/sh ../libtool --silent --mode=link gcc  -O2 -s -g -Wall  -o
libZend.la  -lg
dbm 
/home/af/development/apache_php4/solidSDK35/Linux_glibc2/lib/scl2xl2x.a
-lp
am -lc-client  -ldl -lgd -lresolv -lm -ldl -lcrypt -lnsl  -lresolv
zend-parser.l
o zend_alloc.lo zend_compile.lo zend_constants.lo zend_dynamic_array.lo
zend_exe
cute.lo zend_execute_API.lo zend_highlight.lo zend_llist.lo
zend_opcode.lo zend_
operators.lo zend_ptr_stack.lo zend_stack.lo zend_variables.lo zend.lo
zend_API.
lo zend_extensions.lo zend_hash.lo zend_list.lo zend_indent.lo
zend_builtin_func
tions.lo zend_sprintf.lo libZend_c.la

libtool: link: cannot build libtool library `libZend.la' from
non-libtool object
s:
/home/af/development/apache_php4/solidSDK35/Linux_glibc2/lib/scl2xl2x.a


What does it mean "cannot build libtool library `libZend.la' from
non-libtool" ?

Thanks.
Fulvio Alessio
Edistar Srl

[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

 [2000-08-16 09:28 UTC] kalowsky@php.net
this isn't necessarily a solid problem.  the process you describe was corrected in a series of patch submitted AFTER the PL2 release to correct the solid build problems.

as for the Zend issues, that has little to do with Solid.  although I would suggest again trying to get the latest CVS builds and checking to see if that works.

besides it will help us debug/test for the 4.0.2 release! :)
 [2000-08-22 17:46 UTC] kalowsky@php.net
please try making the latest build from CVS (or wait for RC2).  seeing as i have not heard from you, i will believe this issue has been corrected, and close the bug in 8 days...
 [2000-08-23 08:58 UTC] sniper@php.net
Changed status to feedback.

--Jani
 [2000-09-21 10:37 UTC] sniper@php.net
No feedback.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 29 07:00:01 2026 UTC