ID:               29290
 User updated by:  jketabchy at swd-ag dot de
 Reported By:      jketabchy at swd-ag dot de
-Status:           Feedback
+Status:           Open
 Bug Type:         *Compile Issues
 Operating System: AIX 5.2
 PHP Version:      4.3.8
 New Comment:

okay:
export CFLAGS="$CFLAGS -m32"
./configure --with-oci8 --with-pache=/usr/local/apache_1.3.31
loading cache ./config.cache
checking host system type... powerpc-ibm-aix5.2.0.0
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  -m32 ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.

Result = compiler cannot create executables.

is it means, i have to install another GCC Compiler???
Reagrds


Previous Comments:
------------------------------------------------------------------------

[2004-07-21 10:35:34] [EMAIL PROTECTED]

just do `export CFLAGS="$CFLAGS -m32"` before ./configure && make.

------------------------------------------------------------------------

[2004-07-21 10:29:07] jketabchy at swd-ag dot de

in which file do i have to add CFLAGS="-m32" ????

Regards
Ketabchy

------------------------------------------------------------------------

[2004-07-21 10:20:37] [EMAIL PROTECTED]

It seems, that this happens because CFLAGS doesn't include -m32 flag.
Add it: CFLAGS="-m32" and try again.

------------------------------------------------------------------------

[2004-07-21 10:06:17] jketabchy at swd-ag dot de

Hi !

yes it compile the oci.c without any error.

I red at oracle-Site i have to compile with the Flags:
--with-oracle and --with-oci8 but youz are right. it works without the
flag --with-oracle.

what shall i do now?

################################
Please try the following:
file oci.c
--
#include <oci.h>

int main () {
        printf("%d\n", SQLT_INT);
        return 0;
}
--
gcc -o oci -I$ORACLE_HOME/rdbms/demo/ -I$ORACLE_HOME/rdbms/public/
-L$ORACLE_HOME/lib/ -lclntsh oci.c

Does it compile for you?

Btw, you don't need to use both --with-oci8 & --with-oracle.
To build PHP with OCI8 support enabled you need only --with-oci8.

------------------------------------------------------------------------

[2004-07-21 09:51:23] [EMAIL PROTECTED]

Please try the following:
file oci.c
--
#include <oci.h>

int main () {
        printf("%d\n", SQLT_INT);
        return 0;
}
--
gcc -o oci -I$ORACLE_HOME/rdbms/demo/ -I$ORACLE_HOME/rdbms/public/
-L$ORACLE_HOME/lib/ -lclntsh oci.c

Does it compile for you?

Btw, you don't need to use both --with-oci8 & --with-oracle.
To build PHP with OCI8 support enabled you need only --with-oci8.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/29290

-- 
Edit this bug report at http://bugs.php.net/?id=29290&edit=1

Reply via email to