Hi all,

I've some strange problems.
I compiled apache & PHP from fresh .tar.gz, as static. (and fresh GD,
libpng, jpeg-6b, zlib compilations)
PHP adn GD aren't giving any troubles at all, but the compilation of apache
gives some errors
when trying to compile the PHP4 module... here are they:

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
gcc  -DLINUX=2 -I/root/source/php-4.0.4 -I/root/source/php-4.0.4/main -I/roo
t/source/php-4.0.4/main -I/root/source/php-4.0.4/Zend -I/root/source/php-4.0
.4/Zend -I/root/source/php-4.0.4/TSRM -I/root/source/php-4.0.4/TSRM -I/root/
source/php-4.0.4 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`
\
      -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  -rdynamic -Lmodules/php4 -L../modules/php4 -L../.
./modules/php4 -lmodphp4   -ldl -lz -lpng -lgd -lresolv -lm -ldl -lcrypt -ln
sl  -lresolv   -lm -lcrypt
/usr/local/lib/libgd.a(gd_png.o): In function `gdPngErrorHandler':
gd_png.o(.text+0x37): undefined reference to `png_get_error_ptr'
/usr/local/lib/libgd.a(gd_png.o): In function `gdPngReadData':
gd_png.o(.text+0x95): undefined reference to `png_get_io_ptr'
/usr/local/lib/libgd.a(gd_png.o): In function `gdPngWriteData':
gd_png.o(.text+0xc5): undefined reference to `png_get_io_ptr'
/usr/local/lib/libgd.a(gd_png.o): In function `gdImageCreateFromPngCtx':
gd_png.o(.text+0x155): undefined reference to `png_check_sig'
...
/usr/local/lib/libgd.a(gd_png.o): In function `gdImagePngCtx':
gd_png.o(.text+0x975): undefined reference to `png_create_write_struct'
gd_png.o(.text+0x9ab): undefined reference to `png_create_info_struct'
...
gd_png.o(.text+0xefd): undefined reference to `png_write_end'
gd_png.o(.text+0xf16): undefined reference to `png_destroy_write_struct'
collect2: ld returned 1 exit status
make[3]: *** [target_static] Error 1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
My commands to compile:
~/source/php-4.0.4#
./configure --with-apache=/root/source/apache_1.3.14 --with-mysql=/usr/local
/mysql --with-gd=/root/source/gd-1.8.3 --with-postgres=/usr/src/postgresql-7
.0.3 --with-ftp --without-ttf --with-jpeg-dir=/root/source/jpeg-6b
~/source/php-4.0.4# cd ../apache_1.3.14 ; make ; make install
~/source/apache_1.3.14#
./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a ;
make ; make install

I have/try:
PHP                     4.0.4
Apache          1.3.114
GD                      1.3.8
libpng          1.0.8
zlib                    1.1.3
Linux                   2.2.17
Original distro Slackware 7.0

Does anyone know a solution? please let me know :)

Kees Hoekzema,
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to