Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 543FAD4DF for ; Thu, 28 Jun 2012 17:35:13 +0000 (UTC) Received: (qmail 52960 invoked by uid 500); 28 Jun 2012 17:35:09 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 52936 invoked by uid 500); 28 Jun 2012 17:35:09 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 52928 invoked by uid 99); 28 Jun 2012 17:35:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jun 2012 17:35:09 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [205.194.19.87] (HELO scmze003.ssan.egs-seg.gc.ca) (205.194.19.87) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jun 2012 17:35:04 +0000 X-SBRS: None X-info: CRQ203986 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8EAHuV7E/GZ6cU/2dsb2JhbAArGrcyghgBAQUaDScFNgIBCBEEAQEBIAEGByEQFQkIAQEECAcEAQcBEgIEh1wDCwspryoNiU6KVGMahRBgA5ZEiXGFAIJ7gUM X-IronPort-AV: E=Sophos;i="4.77,493,1336348800"; d="scan'208,217";a="288690080" From: Brian Gaber To: "'users@httpd.apache.org'" Date: Thu, 28 Jun 2012 13:34:33 -0400 Thread-Topic: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++ Thread-Index: Ac1KdflYgnPcJ9z3QbGzRMYaWxExEAK3fraA Message-ID: <37CAD44053C7CA4EA6E242DF34594A63120AE0A0D0@MB-NCR-128.ad.pwgsc-tpsgc.gc.ca> References: <37CAD44053C7CA4EA6E242DF34594A631207697712@MB-NCR-128.ad.pwgsc-tpsgc.gc.ca> <37CAD44053C7CA4EA6E242DF34594A631207697717@MB-NCR-128.ad.pwgsc-tpsgc.gc.ca> <37CAD44053C7CA4EA6E242DF34594A63120769771C@MB-NCR-128.ad.pwgsc-tpsgc.gc.ca> In-Reply-To: Accept-Language: en-US, en-CA Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-CA Content-Type: multipart/alternative; boundary="_000_37CAD44053C7CA4EA6E242DF34594A63120AE0A0D0MBNCR128adpwg_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with gcc/g++ --_000_37CAD44053C7CA4EA6E242DF34594A63120AE0A0D0MBNCR128adpwg_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Attempted to compile PHP 5.4.3 against Apache 2.4.2. Compile Environment: export CC=3D"xlc -q64 -qcpluscmt" export LD=3Dld export LDFLAGS=3D"-L/opt/freeware/lib" export OBJECT_MODE=3D64 Successful configure statement: ./configure --with-apxs2=3D/usr/local/apache2/bin/apxs \ --with-mysql=3D/usr/local/mysql \ --with-mysqli=3D/usr/local/mysql/bin/mysql_config \ --with-ldap \ --with-libxml-dir=3D/opt/freeware \ --with-zlib-dir=3D/opt/freeware \ --without-pdo-sqlite \ --without-sqlite3 Make returned this error: "/home/downloads/php-5.4.3/Zend/zend.h", line 179.10: 1506-236 (W) Macro na= me __restrict__ has been redefined. "/home/downloads/php-5.4.3/Zend/zend.h", line 179.10: 1506-358 (I) "__restr= ict__" is defined on line 186 of /usr/include/standards.h. /bin/sh /home/downloads/php-5.4.3/libtool --silent --preserve-dup-d= eps --mode=3Dcompile xlc -q64 -qcpluscmt -Iext/mysqli/ -I/home/downloads/p= hp-5.4.3/ext/mysqli/ -DPHP_ATOM_INC -I/home/downloads/php-5.4.3/include -I/= home/downloads/php-5.4.3/main -I/home/downloads/php-5.4.3 -I/home/downloads= /php-5.4.3/ext/date/lib -I/home/downloads/php-5.4.3/ext/ereg/regex -I/opt/f= reeware/include/libxml2 -I/opt/freeware/include -I/usr/local/include -I/usr= /local/mysql/include -I/home/downloads/php-5.4.3/TSRM -I/home/downloads/php= -5.4.3/Zend -I/usr/include -g -c /home/downloads/php-5.4.3/ext/mysqli/m= ysqli.c -o ext/mysqli/mysqli.lo "/home/downloads/php-5.4.3/Zend/zend.h", line 179.10: 1506-236 (W) Macro na= me __restrict__ has been redefined. "/home/downloads/php-5.4.3/Zend/zend.h", line 179.10: 1506-358 (I) "__restr= ict__" is defined on line 186 of /usr/include/standards.h. "/usr/local/mysql/include/my_config.h", line 1147.9: 1506-236 (W) Macro nam= e PACKAGE_NAME has been redefined. "/usr/local/mysql/include/my_config.h", line 1147.9: 1506-358 (I) "PACKAGE_= NAME" is defined on line 2104 of /home/downloads/php-5.4.3/include/../main/= php_config.h. "/usr/local/mysql/include/my_config.h", line 1150.9: 1506-236 (W) Macro nam= e PACKAGE_STRING has been redefined. "/usr/local/mysql/include/my_config.h", line 1150.9: 1506-358 (I) "PACKAGE_= STRING" is defined on line 2107 of /home/downloads/php-5.4.3/include/../mai= n/php_config.h. "/usr/local/mysql/include/my_config.h", line 1153.9: 1506-236 (W) Macro nam= e PACKAGE_TARNAME has been redefined. "/usr/local/mysql/include/my_config.h", line 1153.9: 1506-358 (I) "PACKAGE_= TARNAME" is defined on line 2110 of /home/downloads/php-5.4.3/include/../ma= in/php_config.h. "/usr/local/mysql/include/my_config.h", line 1156.9: 1506-236 (W) Macro nam= e PACKAGE_VERSION has been redefined. "/usr/local/mysql/include/my_config.h", line 1156.9: 1506-358 (I) "PACKAGE_= VERSION" is defined on line 2116 of /home/downloads/php-5.4.3/include/../ma= in/php_config.h. "/usr/local/mysql/include/my_global.h", line 626.10: 1506-296 (S) #include = file not found. make: 1254-004 The error code from the last command is 1. Stop. ________________________________ From: Michael Felt [mailto:mamfelt@gmail.com] Sent: Thursday, June 14, 2012 5:38 PM To: users@httpd.apache.org Subject: Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with= gcc/g++ I have gotten it to compile (5.3.14) - and what I needed to add for the IBM= compiler was -qlangval=3Dextc99 so that it would accept c++ like comments = (starting with //) The other problem I have, and it is an "old" one, is that the AIX make (or = maybe the ksh) does not execute the $(BUILD_CLI) argument to build sapi/cli= /php. After editing Makefile, and making sure that "#! ." is not the first = line of php.sym it completes building. Anyway, now I need to try a default to "add everything" and see what extras= need to be built. And also try 5.4.4 On Thu, Jun 14, 2012 at 7:30 PM, Brian Gaber > wrote: I was getting errors with sqlite also so I added these two configure direct= ives: --without-pdo-sqlite --without-sqlite This got me past the sqlite problem. ________________________________ From: Michael Felt [mailto:mamfelt@gmail.com] Sent: Thursday, June 14, 2012 11:52 AM To: users@httpd.apache.org Subject: Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with= gcc/g++ Now I need to see if I actually put everything needed in ./build/aix/README= for httpd. Starting point for me is: use neither /usr(/local) nor /opt/freeware (as I = am trying to be independent of "old" RPM's). A secondary goal is that the i= nstallp packages built are suitable for installation in WPAR (hosting) envi= ronments. Next - I started with a clean installation (AIX 5.3 TL7 first, working main= ly with AIX 6.1 now) and "added" things as needed. For zlib - what is needed is to copy zlib.h, and I think there is another z= lib related include file as well. -- copy to /usr/include, or /opt/include For apr and apr-util I added build/aix/* files - I'll send copies if you li= ke. An independent tester who finds them sucessful may help get them accept= ed to apr and apr-util trunks. For the other packages that are needed - I wrote a buildaix package that yo= u can download via http://sourceforge.net/projects/mkinstallp/files/buildai= x-1.0.0/ If you add /opt/bin to your PATH the command /opt/bin/buildaix will run the= ./configure command with some defaults - basically - prefix is /opt, mandi= r=3D/usr/share/man, and confdir is /etc (and another one is /var, I forget = it's name atm). I choose /opt as, imho, a better generic prefix for AIX - where /usr/local = just seems to create problems. (Idea: a symbolic link of /usr/local -> /opt= might fix a lot of things that break with "./configure" commands that only= look at /usr and /usr/local by default - but this is an aside". Summary: drop /usr/local as prefix, stop using old RPM (or any RPM if possi= ble) - instead download and build fresh using buildaix -- /opt, /etc, /var and /usr/share/= man as default destinations For httpd: customized version of build/aix/* for apr-util in any case (buil= daix could be used for apr, but I have a seperate set of files for that pac= kage as well) So, e.g., coreutils I built and installed using buildaix, same for pcre and= any other required external package. Thus, with php, I started with buildaix. libxml2 was missing so the basic step was: root@x104:[/data/prj/libxml2-2.7.7]buildaix .... installp -d . aixtools.libxml2.rte .... aixtools.libxml2.rte 2.7.7.0 USR APPLY SUCCESS Added /opt to list of directories to search in configure to look for xml2-c= onfig LINE 21865 And configure completes. I also got an Syntax errors with embedded sqlite so I compiled an external = version. However, php continues to try to compile that. Maybe you can help me beyond this point: michael@x054:[/data/prj/php-5.3.13]cat php_configure.ksh #!/usr/bin/ksh set -x ./configure \ --prefix=3D/opt \ --sysconfdir=3D/etc \ --mandir=3D/usr/share/man \ --with-libdir=3D/opt/lib \ --with-sqlite3=3D/opt \ > build/aix/configure.out Now that configure has finished (there is a makefile) I can use buildaix ag= ain (it skips the ./configure step if it sees a Makefile) root@x104:[/data/prj/php-5.3.13]buildaix NAME: php VERSION.RELEASE: 5.3.13.0 /usr/bin/buildaix: using existing Makefile /usr/bin/buildaix: run make distclean to get a standard AIX configure -rw-r--r-- 1 root system 127516 Jun 14 00:44 ./Makefile -rw-r--r-- 1 root system 17721 Jun 14 00:44 config.cache -rw------- 1 michael staff 44892 May 8 11:22 config.guess -rw-r--r-- 1 root system 47234 Jun 14 00:45 config.log -rwxr-xr-x 1 root system 177 Jun 14 00:42 config.nice -rwxr-xr-x 1 root system 91276 Jun 14 00:44 config.status -rw------- 1 michael staff 33387 May 8 11:22 config.sub + make > build/aix/make.out "/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 893.9: 1506-046 (S) Synt= ax error. "/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.41: 1506-045 (S) Und= eclared identifier i. "/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.51: 1506-277 (S) Syn= tax error: possible missing ';' or ','? "/data/prj/php-5.3.13/ext/sqlite3/sqlite3.c", line 894.65: 1506-045 (S) Und= eclared identifier or. make: 1254-004 The error code from the last command is 1. Stop. I hope this is not too lengthy - but I am anxious/curious about what I am d= oing wrong - that make continues to try to compile the embedded sqlite when= it has an external one. On Thu, Jun 14, 2012 at 3:03 PM, Brian Gaber > wrote: Michael, Here is the configure that I used: ./configure --with-apxs2=3D/usr/local/apache2/bin/apxs \ --with-mysql=3D/usr/local/mysql \ --with-libxml-dir=3D/opt/freeware \ --with-zlib-dir=3D/opt/freeware Thanks. Brian ________________________________ From: Michael Felt [mailto:mamfelt@gmail.com] Sent: Wednesday, June 13, 2012 3:58 PM To: users@httpd.apache.org Subject: Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with= gcc/g++ started with php build. 1st real error is a syntax error in the embedded sq= lite. After building an external version of sqlite (3.6.22 was the last one I had= downloaded, haven not looked for a new one) I am stopping for the night. W= ill keep posted. Question: what are the minimum modules (e.g. gd, jpeg, etc. that need to be= included. By default most of these are not being found. my approach will be to get php tp compile with minimal argumen= ts to ./configure and then add extra statements as needed. Michael On Wed, Jun 13, 2012 at 7:45 PM, Michael Felt > wrote: forgot to mention: no have not tried to compile php against 2.4.x yet. Will= setup a test machine soon to try. On Wed, Jun 13, 2012 at 7:44 PM, Michael Felt > wrote: I had tested httpd with xlCv7 and xlCv11 and gcc 4.6.2. The important thing I noticed is that if you compile apr with gcc you must = compile httpd with gcc as well, and v.v. Noone noticed when they were "bundled" I expect. I also have a buildaix.ksh for both apr and apr-util, but I do not know if = those have made it into trunk yet. I can send them seperately if interested= . With apr and apr-util separate the httpd config and build goes much faste= r. On Wed, Jun 13, 2012 at 3:16 PM, Brian Gaber > wrote: Michael, I will try your buildaix.ksh script. I have been using IBM's compiler = (xlc, cc_r, cc). On related question, Have you successfully compiled PHP against Apache = 2.4.2? I have not. I have tried PHP 5.2, 5.3 and 5.4 and all fail at some= point. Against Apache 2.2.x I have not problem compiling PHP. Cheers. Brian ________________________________ From: Michael Felt [mailto:mamfelt@gmail.com] Sent: Tuesday, June 12, 2012 5:17 PM To: users@httpd.apache.org Subject: Re: [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with= gcc/g++ There are some "more recent" gcc builds for AIX available via: http://www.p= erzl.org/aix/index.php?n=3DMain.Gcc Current versions: * AIX5L V5.1: v4.5.3-2 * AIX5L V5.2: v4.6.3-2 * AIX5L V5.3: v4.6.3-2 * AIX V6.1: v4.6.3-2 * AIX V7.1: v4.6.3-2 RPM's being what they are - there are several packages that need to be inst= alled as mentioned above. And, I would be very interested in hearing what your experiences are if you= use the buildaix.ksh script (in ./build/aix directory). The result is (is = suppossed to be) an installp installable file in build/aix. Regards, Michael On Wed, May 30, 2012 at 7:57 PM, Eric Covener > wrote: On Wed, May 30, 2012 at 1:38 PM, Reimer, George > wrote: > My browser tells me that "It Works!" but it took a couple days of bangin= g > my head against the wall. I encountered the following rough spots and > eventually stumbled over their solutions as noted: can you share your gcc experience here in the wiki: http://wiki.apache.org/httpd/AIXPlatform --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org --_000_37CAD44053C7CA4EA6E242DF34594A63120AE0A0D0MBNCR128adpwg_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Attempted to compile PHP 5.4.3 against Apache=20 2.4.2.
 
