[unixODBC-support] RE : RE : ODBCConfig not loading setup library

Ludo Brands ludo.brands at free.fr
Wed Apr 7 16:26:33 BST 2010


dltest reports "SUCCESS: Found ConfigDSN"

Ludo

-----Message d'origine-----
De : unixodbc-support-bounces at mailman.unixodbc.org
[mailto:unixodbc-support-bounces at mailman.unixodbc.org] De la part de Ludo
Brands
Envoyé : mercredi 7 avril 2010 17:02
À : 'Support for the unixODBC project'
Objet : [unixODBC-support] RE : ODBCConfig not loading setup library


That was fast!

The problem is in odbcinst. Calling SQLConfigDataSource in odbcinst.so from
my installer doesn't work neither. ldd is OK on all systems (no missing
libraries). Il give dltest a try but odbc.so is also using lt_dlinit,
lt_dlopen and lt_dlsym to get the library functions and that is working
fine. 

Ludo

-----Message d'origine-----
De : unixodbc-support-bounces at mailman.unixodbc.org
[mailto:unixodbc-support-bounces at mailman.unixodbc.org] De la part de Nick
Gorham Envoyé : mercredi 7 avril 2010 16:33 À : Support for the unixODBC
project Objet : Re: [unixODBC-support] ODBCConfig not loading setup library


Ludo Brands wrote:
> I'm porting a windows driver to unixodbc. The combined driver-setup 
> library comes with a GUI for ConfigDSN. The library is compiled on 
> Ubuntu 9.10 (32-bit).  ODBCConfig on Ubuntu loads the configuration 
> screen correctly when adding or configuring a DSN. When I install the 
> library on Fedora 10 and Suse 11.1 I get a "Could not construct 
> property list for (my driver)". I took a look at the source code for 
> ODBCConfig and figured out that ODBCConfig (callbacks.c) tries to run 
> ConfigDSN from the driver setup library (SQLConfigDataSource.c) and, 
> if that fails, tries to construct a list of properties. I'm not 
> implementing ODBCINSTGetProperties, hence the error message. Question 
> is, why does ODBCConfig fail to load ConfigDSN on Fedora and Suse 
> while running correctly on Ubuntu? Other tests I ran:
I think this is in general one for Peter as we have split ODBCCOnfig 
off, but I would check if there are any extra libs needed that are not 
being found on Fedora and Suse. Its a bit of a mess with the version of 
QT you build against needing to exist. Try using ldd to see if the lib 
loads ok, maybe try using dltest to see if you can load the library and 
call the entry point.

-- 
Nick


_______________________________________________
unixODBC-support mailing list unixODBC-support at mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-support

_______________________________________________
unixODBC-support mailing list unixODBC-support at mailman.unixodbc.org
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-support



More information about the unixODBC-support mailing list