Skip to Content.
Sympa Menu

freetds - Re: [freetds] Build problems on AIX

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Frediano Ziglio" <freddy77 AT gmail.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Build problems on AIX
  • Date: Fri, 12 Dec 2008 10:53:07 +0100

2008/12/12 Ben Lentz <ben.lentz AT gmail.com>:
>
>>> .deps/connectparams.Tpo -c connectparams.c -DPIC
>>> connectparams.c:90: error: static declaration of
>>> 'SQLGetPrivateProfileString' follows non-static declaration
>>> /opt/local/include/odbcinst.h:468: error: previous declaration of
>>> 'SQLGetPrivateProfileString' was here
>>> make[3]: *** [connectparams.lo] Error 1
>>> make[3]: Leaving directory `/home/blentz/test/test/freetds-0.82/src/odbc'
>>> make[2]: *** [all-recursive] Error 1
>>> make[2]: Leaving directory `/home/blentz/test/test/freetds-0.82/src/odbc'
>>> make[1]: *** [all-recursive] Error 1
>>> make[1]: Leaving directory `/home/blentz/test/test/freetds-0.82/src'
>>> make: *** [all-recursive] Error 1
>>>
>>> Fix:
>>> env CC="$CC -DHAVE_SQLGETPRIVATEPROFILESTRING" ./configure
>>>
>>> Not sure what's up with this. GNU libtool 1.5.26 is installed in
>>> /opt/local and is first in PATH.
>>>
>>>
>>
>> Mmm.... did you use --with-unixodbc=/opt/local during configure ?? It
>> seems configure fails to found SQLPrivateProfileString function in
>> odbcinst.
>>
>
> Nope, I didn't try that. I figured (perhaps incorrectly) it would be
> auto-detected to avoid the conflict.
>

It would be helpful if you can try that option. Strangely configure
found odbc so it founded SQLConnect on iodbc or odbc library and sql.h
or isql.h... but it didn't find SQLPrivateProfileString in odbcinst or
iodbcinst library.

Could you try this command ?

find / -name libodbc\* -o -name libiodbc\* -o -name sql.h -o -name
isql.h -o -name odbc\*.h -o -name iodbc\*.h 2> /dev/null

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page