LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Having trouble installing php/apache in 32 bit mode (http://www.linuxquestions.org/questions/linux-software-2/having-trouble-installing-php-apache-in-32-bit-mode-901478/)

danbopes 09-06-2011 04:23 PM

Having trouble installing php/apache in 32 bit mode
 
I have a problem. I have a client that has a 64-bit OS (Redhat 5.7) but am having trouble installing php with ODBC support for progress.

Progress, provides an ODBC driver, but it's only 32 bit mode. When compiling unixODBC, I'm forced to compile it in 32 bit mode with the -m32 flags for gcc. I need to get php and I assume apache compiled in 32 bit mode, but when I do CFLAGS/CCFLAGS='-m32', I get horrible build errors.

Make Command (For apache)
Code:

CFLAGS='-m32 -march=i386' CCFLAGS='-m32 -march=i386' ./configure --enable-so
Code:

...
ixd.c:116: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
unixd.c:186: error: expected ')' before '*' token
unixd.c:213: error: expected ')' before '*' token
unixd.c:225: error: expected ')' before '*' token
unixd.c:240: error: expected ')' before '*' token
unixd.c:257: error: expected ')' before '*' token
unixd.c:280: error: expected ')' before '*' token
unixd.c:340: error: expected specifier-qualifier-list before 'apr_array_header_t'
unixd.c:340: error: storage class specified for parameter '_hooks'
unixd.c:344: error: expected ')' before '*' token
unixd.c:344: error: expected declaration specifiers before 'apr_array_header_t'
unixd.c:344: error: expected declaration specifiers before 'ap_unix_identity_t'
unixd.c:348: error: expected ')' before '*' token
unixd.c:418: error: expected ';', ',' or ')' before '*' token
unixd.c:435: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'proc_mutex_mech'
unixd.c:448: error: expected ')' before '*' token
unixd.c:501: error: expected ')' before '*' token
unixd.c:513: error: expected declaration specifiers or '...' before 'ap_listen_rec'
unixd.c:514: error: expected declaration specifiers or '...' before 'apr_pool_t'
unixd.c:515: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
unixd.c:659: error: old-style parameter declarations in prototyped function definition
/usr/include/apr-1/apr_errno.h:52: error: parameter name omitted
unixd.c:659: error: expected '{' at end of input
make[3]: *** [unixd.lo] Error 1
make[3]: Leaving directory `/root/httpd-2.2.20/os/unix'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/httpd-2.2.20/os/unix'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/httpd-2.2.20/os'
make: *** [all-recursive] Error 1

How would one go about compiling this in 32 bit mode on redhat.

danbopes 09-07-2011 07:37 AM

Bump, any help regarding this error? I've pretty much tried everything. Any tools I need to do this?


All times are GMT -5. The time now is 10:58 PM.