[unixODBC-support] Make error - Solaris 10

Randy W Magaw rmagaw at wlgore.com
Fri Jun 5 18:23:10 BST 2009


I'm missing a gcc lib reference in my LD_LIBRARY_PATH ->

ldd -r libodbc.so
        libthread.so.1 =>        /lib/libthread.so.1
        libc.so.1 =>     /lib/libc.so.1
        libgcc_s.so.1 =>         (file not found)
        /platform/SUNW,Sun-Fire-15000/lib/libc_psr.so.1
        libm.so.2 =>     /lib/libm.so.2

I added it to LD_LIBRARY_PATH ->

ldd -r libodbc.so
        libthread.so.1 =>        /lib/libthread.so.1
        libc.so.1 =>     /lib/libc.so.1
        libgcc_s.so.1 =>         /opt/csw/gcc4/lib/libgcc_s.so.1
        /platform/SUNW,Sun-Fire-15000/lib/libc_psr.so.1
        libm.so.2 =>     /lib/libm.so.2

Now dltest works ->

dltest /apps/unixODBC64/lib/libodbc.so
SUCCESS: Loaded /apps/unixODBC64/lib/libodbc.so

So I changed the reference in the listener.ora and hs/init.ora to include 
it in LD_LIBRARY_PATH.

Listener.ora ->
....
(PROGRAM = dg4odbc)
 
(ENVS=LD_LIBRARY_PATH=/opt/csw/gcc4/lib:/apps/FreeTDS64/lib:/apps/unixODBC64/lib:/apps/oracle/product/11.1.0.6/db/lib)
    )
....

hs init.ora ->
set 
LD_LIBRARY_PATH=/opt/csw/gcc4/lib:/apps/FreeTDS64/lib:/apps/unixODBC64/lib:/apps/oracle/product/11.1.0.6/db/lib
...
I've bounced the Oracle listener.

Still seeing the same error in hs trace ?

Entered hgolofn at 2009/06/05-13:07:29
HOSGIP for "HS_FDS_SHAREABLE_NAME" returned 
"/apps/unixODBC64/lib/libodbc.so"
Entered hgolofns at 2009/06/05-13:07:29
 libname=/apps/unixODBC64/lib/libodbc.so, funcname=SQLAllocHandle
 hoaerr:28500
Exiting hgolofns at 2009/06/05-13:07:29
Failed to load ODBC library symbol: 
/apps/unixODBC64/lib/libodbc.so(SQLAllocHandle)
Exiting hgolofn, rc=28500 at 2009/06/05-13:07:29
Exiting hgoinit, rc=28500 at 2009/06/05-13:07:29 with error ptr 
FILE:hgoinit.c LINE:282 ID:Loading OD
BC aray of function ptrs
Entered hgoexit at 2009/06/05-13:07:29

Thanks for the help, Randy




Nick Gorham <nick at lurcher.org> 
Sent by: unixodbc-support-bounces at mailman.unixodbc.org
06/05/2009 12:38 PM
Please respond to
Support for the unixODBC project <unixodbc-support at mailman.unixodbc.org>


To
Support for the unixODBC project <unixodbc-support at mailman.unixodbc.org>
cc

Subject
Re: [unixODBC-support] Make error - Solaris 10






Randy W Magaw wrote:
>
> It appears dltest can't open the file ->
>
> ./dltest /apps/unixODBC64/lib/libodbc.so SQLAllocHandle
> [dltest] ERROR dlopen: file not found
>
> Thanks, Randy

Check using ldd that there are no dependencies that are not in your 
LD_LIBRARY_PATH

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20090605/8ee91532/attachment.html>


More information about the unixODBC-support mailing list