>> Martin J. Evans wrote:
>> > col wrote:
>
>[8<]
>
>> >>
>> >> So, I thought you folks should hear about it all again. HTH...
>> >> else, sorry for the noise.
>[8<]
>
>> 
>> I spoke to Nick and he reminded me why this can happen.
>
>Thanks *very* much for that.
> 
>> See
>> http://www.easysoft.com/support/kb/kb00664.html
>> 
>http://groups.google.com/group/perl.dbi.users/browse_thread/thread/995131d999ca388/370b10f358e31729?hl=en&lnk=gst&q=Segmen>tation+fault+on+RHEL4#370b10f358e31729

>
>And thanks for the links. I had already run across this and attempted to 
rebuild unixODBC --enable-rtldgroup=no to no apparent effect. I'll try 
again.
>
>> 
>> It is probably down to using RTLD_GLOBAL on the dlopen call which
>> causes symbols to be resolved top down instead of from where the
>> symbol was found to be undefined downwards. You can stick with what
>> you are doing or rebuild unixODBC but it seems a permanent change to
>> unixODBC is not possible because the problem is in libtool so every
>> time unixODBC is reconfigured libtool replaces the change to remove
>> RTLD_GROUP.
>
>./configure --prefix=/usr --host=i686-pc-linux-gnu 
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share 
>--sysconfdir=/etc --localstatedir=/var/lib --host=i686-pc-linux-gnu 
--prefix=/usr --sysconfdir=/etc/unixODBC >--libdir=/usr/lib 
--enable-static --enable-rtldgroup=no --enable-fdb 
--build=i686-pc-linux-gnu
>
>... checking Have we enabled using RTLD_GROUP ... no 
>
>[...]
>
>No change:
>
>perl dbix_odbctest.pl 
>Segmentation fault

We had a similar problem a while ago with RHEL3 which was solved by 
installing the latest unixODBC (2.2.14) -- but without disabling 
RTLD_GROUP. (Actually, the problem was slightly different in that the 
DBI->connect failed rather than segfaulting, but maybe that was due to 
version differences in other software).
We found Martin's reply to 
http://www.issociate.de/board/goto/565693/DBD::ODBC,_unixODBC,_FreeTDS,_MS-SQL,_lazy_DL,_dbd_db_login/SQLSetConnectOption_err=-2.html
 
(the first reply in the same page) helpful, since unixODBC 2.2.8 is the 
default version in RHEL3 and a recent Fedora containing 2.2.11 worked 
correctly.

best regards, John Escott.

Reply via email to