I'm trying to compile 5.1.1 on AIX 4.3.3 with the IBM VAC 4.4.0.3. I ran
into some issues. This is what I've done so far.

./configure \
--with-mysql=/usr/local/mysql \
--with-informix \
--with-apxs2=/apacheDev/bin/apxs

When I ran make I got this:
"Makefile", line 210: make: 1254-055 Dependency line needs colon or
double colon
 operator.
make: 1254-058 Fatal errors encountered -- cannot continue.

The line in question was:
OVERALL_TARGET += /usr/local/source/php-5.1.1/ext/informix/ifx.c

Right or wrong ( ? ) I editted it to:
OVERALL_TARGET=/usr/local/source/php-5.1.1/ext/informix/ifx.c

Then it seem ok and began to compile until this:
       /bin/sh /usr/local/source/php-5.1.1/libtool --silent
--preserve-dup-deps
 --mode=compile /usr/bin/cc_r  -Iext/spl/
-I/usr/local/source/php-5.1.1/ext/spl/
 -DPHP_ATOM_INC -I/usr/local/source/php-5.1.1/include
-I/usr/local/source/php-5.
1.1/main -I/usr/local/source/php-5.1.1 -I/usr/local/include/libxml2
-I/usr/local
/source/php-5.1.1/ext/date/lib -I/usr/local/mysql/include
-I/usr/local/source/ph
p-5.1.1/TSRM -I/usr/local/source/php-5.1.1/Zend  -D__H_LOCALEDEF  -g
-c /usr/l
ocal/source/php-5.1.1/ext/spl/spl_directory.c -o
ext/spl/spl_directory.lo 
"/usr/local/source/php-5.1.1/TSRM/tsrm_config_common.h", line 23.1:
1506-224 (I)
 Incorrect #pragma ignored.
"/usr/local/source/php-5.1.1/ext/spl/spl_directory.c", line 1580.9:
1506-046 (S)
 Syntax error.
"/usr/local/source/php-5.1.1/ext/spl/spl_directory.c", line 1580.12:
1506-045 (S
) Undeclared identifier mappings.
"/usr/local/source/php-5.1.1/ext/spl/spl_directory.c", line 1581.9:
1506-196 (W)
 Initialization between types "void(*)(int,struct _zval_struct*,struct
_zval_str
uct**,struct _zval_struct*,int)" and "unsigned char*" is not allowed.
"/usr/local/source/php-5.1.1/ext/spl/spl_directory.c", line 1581.9:
1506-026 (S) Number of initializers cannot be greater than the number of
aggregate members.
"/usr/local/source/php-5.1.1/ext/spl/spl_directory.c", line 1581.74:
1506-026 (S) Number of initializers cannot be greater than the number of
aggregate members.

"/usr/local/source/php-5.1.1/ext/spl/spl_directory.c", line 1581.9:
1506-026 (S) Number of initializers cannot be greater than the number of
aggregate members.
"/usr/local/source/php-5.1.1/ext/spl/spl_directory.c", line 1581.80:
1506-026 (S) Number of initializers cannot be greater than the number of
aggregate members.

"/usr/local/source/php-5.1.1/ext/spl/spl_directory.c", line 1582.9:
1506-196 (W) Initialization between types "struct _zend_arg_info*" and
"unsigned char*" is not allowed.
"/usr/local/source/php-5.1.1/ext/spl/spl_directory.c", line 1582.9:
1506-026 (S) Number of initializers cannot be greater than the number of
aggregate members.
"/usr/local/source/php-5.1.1/ext/spl/spl_directory.c", line 1582.74:
1506-026 (S) Number of initializers cannot be greater than the number of
aggregate members.

"/usr/local/source/php-5.1.1/ext/spl/spl_directory.c", line 1582.9:
1506-026 (S) Number of initializers cannot be greater than the number of
aggregate members.
"/usr/local/source/php-5.1.1/ext/spl/spl_directory.c", line 1582.80:
1506-026 (S) Number of initializers cannot be greater than the number of
aggregate members.

"/usr/local/source/php-5.1.1/ext/spl/spl_directory.c", line 1583.16:
1506-026 (S) Number of initializers cannot be greater than the number of
aggregate members.

"/usr/local/source/php-5.1.1/ext/spl/spl_directory.c", line 1583.22:
1506-026 (S) Number of initializers cannot be greater than the number of
aggregate members.

make: 1254-004 The error code from the last command is 1.


Stop.

What I found that didn't look right in spl_directory.c:
1580:  // mappings
Changed to:
1580: /* mappings */

It compiled ok. On make install I got this:
Installing PHP SAPI module:       apache2handler
/apacheDev/build/instdso.sh SH_LIBTOOL='/apacheDev/build/libtool'
libphp5.la /ap
acheDev/modules
rm -f /apacheDev/modules/libphp5.so
/apacheDev/build/libtool --mode=install cp libphp5.la
/apacheDev/modules/
cp .libs/libphp5.a /apacheDev/modules/libphp5.a
cp .libs/libphp5.lai /apacheDev/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish
/usr/local/source/p
hp-5.1.1/libs'
chmod 755 /apacheDev/modules/libphp5.so
chmod: /apacheDev/modules/libphp5.so: A file or directory in the path
name does 
not exist.
apxs:Error: Command failed with rc=65536
.
make: 1254-004 The error code from the last command is 1.


Stop.

However after manually copying the libphp5.so to the apache modules and
ediiting the httpd.conf it seems to work good. 

Right now my main concern is I can't find any CLI that was built. In the
make log I can see the compile of the object files for it but nothing
where it's linking for the actual php.cgi, or the cgi.exe executable.
Now any time I run make it gives me this:
        echo '\
\

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

In the Makefile the BUILD_CLI line is this:
BUILD_CLI = echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg `echo
TESTEST $(PHP_GLOBAL_OBJS) $(PHP_CLI_OBJS) | sed
's/\([A-Za-z0-9_]*\)\.lo/.libs\/
\1.o/g'` | $(AWK) '{ if ((($$2 == "T") || ($$2 == "D") || ($$2 == "B"))
&& (subs
tr($$3,1,1) != ".")) { print $$3 } }' | sort -u >> php.sym && $(LIBTOOL)
--mode=
link $(CC) -export-dynamic $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)
$(EXTRA_LDFLAGS_PROGR
AM) $(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym $(PHP_RPATHS)
$(PHP_GLOBAL_OBJS) $(PHP_
CLI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_CLI_PATH)

Thanks in advance for any ideas,

Todd E. O'Dell
SBC Operations
Room 1118
500 E. 8th
Kansas City, MO 64106
Office: (816)275-3626
Alpha Page: [EMAIL PROTECTED]
[EMAIL PROTECTED]
Rigidity and inflexibility are forever the enemy of ingenuity and
creativity. -- Teodor Zlatanov

Reply via email to