Compile Environment:
export CC=3D"xlc -q64 -qcpluscmt"
export LD=3Dldexport=20 LDFLAGS=3D"-L/opt/freeware/lib"
export OBJECT_MODE=3D64
 
Successful configure statement:
./configure --with-apxs2=3D/usr/local/apache2/bin/apx= s=20 \
--with-mysql=3D/usr/local/mysql=20 \
--with-mysqli=3D/usr/local/mysql/bin/mysql_config \
--with-ldap=20 \
--with-libxml-dir=3D/opt/freeware \
--with-zlib-dir=3D/opt/freeware= =20 \
--without-pdo-sqlite \
--without-sqlite3
 
Make returned this error:
 
"/home/downloads/php-5.4.3/Zend/zend.h", line 179.10:= 1506-236=20 (W) Macro name __restrict__ has been=20 redefined.
"/home/downloads/php-5.4.3/Zend/zend.h", line 179.10: 1506-35= 8 (I)=20 "__restrict__" is defined on line 186 of=20 /usr/include/standards.h.
        /bi= n/sh=20 /home/downloads/php-5.4.3/libtool --silent --preserve-dup-deps --mode=3Dcom= pile=20 xlc -q64 -qcpluscmt  -Iext/mysqli/ -I/home/downloads/php-5.4.3/ext/mys= qli/=20 -DPHP_ATOM_INC -I/home/downloads/php-5.4.3/include=20 -I/home/downloads/php-5.4.3/main -I/home/downloads/php-5.4.3=20 -I/home/downloads/php-5.4.3/ext/date/lib=20 -I/home/downloads/php-5.4.3/ext/ereg/regex -I/opt/freeware/include/libxml2= =20 -I/opt/freeware/include -I/usr/local/include -I/usr/local/mysql/include=20 -I/home/downloads/php-5.4.3/TSRM=20 -I/home/downloads/php-5.4.3/Zend    -I/usr/include -g  = -c=20 /home/downloads/php-5.4.3/ext/mysqli/mysqli.c -o ext/mysqli/mysqli.lo=20
