Unix Technical Forum

Got trouble when I build freetds and unixODBC on AIX5.3, need help!

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 09:12 AM
mike
 
Posts: n/a
Default Got trouble when I build freetds and unixODBC on AIX5.3, need help!

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#

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 09:13 AM
mike
 
Posts: n/a
Default Re: Got trouble when I build freetds and unixODBC on AIX5.3, need help!

I got the answer:

CPP="gcc -E"
CXXCPP="g++ -E"

everyone can ask the question related to this topic. mikey38@hotmail.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:52 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com