RE: [xml] Compile error on Solaris 2.6

Ok! That works. But I got another error.

1. libxml compiled fine
2. I have compiled PHP4 with the --with-dom parameter, and that worked fine
3. But when I try to compile Apache with PHP4, I've got this error:

./configure --prefix=/usr/local/www/apache_1.3.19 --activate-module=src/modu
les/php4/libphp4.a --enable-module=php4 --add-module=src/modules/extra/mod_c
Configuring for Apache, Version 1.3.19
 + using installation path layout: Apache (config.layout)
 + activated php4 module (modules/php4/libphp4.a)
 + on-the-fly added and activated cookie_auth module
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
 + configured for Solaris 260 platform
 + setting C compiler to gcc
 + setting C pre-processor to gcc -E
 + checking for system header files
 + adding selected modules
    o php4_module uses ConfigStart/End
 + checking sizeof various data types
 + doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed.  The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

cd ..;
gcc  -DSOLARIS2=260 -I/usr/local/www/php-4.0.4pl1 -I/usr/local/www/php-4.0.4
pl1/main -I/usr/local/www/php-4.0.4pl1/main -I/usr/local/www/php-4.0.4pl1/Ze
nd -I/usr/local/www/php-4.0.4pl1/Zend -I/usr/local/www/php-4.0.4pl1/TSRM -I/
usr/local/www/php-4.0.4pl1/TSRM -I/usr/local/www/php-4.0.4pl1 -DUSE_EXPAT -I
./lib/expat-lite -DNO_DL_NEEDED `./apaci`     -o helpers/dummy
helpers/dummy.c   -R/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.
6/2.8.1 -R/usr/local/libxml2-2.3.5//lib -R/usr/local/gd-1.8.3/ -R/usr/local/
mysql/lib/mysql  -L/usr/ucblib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6
/2.8.1 -L/usr/local/libxml2-2.3.5//lib -L/usr/local/gd-1.8.3/ -L/usr/local/m
ysql/lib/mysql -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodph
p4  -lpam  -ldl -lmysqlclient -lpng -lz -lgd -lz -lxml -lresolv -lresolv -lm
 -ldl -lnsl -lsocket  -lsocket -lgcc -L/usr/local/libxml2-2.3.5//lib -lz   -
lsocket -lnsl
ld: fatal: library -lxml: not found
ld: fatal: File processing errors. No output written to helpers/dummy
make: *** [dummy] Error 1
======== Error Output for sanity check ========
============= End of Error Report =============


Any ideas?


-----Original Message-----
From: robert [mailto:robert xml 00008 org]
Sent: 23. mars 2001 16:29
To: Jakob Nielsen
Cc: xml gnome org
Subject: Re: [xml] Compile error on Solaris 2.6

I can't compile libxml2_2.3.5 on my Solaris 2.6. I get this error:
ld: fatal: library -lz: not found

Ah, yes, thats another thing: libxml needs libz (the Zlib compression
library). Even if you tell configure not to, it still refers to it.

What is this causes by? Help!!!

You need to change two things:
- the file config.h may contain the following line:
  #define HAVE_ZLIB_H 1
  if it does, remove the line;
- you need to fix the Makefile and remove every reference to '-lz' (just
  remove those three characters, they appear a couple of times in the

After that, recompile.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]