"/home/downloads/php-5.4.3/Zend/zend.h", line 179.10: 1506-236 (W) Macr= o=20 name __restrict__ has been=20 redefined.
"/home/downloads/php-5.4.3/Zend/zend.h", line 179.10: 1506-35= 8 (I)=20 "__restrict__" is defined on line 186 of=20 /usr/include/standards.h.
"/usr/local/mysql/include/my_config.h", line=20 1147.9: 1506-236 (W) Macro name PACKAGE_NAME has been=20 redefined.
"/usr/local/mysql/include/my_config.h", line 1147.9: 1506-358= (I)=20 "PACKAGE_NAME" is defined on line 2104 of=20 /home/downloads/php-5.4.3/include/../main/php_config.h.
"/usr/local/mysq= l/include/my_config.h",=20 line 1150.9: 1506-236 (W) Macro name PACKAGE_STRING has been=20 redefined.
"/usr/local/mysql/include/my_config.h", line 1150.9: 1506-358= (I)=20 "PACKAGE_STRING" is defined on line 2107 of=20 /home/downloads/php-5.4.3/include/../main/php_config.h.
"/usr/local/mysq= l/include/my_config.h",=20 line 1153.9: 1506-236 (W) Macro name PACKAGE_TARNAME has been=20 redefined.
"/usr/local/mysql/include/my_config.h", line 1153.9: 1506-358= (I)=20 "PACKAGE_TARNAME" is defined on line 2110 of=20 /home/downloads/php-5.4.3/include/../main/php_config.h.
"/usr/local/mysq= l/include/my_config.h",=20 line 1156.9: 1506-236 (W) Macro name PACKAGE_VERSION has been=20 redefined.
"/usr/local/mysql/include/my_config.h", line 1156.9: 1506-358= (I)=20 "PACKAGE_VERSION" is defined on line 2116 of=20 /home/downloads/php-5.4.3/include/../main/php_config.h.
"/usr/local/mysq= l/include/my_global.h",=20 line 626.10: 1506-296 (S) #include file <my_compiler.h> not=20 found.
make: 1254-004 The error code from the last command is=20 1.
 

