1754020 Members
7471 Online
108811 Solutions
New Discussion юеВ

freeTDS on HP-UX 11.31

 
SOLVED
Go to solution
Joseph Watson
Occasional Advisor

freeTDS on HP-UX 11.31

Hello,

I am trying to connect from my HP-UX 11.31 server to Microsoft SQL Server 2005.

I am trying to use unixODBC and freeTDS to get the job done.

http://www.unixodbc.org
http://www.freetds.org


Compiling and installing unixODBC was very easy. No errors. I just had to add sim links because /usr/local/bin is not in my path.

freeTDS is another story. Configure seems to go good, but make bombs with some errors.

I am hoping someone can help me trouble shoot this a bit.

There are directions on the freeTDS website that I am trying to follow, but it does not work out for me the same.

http://www.freetds.org/contrib/hpux/

I am using the following for configure:


env CC=cc CFLAGS="+O2 -I/usr/local/include" LDFLAGS="-L/usr/local/lib/hpux32" ./configure --with-tdsver=8.0 --with-unixodbc=/usr/local --with-libiconv-prefix=/usr/local/lib/hpux32

This completes without issues (that I could see).

I then run make and if fails with the errors that I cant figure out.

I will attach the logs for both config and make

Any help or pointers will be much appreciated.

Thanks

--Joseph
7 REPLIES 7
Joseph Watson
Occasional Advisor

Re: freeTDS on HP-UX 11.31

Here is the config log
Joseph Watson
Occasional Advisor

Re: freeTDS on HP-UX 11.31

And make log
Joseph Watson
Occasional Advisor

Re: freeTDS on HP-UX 11.31

I found a thread with the same issue, but he solution was not posted...

http://forums11.itrc.hp.com/service/forums/postanswer.do?threadid=1348780&forumId=1&closedFlag=1
Dennis Handly
Acclaimed Contributor
Solution

Re: freeTDS on HP-UX 11.31

You'll need to replace -mthreads by -mt to prevent that warning. You'll also need -AC99 as I mentioned in that other thread.

>the solution was not posted...

Did you read my suggestions there?
Joseph Watson
Occasional Advisor

Re: freeTDS on HP-UX 11.31

I tried the -mt but I missed using -AC99.

I will give it a try and report back.

Thanks so much for you help!

-- Joseph
Joseph Watson
Occasional Advisor

Re: freeTDS on HP-UX 11.31

That was the issue.

make was successful.
Dennis Handly
Acclaimed Contributor

Re: freeTDS on HP-UX 11.31

For the latest aC++ compiler A.06.25, -AC99 is the default.