Compile error Apache 1.3.27 + PHP 4.3.0

From: Date: Fri, 03 Jan 2003 13:57:07 +0000
Subject: Compile error Apache 1.3.27 + PHP 4.3.0
Groups: php.install 
Request: Send a blank email to php-install+get-9516@lists.php.net to get a copy of this message
When i try to compile Apache 1.3.27 with PHP 4.3.0 as module i get an error. Tried to compile with gcc 2.95.3 and gcc. 3.2.1 always the same problem.... PHP 4.2.3 works fine. First configure SSL: ./configure --with-apache=../apache_1.3.27 --with-ssl=../openssl-0.9.6h then in Apache path i type: ./configure --prefix=/usr/local/apache/1.3.27 --htdocsdir=/var/www In PHP path i type: CFLAGS='-O2 -I/usr/local/openssl/current/include' \ ./configure \ --with-apache=/usr/src/tars/apache_1.3.27 \ --with-mysql=/usr/local/mysql/current \ --with-zlib \ --with-ftp \ --with-pdflib=/usr/local \ --with-freetype-dir=/usr \ --enable-gd-native-ttf \ --enable-gd-imgstrttf \ --with-jpeg-dir=/usr/local/lib \ --with-png-dir=/usr/local/lib \ --with-tiff-dir=/usr/lib \ --enable-versioning \ --enable-track-vars=yes \ --enable-url-includes \ --enable-sysvshm=yes \ --enable-sysvsem=yes \ --enable-bcmath \ --enable-inline-optimization \ --with-config-file-path=/usr/local/apache/1.3.27/conf at this point everything seems to run.... after compiling/installing PHP i type the following in the apache path: SSL_BASE=/usr/local/openssl/current \ ./configure --prefix=/usr/local/apache/1.3.27 \ --datadir=/var/www/htdocs \ --enable-module=ssl \ --activate-module=src/modules/php4/libphp4.a \ --enable-module=php4 Output is: *************************************************************************** Configuring for Apache, Version 1.3.27 + using installation path layout: Apache (config.layout) + activated php4 module (modules/php4/libphp4.a) Creating Makefile Creating Configuration.apaci in src Creating Makefile in src + configured for Linux platform + setting C compiler to gcc + setting C pre-processor to gcc -E + checking for system header files + adding selected modules
    o ssl_module uses ConfigStart/End
      + SSL interface: mod_ssl/2.8.12
      + SSL interface build type: OBJ
      + SSL interface compatibility: enabled
      + SSL interface experimental code: disabled
      + SSL interface conservative code: disabled
      + SSL interface vendor extensions: disabled
      + SSL interface plugin: Built-in SDBM
      + SSL library path: /usr/local/openssl/current
      + SSL library version: OpenSSL 0.9.6h  5 Dec 2002
      + SSL library type: installed package (stand-alone)
    o php4_module uses ConfigStart/End
+ enabling Extended API (EAPI) + using builtin Expat + 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. ======== Error Output for sanity check ======== cd ..; gcc -DLINUX=22 -DMOD_SSL=208112 -DEAPI -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ./apaci -L/usr/local/openssl/current/lib -o helpers/dummy helpers/dummy.c -Wl,-rpath,/usr/local/mysql/current/lib/mysql -Wl,-rpath,/usr/local/lib/lib -Wl,-rpath,/usr/lib/lib -Wl,-rpath,/usr/local/lib -rdynamic -L/usr/local/mysql/current/lib/mysql -L/usr/local/lib/lib -L/usr/lib/lib -L/usr/local/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -export-symbols /usr/src/tars/php-4.3.0/sapi/apache/php.sym -rdynamic -L/usr/local/mysql/current/lib/mysql -L/usr/local/lib/lib -L/usr/lib/lib -L/usr/local/lib -lpdf -lz -ltiff -lpng -ljpeg -lmysqlclient -lz -lcrypt -lresolv -lm -ldl -lnsl -lcrypt -lm -lcrypt -lssl -lcrypto /usr/bin/ld:/usr/src/tars/php-4.3.0/sapi/apache/php.sym: file format not recognized; treating as linker script /usr/bin/ld:/usr/src/tars/php-4.3.0/sapi/apache/php.sym:2: parse error collect2: ld returned 1 exit status make: *** [dummy] Error 1 ============= End of Error Report ============= *************************************************************************** Hope somebody can help me....

« previous php.install (#9516) next »