This is a discussion on Got trouble when I build freetds and unixODBC on AIX5.3, need help! within the AIX Operating System forums, part of the Unix Operating Systems category; --> At the first step, run the ./configure, I always get: configure: error: C preprocessor "gcc" fails sanity check Any ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| At the first step, run the ./configure, I always get: configure: error: C preprocessor "gcc" fails sanity check Any suggestion will be appreciated. ============================================ I have set the following environment settings for this issue: CC=gcc CFLAGS=-maix64 COLUMNS=120 CPP=gcc CPPFLAGS=-maix64 CXX=g++ CXXCPP=g++ CXXFLAGS=-maix64 OBJECT_MODE=64 Note: If I don't set these settings, I can easily pass this two package's building, but I got too much compiling errors when I build my applications like 1252-191 Only .llong should be used for relocatable expressions. ============================================ other info and settings: bash-3.00# which gcc /usr/local/bin/gcc bash-3.00# which g++ /usr/local/bin/g++ bash-3.00# gcc -v Using built-in specs. Target: powerpc-ibm-aix5.3.0.0 Configured with: ../gcc-4.0.2/configure --disable-nls Thread model: aix gcc version 4.0.2 bash-3.00# g++ -v Using built-in specs. Target: powerpc-ibm-aix5.3.0.0 Configured with: ../gcc-4.0.2/configure --disable-nls Thread model: aix gcc version 4.0.2 bash-3.00# bash-3.00# which ld /usr/bin/ld bash-3.00# ld -V ld: LD 1.64 (08/19/2003) bash-3.00# oslevel -r 5300-01 bash-3.00# uname -a AIX devaix 3 5 000F067F4C00 bash-3.00# bootinfo -K 64 bash-3.00# bootinfo -y 64 bash-3.00# |
| ||||
| I got the answer: CPP="gcc -E" CXXCPP="g++ -E" everyone can ask the question related to this topic. mikey38@hotmail.com |