Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-06-2011, 04:23 PM   #1
LQ Newbie
Registered: Dec 2010
Posts: 5

Rep: Reputation: 0
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)
CFLAGS='-m32 -march=i386' CCFLAGS='-m32 -march=i386' ./configure --enable-so
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.
Old 09-07-2011, 07:37 AM   #2
LQ Newbie
Registered: Dec 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Bump, any help regarding this error? I've pretty much tried everything. Any tools I need to do this?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble installing mimio 32 bit on 64 bit ubuntu Broder Linux - Software 9 03-03-2011 03:17 PM
trouble with PHP/Apache.... Basslord1124 Debian 5 07-03-2008 03:27 PM
Trouble installing OCI8 support w/ PHP Apache nathank Linux - Server 1 06-15-2007 06:43 AM
problem with php in apache on Mandriva 2007 64 bit ChrisHarvey Mandriva 0 04-24-2007 01:50 PM
having trouble with apache and php mohtasham1983 Linux - Networking 0 04-18-2006 06:01 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration