Re: [unixODBC][Driver Manager]Can't open lib ... Access is denied
Dave Dumaresq <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
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)'. 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. Looking through the config.log for shared, I see that iconv might not be complete... not sure if that affects whether shared objects are created? configure:7371: checking whether the gcc linker (/usr/i686-pc-cygwin/ bin/ld.exe) supports shared libraries configure:8233: result: yes configure:8259: checking whether -lc should be explicitly linked in configure:8264: gcc -c -g -O2 -D_FREETDS_LIBRARY_SOURCE conftest.c >&5 configure:8267: $? = 0 configure:8281: gcc -shared conftest.o -v -o ./conftest -Wl,--image- base=0x10000000 -Wl,--out-implib,conftest 2\>\&1 \| grep -lc \>/dev/ null 2\>\&1 configure:8284: $? = 1 configure:8296: result: yes configure:8304: checking dynamic linker characteristics configure:8846: result: Win32 ld.exe configure:8850: checking how to hardcode library paths into programs configure:8875: result: immediate configure:8889: checking whether stripping libraries is possible configure:8894: result: yes configure:9724: checking if libtool supports shared libraries configure:9726: result: yes configure:9729: checking whether to build shared libraries configure:9750: result: yes configure:9753: checking whether to build static libraries configure:9757: result: yes configure:9849: creating libtool configure:10858: checking for windres configure:10874: found /usr/bin/windres configure:10885: result: windres configure:10948: checking for ld used by GCC configure:11012: result: /usr/i686-pc-cygwin/bin/ld.exe configure:11021: checking if the linker (/usr/i686-pc-cygwin/bin/ ld.exe) is GNU ld configure:11034: result: yes configure:11040: checking for shared library run path origin configure:11053: result: done configure:11483: checking for iconv configure:11510: gcc -o conftest.exe -g -O2 - D_FREETDS_LIBRARY_SOURCE conftest.c >&5 /tmp/cc3Crt4a.o: In function `main': /usr/src/freetds-0.82/conftest.c:29: undefined reference to `_libiconv_open' /usr/src/freetds-0.82/conftest.c:30: undefined reference to `_libiconv' /usr/src/freetds-0.82/conftest.c:31: undefined reference to `_libiconv_close' collect2: ld returned 1 exit status Dave -- Dave Dumaresq Technical Analyst - BCcampus 200 - 555 Seymour St, Vancouver BC Phone: 604-412-7738