Re: Build problems on AIX
"Frediano Ziglio" <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
2008/12/12 Ben Lentz <[email protected]>: > >>> .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