Stop.


From: Michael Felt [mailto:mamfelt@gmai= l.com]=20
Sent: Thursday, June 14, 2012 5:38 PM
To:=20 users@httpd.apache.org
Subject: Re: [users@httpd] Compiling/Insta= lling=20 httpd 2.4.2 on AIX 6.1 with gcc/g++

I have gotten it to compile (5.3.14) - and what I needed to add = for=20 the IBM compiler was -qlangval=3Dextc99 so that it would accept c++ like co= mments=20 (starting with //)

The other problem I have, and it is an "old" one,= is=20 that the AIX make (or maybe the ksh) does not execute the $(BUILD_CLI) argu= ment=20 to build sapi/cli/php. After editing Makefile, and making sure that "#! ." = is=20 not the first line of php.sym it completes building.

Anyway, now I n= eed=20 to try a default to "add everything" and see what extras need to be built. = And=20 also try 5.4.4

On Thu, Jun 14, 2012 at 7:30 PM, Brian Gaber <Brian.Gaber@tpsgc-pwgsc.gc.ca> wrote:
I wa= s getting=20 errors with sqlite also so I added these two configure=20 directives:
 
--without-pdo-sqlite
--without-sqlite
 
This= got me past=20 the sqlite problem.
 


From: Michael Felt [mailto:mamfelt@gmail.com]
Sent: Thursday, J= une 14,=20 2012 11:52 AM

To: users@httpd.apache.org
Subject: Re: [users@= httpd]=20 Compiling/Installing httpd 2.4.2 on AIX 6.1 with=20 gcc/g++

Now I need to see if I actually put everything needed in=20 ./build/aix/README for httpd.

Starting point for me is: use neithe= r=20 /usr(/local) nor /opt/freeware (as I am trying to be independent of "old"= =20 RPM's). A secondary goal is that the installp packages built are suitable= for=20 installation in WPAR (hosting) environments.

Next - I started with= a=20 clean installation (AIX 5.3 TL7 first, working mainly with AIX 6.1 now) a= nd=20 "added" things as needed.

For zlib - what is needed is to copy zli= b.h,=20 and I think there is another zlib related include file as well. -- copy t= o=20 /usr/include, or /opt/include

For apr and apr-util I added build/a= ix/*=20 files - I'll send copies if you like. An independent tester who finds the= m=20 sucessful may help get them accepted to apr and apr-util trunks.

F= or=20 the other packages that are needed - I wrote a buildaix package that you = can=20 download via http://sourceforge.net/projects/mkinstallp/files/buildaix= -1.0.0/

If=20 you add /opt/bin to your PATH the command /opt/bin/buildaix will run the= =20 ./configure command with some defaults - basically - prefix is /opt,=20 mandir=3D/usr/share/man, and confdir is /etc (and another one is /var, I = forget=20 it's name atm).

I choose /opt as, imho, a better generic prefix fo= r AIX=20 - where /usr/local just seems to create problems. (Idea: a symbolic link = of=20 /usr/local -> /opt might fix a lot of things that break with "./config= ure"=20 commands that only look at /usr and /usr/local by default - but this is a= n=20 aside".

Summary: drop /usr/local as prefix, stop using old RPM (or= any=20 RPM if possible) - instead

download and build fresh using buildaix= --=20 /opt, /etc, /var and /usr/share/man as default destinations

For ht= tpd:=20 customized version of build/aix/* for apr-util in any case (buildaix coul= d be=20 used for apr, but I have a seperate set of files for that package as=20 well)

So, e.g., coreutils I built and installed using buildaix, sa= me=20 for pcre and any other required external package.

Thus, with php, = I=20 started with buildaix.

libxml2 was missing so the basic step=20 was:
root@x104:[/data/prj/libxml2= -2.7.7]buildaix....installp -d .=20 aixtools.libxml2.rte....aixtools.libxml2.rte &n= bsp;     =20 2.7.7.0        =20 USR        =20 APPLY       SUCCESS   = ;=20

Added /opt to list of directories to search in configure to look = for=20 xml2-config
LINE 21865

And configure completes.

I also g= ot an=20 Syntax errors with embedded sqlite so I compiled an external version. How= ever,=20 php continues to try to compile that.

Maybe you can help me beyond= this=20 point:

michael@x054:[/data/prj/php-= 5.3.13]cat=20 php_configure.ksh
= #!/usr/bin/kshset -x./configure \    &nbs= p;  =20 --prefix=3D/opt \
=     &nbs= p;  =20 --sysconfdir=3D/etc \
    &nbs= p;  =20 --mandir=3D/usr/share/man \    &nbs= p;  =20 --with-libdir=3D/opt/lib \    &nbs= p;  =20 --with-sqlite3=3D/opt \    &nbs= p;          =20 > build/aix/configure.out

Now that configure has finishe= d=20 (there is a makefile) I can use buildaix again (it skips the ./configure = step=20 if it sees a Makefile)

root@x104:[/data/prj/php-5.3= .13]buildaix          &nb= sp;  =20
NAME: phpVERSION.RELEASE: 5.3.13.0/usr/bin/buildaix: using exi= sting=20 Makefile
/usr/bin/buildaix: run make= =20 distclean to get a standard AIX configure-rw-r--r-- 1 root  = ; =20 system 127516 Jun 14 00:44 ./Makefile-rw-r--r-- 1 root  = ; =20 system  17721 Jun 14 00:44 config.cache-rw------- 1 michael=20 staff   44892 May  8 11:22 config.guess-rw-r--r-- 1 root  = ; =20 system  47234 Jun 14 00:45 config.log-rwxr-xr-x 1 root  = ; =20 system    177 Jun 14 00:42 config.nice-rwxr-xr-x 1 root  = ; =20 system  91276 Jun 14 00:44 config.status-rw------- 1 michael=20 staff   33387 May  8 11:22 config.sub+ make >=20 build/aix/make.out
"/data/prj/php-5.3.13/ext/sq= lite3/sqlite3.c",=20 line 893.9: 1506-046 (S) Syntax error."/data/prj/php-5.3.13/ext/sq= lite3/sqlite3.c",=20 line 894.41: 1506-045 (S) Undeclared identifier i."/data/prj/php-5.3.13/ext/sq= lite3/sqlite3.c",=20 line 894.51: 1506-277 (S) Syntax error: possible missing ';' or ','?"/data/prj/php-5.3.13/ext/sq= lite3/sqlite3.c",=20 line 894.65: 1506-045 (S) Undeclared identifier or.make: 1254-004 The error cod= e from=20 the last command is 1.Stop.I hope this is not too lengt= hy -=20 but I am anxious/curious about what I am doing wrong - that make continue= s to=20 try to compile the embedded sqlite when it has an external one.
On Thu, Jun 14, 2012 at 3:03 PM, Brian Gaber <Brian.Gaber@tpsgc-pwgsc.gc.ca> wrote:
Michael,
 
    Here is the configure that I used:
 
./= configure=20 --with-apxs2=3D/usr/local/apache2/bin/apxs \
--with-mysql=3D/usr/loc= al/mysql=20 \
--with-libxml-dir=3D/opt/freeware=20 \
--with-zlib-dir=3D/opt/freeware
 
    Thanks.
 
Brian

From: Michael Felt [mailto:mamfelt@gmail.com]
Sent: Wednesday= , June=20 13, 2012 3:58 PM=20

To: users@httpd.apache.org
Subject: Re:=20 [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with=20 gcc/g++

started with php build. 1st real error is a syntax error in = the=20 embedded sqlite.

After building an external version of sqlite (3= .6.22=20 was the last one I had downloaded, haven not looked for a new one) I am= =20 stopping for the night. Will keep posted.

Question: what are the= =20 minimum modules (e.g. gd, jpeg, etc. that need to be included. By defau= lt=20 most of these are not
being found. my approach will be to get php tp= =20 compile with minimal arguments to ./configure and then add extra statem= ents=20 as needed.

Michael

On Wed, Jun 13, 2012 at 7:45 PM, Michael Felt = <mamfelt@gmail.com> wrote:
forgot to mention: no have not tried to compile php= =20 against 2.4.x yet. Will setup a test machine soon to try.=20


On Wed, Jun 13, 2012 at 7:44 PM, Michael Fel= t <mamfelt@gmail.com> wrote:
I had tested httpd with xlCv7 and xlCv11 and gcc= =20 4.6.2.

The important thing I noticed is that if you compile = apr=20 with gcc you must compile httpd with gcc as well, and v.v.
Noone= =20 noticed when they were "bundled" I expect.

I also have a=20 buildaix.ksh for both apr and apr-util, but I do not know if those = have=20 made it into trunk yet. I can send them seperately if interested. W= ith=20 apr and apr-util separate the httpd config and build goes much fast= er.=20


On Wed, Jun 13, 2012 at 3:16 PM, Brian Gab= er=20 <Brian.Gaber@tpsgc-pwgsc.gc.ca> wrote:=
Michael,
 
    I will try your buildaix.ksh=20 script.  I have been using IBM's compiler (xlc, cc_r,=20 cc).
 
    On related question, Have you successfully compiled = PHP=20 against Apache 2.4.2?  I have not.  I have tried PHP 5.= 2,=20 5.3 and 5.4 and all fail at some point.  Against Apache 2.2.= x I=20 have not problem compiling PHP.
 
    Cheers.
 
Brian


From: Michael Felt [mailto:mamfelt@gmail.c= om]=20
Sent: Tuesday, June 12, 2012 5:17 PM
To: users@httpd.apache.org
Subject: Re:= =20 [users@httpd] Compiling/Installing httpd 2.4.2 on AIX 6.1 with=20 gcc/g++

There are some "more recent" gcc builds for AIX availa= ble=20 via: http://www.perzl.org/aix/index.php?n=3DMain.Gcc

Current versions:

  • AIX5L V5.1: v4.5.3-2=20
  • AIX5L V5.2: v4.6.3-2=20
  • AIX5L V5.3: v4.6.3-2=20
  • AIX V6.1: v4.6.3-2=20
  • AIX V7.1: v4.6.3-2
RPM's being what they are - th= ere are=20 several packages that need to be installed as mentioned=20 above.

And, I would be very interested in hearing what you= r=20 experiences are if you use the buildaix.ksh script (in ./build/ai= x=20 directory). The result is (is suppossed to be) an installp instal= lable=20 file in build/aix.

Regards,
Michael

On Wed, May 30, 2012 at 7:57 PM, Eric Co= vener=20 <covener@gmail.com> wrote:
On Wed, May 30, 2012 at 1:38 PM, Reimer, George
<George.Reimer@fisglobal.com> wrote:
&= gt; My=20 browser tells me that “It Works!”  but it took= a couple days of=20 banging
> my head against the wall. I encountered the=20 following rough spots and
> eventually stumbled over thei= r=20 solutions as noted:

can you share your gcc experie= nce=20 here in the wiki:

http://wiki.apache.org/httpd/AIXPlatform
---------------------------------------------------------------------<= BR>To=20 unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For=20 additional commands, e-mail: users-help@httpd.apache.org







--_000_37CAD44053C7CA4EA6E242DF34594A63120AE0A0D0MBNCR128adpwg_--