[fdo-trac] #275: GenericRDBMS UnitTest Compilation Problem
    FDO 
    trac_fdo at osgeo.org
       
    Fri Mar 14 10:01:42 EDT 2008
    
    
  
#275: GenericRDBMS UnitTest Compilation Problem
------------------------+---------------------------------------------------
   Reporter:  larz      |       Owner:  gregboone         
       Type:  defect    |      Status:  new               
   Priority:  critical  |   Milestone:  3.3.1             
  Component:  FDO API   |     Version:  3.2.0             
   Severity:  1         |    Keywords:  RDBMS, ODBC, MySQL
External_id:            |  
------------------------+---------------------------------------------------
 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 \
-- 
Ticket URL: <http://trac.osgeo.org/fdo/ticket/275>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
    
    
More information about the fdo-trac
mailing list