php-install Digest 19 Mar 2002 21:38:42 -0000 Issue 752

Topics (messages 6410 through 6416):

Re: GD/Zlib install problems
        6410 by: Jürgen Schoch

Apache Make
        6411 by: Andrews, Max
        6412 by: Rasmus Lerdorf
        6413 by: Neil Lincoln
        6414 by: Kai Schaetzl

ext/java
        6415 by: brad lafountain

prob install gd 1.8.4 jpeg-6b php 4.1.12
        6416 by: Jonathan Ohlrich

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 ---
A workaround is compilation of php 4.1.2 as dynamic module (DSO) for apache:

First in apache :
make clean
./configure --enable-module=so
make
make install

Then in php:
make clean

./configure  --with-apxs=/usr/local/apache1.3.23/bin/apxs \
--enable-track-vars \
--enable-force-cgi-redirect --enable-discard-path \
--enable-ftp --with-mysql --with-pgsql \
--with-gd=/usr/download/gd-1.8.4 \
--enable-gd-native-ttf \
--with-freetype-dir=/usr/local/include/freetype2 \
--with-zlib-dir=/usr/local/lib \
--with-png-dir=/usr/local/lib

make
make install


Jürgen Schoch


--- End Message ---
--- Begin Message ---
Having problems compiling httpd with php4 module activated. I am using PHP
4.1.2,  Apache 1.3.22 and MySQL 3.23.49a on Linux Red Hat 6.0.

Error reads,
     -o httpd buildmark.o modules.o modules/standard/libstandard.a
modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a
lib/expat-lite/libexpat.a
-Wl,-rpath,/home/mandrews/source/mysql3.23.49a/lib  -rdynamic
-L/home/mandrews/source/mysql3.23.49a/lib -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4  -lpam  -ldl -lmysqlclient -lcrypt -lresolv
-lm -ldl -lnsl  -lresolv -lcrypt   -lm -lcrypt
/home/mandrews/source/mysql3.23.49a/lib/libmysqlclient.a(my_compress.o): In
function `my_uncompress':
my_compress.o(.text+0xa2): undefined reference to `uncompress'
/home/mandrews/source/mysql3.23.49a/lib/libmysqlclient.a(my_compress.o): In
function `my_compress_alloc':
my_compress.o(.text+0x13a): undefined reference to `compress'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/home/mandrews/source/apache_1.3.22/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/home/mandrews/source/apache_1.3.22'
make: *** [build] Error 2 
--- End Message ---
--- Begin Message ---
Add --with-zlib to the PHP configure line

On Tue, 19 Mar 2002, Andrews, Max wrote:

> Having problems compiling httpd with php4 module activated. I am using PHP
> 4.1.2,  Apache 1.3.22 and MySQL 3.23.49a on Linux Red Hat 6.0.
>
> Error reads,
>      -o httpd buildmark.o modules.o modules/standard/libstandard.a
> modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a
> lib/expat-lite/libexpat.a
> -Wl,-rpath,/home/mandrews/source/mysql3.23.49a/lib  -rdynamic
> -L/home/mandrews/source/mysql3.23.49a/lib -Lmodules/php4 -L../modules/php4
> -L../../modules/php4 -lmodphp4  -lpam  -ldl -lmysqlclient -lcrypt -lresolv
> -lm -ldl -lnsl  -lresolv -lcrypt   -lm -lcrypt
> /home/mandrews/source/mysql3.23.49a/lib/libmysqlclient.a(my_compress.o): In
> function `my_uncompress':
> my_compress.o(.text+0xa2): undefined reference to `uncompress'
> /home/mandrews/source/mysql3.23.49a/lib/libmysqlclient.a(my_compress.o): In
> function `my_compress_alloc':
> my_compress.o(.text+0x13a): undefined reference to `compress'
> collect2: ld returned 1 exit status
> make[2]: *** [target_static] Error 1
> make[2]: Leaving directory `/home/mandrews/source/apache_1.3.22/src'
> make[1]: *** [build-std] Error 2
> make[1]: Leaving directory `/home/mandrews/source/apache_1.3.22'
> make: *** [build] Error 2
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Yes we need several tools to help see what is going on with the system.

-----Original Message-----
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 9:43 AM
To: Andrews, Max
Cc: '[EMAIL PROTECTED]'
Subject: Re: [PHP-INST] Apache Make

Add --with-zlib to the PHP configure line

On Tue, 19 Mar 2002, Andrews, Max wrote:

> Having problems compiling httpd with php4 module activated. I am using PHP
> 4.1.2,  Apache 1.3.22 and MySQL 3.23.49a on Linux Red Hat 6.0.
>
> Error reads,
>      -o httpd buildmark.o modules.o modules/standard/libstandard.a
> modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a
> lib/expat-lite/libexpat.a
> -Wl,-rpath,/home/mandrews/source/mysql3.23.49a/lib  -rdynamic
> -L/home/mandrews/source/mysql3.23.49a/lib -Lmodules/php4 -L../modules/php4
> -L../../modules/php4 -lmodphp4  -lpam  -ldl -lmysqlclient -lcrypt -lresolv
> -lm -ldl -lnsl  -lresolv -lcrypt   -lm -lcrypt
> /home/mandrews/source/mysql3.23.49a/lib/libmysqlclient.a(my_compress.o):
In
> function `my_uncompress':
> my_compress.o(.text+0xa2): undefined reference to `uncompress'
> /home/mandrews/source/mysql3.23.49a/lib/libmysqlclient.a(my_compress.o):
In
> function `my_compress_alloc':
> my_compress.o(.text+0x13a): undefined reference to `compress'
> collect2: ld returned 1 exit status
> make[2]: *** [target_static] Error 1
> make[2]: Leaving directory `/home/mandrews/source/apache_1.3.22/src'
> make[1]: *** [build-std] Error 2
> make[1]: Leaving directory `/home/mandrews/source/apache_1.3.22'
> make: *** [build] Error 2
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.325 / Virus Database: 182 - Release Date: 2/19/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.325 / Virus Database: 182 - Release Date: 2/19/2002


--- End Message ---
--- Begin Message ---
Your message of Tue, 19 Mar 2002 10:26:10 -0500:

> my_compress.o(.text+0x13a): undefined reference to `compress'
>

I think you have to configure "--with-zlib", has been mentioned 
several times on this list in the recent past.


Kai

--

Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com
IE-Center: http://ie5.de & http://msie.winware.org



--- End Message ---
--- Begin Message ---
Hello,

I've been trying to compile the java extension on linux. Everythign compiles
fine but instead of producing a shared .so file it creates a static .a file
what am i doing wrong here. I've searched alot and i found somepeople were
having the same problem but there was no response to them. Hope you can help.

// Brad

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/
--- End Message ---
--- Begin Message ---
Freebsd 4.3
apache 1.3.23
gd-1.8.4
jpeg-6b
libpng-1.2.1
zlib-1.1.3

Compile options:

./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql --enable-ftp
 --with-mm=/usr/local/lib --with-gd=/home/uploads/gd-1.8.4 --with-jpeg-dir=/
usr/local --with-png-dir=/usr/local --with-zlib --with-config-file-path=/usr
/local/etc

Error Message
<snip>
/include -I/usr/home/uploads/upphp/php-4.1.2/ext/xml/expat -DUSE_EXPAT -I/us
r/home/uploads/upphp/php-4.1.2/TSRM -g -O2 -prefer-pic -o libphp4.la -rpath
/usr/home/uploads/upphp/php-4.1.2/libs -avoid-version -L/usr/local/lib -L/ho
me/uploads/gd-1.8.4/ -R /usr/local/lib -R /home/uploads/gd-1.8.4/ stub.lo
Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la
ext/zlib/libzlib.la ext/ftp/libftp.la ext/gd/libgd.la ext/mysql/libmysql.la
ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la
ext/standard/libstandard.la ext/xml/libxml.la
TSRM/libtsrm.la -lpam -lmm -lgd -lpng -lz -ljpeg -lz -lcrypt -lm -lcrypt
/usr/local/lib/libjpeg.a(jcapimin.o): In function `jpeg_CreateCompress':
jcapimin.o(.text+0x0): multiple definition of `jpeg_CreateCompress'
Zend/.libs/libZend.al(jcapimin.o)(.text+0x0): first defined here
/usr/local/lib/libjpeg.a(jcapimin.o): In function `jpeg_destroy_compress':
jcapimin.o(.text+0x114): multiple definition of `jpeg_destroy_compress'
Zend/.libs/libZend.al(jcapimin.o)(.text+0x114): first defined here

...... skipping .....

/usr/local/lib/libjpeg.a(jmemnobs.o): In function `jpeg_mem_term':
jmemnobs.o(.text+0x80): multiple definition of `jpeg_mem_term'
Zend/.libs/libZend.al(jmemnobs.o)(.text+0x80): first defined here
*** Error code 1

Stop in /usr/home/uploads/upphp/php-4.1.2.
*** Error code 1

Stop in /usr/home/uploads/upphp/php-4.1.2.


Any help would be appreciated


--- End Message ---

Reply via email to