Re: [unixODBC][Driver Manager]Can't open lib ... Access is denied

[email protected]
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
On Thu, Jun 09, 2011 at 08:52:07AM -0700, Dave Dumaresq wrote:
> On 9-Jun-11, at 7:15 AM, [email protected] wrote:
> 
> >> $ isql dsn_bccampus MyUid MyPWD -v
> >>
> >> [01000][unixODBC][Driver Manager]Can't open lib '/usr/local/freetds/
> >> lib/libtdsodbc.a' : Access is denied.
> >> [ISQL]ERROR: Could not SQLConnect
> >>
> >> odbcinst.ini
> >> [FreeTDS]
> >> Driver=/usr/local/freetds/lib/libtdsodbc.a
> >
> > Is libtdsodbc.a a shared object?  What does file(1) say?
> 
> 
> I'm not sure what you mean by 'file(1)'.

That notation means that "file" is a utility documented in section 1 of the man
pages.  

$ man file | head
FILE(1)                   BSD General Commands Manual                  FILE(1)

NAME
     file - determine file type

SYNOPSIS
     file [-bchiklLNnprsvz0] [--apple] [--mime-encoding] [--mime-type]
          [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ...
     file -C [-m magicfiles]
     file [--help]

Sometimes different sections of the manual have the same title.  The
parenthetical number avoids ambiguity and is an immediate hint we're talking
about a standard utility.  

> This is the first time I've built code in a cygwin environment, so I'm  
> unsure about all the libraries that need to be available.

http://cygwin.com/ml/cygwin/2004-11/msg00124.html

Apparently shared libraries are named .DLL in cygwin.  The .a files on my system
are static libraries, e.g.: 

$ file /usr/lib/libticw.*
/usr/lib/libticw.a:     current ar archive
/usr/lib/libticw.dll.a: current ar archive
/usr/lib/libticw.la:    libtool library file

HTH.  

--jkl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.