[PHP-DEV] Bug #10562: undefined symbol alloca while building apache From: ian.palfrey <email protected>
Date: 04/30/01

From: ian.palfrey <email protected>
Operating system: AIX 4.3.3
PHP version: 4.0.4pl1
PHP Bug Type: Compile Failure
Bug description: undefined symbol alloca while building apache

I trying to build Apache 1.3.19 with PHP4 and Oracle 8.1.7.
I've now loaded the latest version of PHP4 from snaps.php.net as 4.0.4pl1 didn't detect Oracle 8 correctly and built this OK with:-

cd php4-200104270145
export ORACLE_HOME=/o8/product/8.1.7
./configure --without-mysql
    --with-oracle
    --with-apache=../apache_1.3.19 --enable-track-vars
make
make install

It thens fails when I try to link it into Apache with:-

cd ../apache_1.3.19
./configure --activate-module=src/php4/libphp4.a
make

make returns the following error about alloca

        cc -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT
  -U__STR__ -DAIX_BIND_PROCESSOR
  -qnogenpcomp -qnousepcomp -I/ora4/test/php4-200104270145
  -I/ora4/test/php4-200104270145/main
  -I/ora4/test/php4-200104270145/main
  -I/ora4/test/php4-200104270145/Zend
  -I/ora4/test/php4-200104270145/Zend
  -I/ora4/test/php4-200104270145/TSRM
  -I/ora4/test/php4-200104270145/TSRM
  -I/ora4/test/php4-200104270145 -DUSE_EXPAT
  -I./lib/expat-lite
  -DNO_DL_NEEDED
  -ma `./apaci` -lm -lpthread
  -o httpd buildmark.o modules.o modules/php4/libphp4.a modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.a
  -R/o8/product/8.1.7/lib
  -L/o8/product/8.1.7/lib
  -Lmodules/php4 -L../modules/php4
  -L../../modules/php4 -lmodphp4
  -ldl -lld -lbsd_r -lm -lodm -ldl -lcrypt -lbind -lm
  -ldl -lclntsh
ld: 0706-027 The -R /o8/product/8.1.7/lib flag is ignored.
ld: 0711-317 ERROR: Undefined symbol: .alloca
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
make: 1254-004 The error code from the last command is 8.

Stop.

I've read elsewhere on bug 9079 that alloca() is not part of 4.3.3 so I've even tried setting CFLAGS=-ma as suggested. This also fails. Any ideas?

Thanks IanP

-- 
Edit Bug report at: http://bugs.php.net/?id=10562&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>