Re: Build problems on AIX

"Ben Lentz" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
> 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

Using:

./configure --prefix=$WHERE --enable-shared=yes --enable-static=no
--with-unixodbc=/opt/local

Eventually results in:

gcc -Wl,-blibpath:/opt/local/lib:/usr/lib:/lib,-brtl -DHAVE_CONFIG_H
-I. -I. -I../../include -I../../include -I/opt/local/include
-I/opt/local/include -D_FREETDS_LIBRARY_SOURCE -DUNIXODBC -D_REENTRANT
-D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wno-long-long -D_THREAD_SAFE
-I/opt/local/include -Wdeclaration-after-statement -MT
connectparams.lo -MD -MP -MF .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/freetds-0.82/src/odbc'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/blentz/test/freetds-0.82/src/odbc'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/blentz/test/freetds-0.82/src'
make: *** [install-recursive] Error 1

Using:
find /opt/local -name libodbc\* -o -name libiodbc\* -o -name sql.h -o
-name isql.h -o -name odbc\*.h -o -name iodbc\*.h

Results in:
/opt/local/lib/libiodbc.a
/opt/local/lib/libiodbc.la
/opt/local/lib/libiodbcinst.la
/opt/local/lib/libiodbcinst.a
/opt/local/lib/libodbc.a
/opt/local/lib/pkgconfig/libiodbc.pc
/opt/local/include/iodbcext.h
/opt/local/include/iodbcinst.h
/opt/local/include/iodbcunix.h
/opt/local/include/isql.h
/opt/local/include/odbcinst.h
/opt/local/include/sql.h
/opt/local/share/libiodbc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.