Opened 17 years ago
Closed 14 years ago
#275 closed defect (fixed)
GenericRDBMS UnitTest Compilation Problem
Reported by: | larz | Owned by: | gregboone |
---|---|---|---|
Priority: | critical | Milestone: | 3.5.0 |
Component: | FDO API | Version: | 3.2.0 |
Severity: | 1 | Keywords: | RDBMS, ODBC, MySQL |
Cc: | External ID: |
Description
Error Output
/Rdbi/.libs/librdbi.a ../Util/.libs/libutil.a /usr/lib/libodbc.so -ldl -lpthread -lz -Wl,--rpath -Wl,/usr/local/fdo-3.3.0/lib
../ODBC/.libs/libFdoRdbmsODBC.a(FdoRdbmsOdbcConnection.o): In function `FdoRdbmsOdbcConnection::GetSchemaNameFromDsn()':
FdoRdbmsOdbcConnection.cpp:(.text+0x1c8f): undefined reference to `SQLGetPrivateProfileString' collect2: ld returned 1 exit status make[3]: * [UnitTestOdbc] Error 1 make[3]: Leaving directory `/Software/FDO/OpenSource_FDO/Providers/GenericRdbms/Src/UnitTest' make[2]: * [all-recursive] Error 1 make[2]: Leaving directory `/Software/FDO/OpenSource_FDO/Providers/GenericRdbms/Src/UnitTest' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory `/Software/FDO/OpenSource_FDO/Providers/GenericRdbms/Src' make: * [all-recursive] Error 1
Diagnosis - missing LD_LIBRARY references for 'libodbcinst' in Makefile.am
Solution - modify Makefile.am In particular, in the 'UnitTestOdbc_LDADD' section you need to add a couple of lines (both may not be necessary, but it works). At (or around) line 154 and line 191, you'll find references to libodbc:
-lodbc \
Insert the additional following line
-lodbcinst \
Change History (1)
comment:1 by , 14 years ago
Milestone: | 3.4.0 → 3.5.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |