SQLInstallerErrorW

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

SQLInstallerErrorW

Igor Korot
Hi, (Nick),
I installed unixodbc-2.3.2 the latest stable version for Gentoo).
I turned on the unicode support as well.

In my program I'm trying to use SQLConfigDataSource() call and my program
is being compiled with UNICODE support.

I did include odbcinst.h and I'm linking with -lodbcinst.
All this inside the .so library.

However, when running the application and trying to call dlopen(). I'm
getting an
error saying "undefined symbol SQLInstallerErrorW".
I even tried to add -lodbc to the link command, but the same error persist.

On Windows the code is executing without any issues.

Can someone shed some light on that?

Thank you.
_______________________________________________
unixODBC-dev mailing list
[hidden email]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Reply | Threaded
Open this post in threaded view
|

Re: SQLInstallerErrorW

Nick Gorham-2
On 19/03/16 05:33, Igor Korot wrote:

> Hi, (Nick),
> I installed unixodbc-2.3.2 the latest stable version for Gentoo).
> I turned on the unicode support as well.
>
> In my program I'm trying to use SQLConfigDataSource() call and my program
> is being compiled with UNICODE support.
>
> I did include odbcinst.h and I'm linking with -lodbcinst.
> All this inside the .so library.
>
> However, when running the application and trying to call dlopen(). I'm
> getting an
> error saying "undefined symbol SQLInstallerErrorW".
> I even tried to add -lodbc to the link command, but the same error persist.

Checking the code it should be exported from libodbcinst.so. At least in
the current development code snapshot.

nm /usr/local/lib/libodbcinst.so.2 | grep SQLInstallerErrorW
0000000000005930 T SQLInstallerErrorW

--
Nick
_______________________________________________
unixODBC-dev mailing list
[hidden email]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Reply | Threaded
Open this post in threaded view
|

Re: SQLInstallerErrorW

Igor Korot
Hi, Nick,


On Sat, Mar 19, 2016 at 6:16 AM, Nick Gorham <[hidden email]> wrote:

> On 19/03/16 05:33, Igor Korot wrote:
>>
>> Hi, (Nick),
>> I installed unixodbc-2.3.2 the latest stable version for Gentoo).
>> I turned on the unicode support as well.
>>
>> In my program I'm trying to use SQLConfigDataSource() call and my program
>> is being compiled with UNICODE support.
>>
>> I did include odbcinst.h and I'm linking with -lodbcinst.
>> All this inside the .so library.
>>
>> However, when running the application and trying to call dlopen(). I'm
>> getting an
>> error saying "undefined symbol SQLInstallerErrorW".
>> I even tried to add -lodbc to the link command, but the same error
>> persist.
>
>
> Checking the code it should be exported from libodbcinst.so. At least in the
> current development code snapshot.
>
> nm /usr/local/lib/libodbcinst.so.2 | grep SQLInstallerErrorW
> 0000000000005930 T SQLInstallerErrorW

Apparently not the case here:

[code]
IgorDellGentoo / # cd /usr/lib
IgorDellGentoo lib # ls -la libodbc*
-rw-r--r-- 1 root root    935 Mar 19 13:19 libodbc.la
lrwxrwxrwx 1 root root     16 Mar 19 13:19 libodbc.so -> libodbc.so.2.0.0
lrwxrwxrwx 1 root root     16 Mar 19 13:19 libodbc.so.2 -> libodbc.so.2.0.0
-rwxr-xr-x 1 root root 431792 Mar 19 13:19 libodbc.so.2.0.0
-rw-r--r-- 1 root root    947 Mar 19 13:19 libodbccr.la
lrwxrwxrwx 1 root root     18 Mar 19 13:19 libodbccr.so -> libodbccr.so.2.0.0
lrwxrwxrwx 1 root root     18 Mar 19 13:19 libodbccr.so.2 -> libodbccr.so.2.0.0
-rwxr-xr-x 1 root root  43072 Mar 19 13:19 libodbccr.so.2.0.0
-rw-r--r-- 1 root root    959 Mar 19 13:19 libodbcinst.la
lrwxrwxrwx 1 root root     20 Mar 19 13:19 libodbcinst.so ->
libodbcinst.so.2.0.0
lrwxrwxrwx 1 root root     20 Mar 19 13:19 libodbcinst.so.2 ->
libodbcinst.so.2.0.0
-rwxr-xr-x 1 root root  72160 Mar 19 13:19 libodbcinst.so.2.0.0
IgorDellGentoo lib # nm libodbcinst.so | grep SQLInstallerErrorW
nm: libodbcinst.so: no symbols
IgorDellGentoo lib # cd ../lib64
IgorDellGentoo lib64 # nm libodbcinst.so | grep SQLInstallerErrorW
nm: libodbcinst.so: no symbols
IgorDellGentoo lib64 # ls -la libodbc*
-rw-r--r-- 1 root root    935 Mar 19 13:19 libodbc.la
lrwxrwxrwx 1 root root     16 Mar 19 13:19 libodbc.so -> libodbc.so.2.0.0
lrwxrwxrwx 1 root root     16 Mar 19 13:19 libodbc.so.2 -> libodbc.so.2.0.0
-rwxr-xr-x 1 root root 431792 Mar 19 13:19 libodbc.so.2.0.0
-rw-r--r-- 1 root root    947 Mar 19 13:19 libodbccr.la
lrwxrwxrwx 1 root root     18 Mar 19 13:19 libodbccr.so -> libodbccr.so.2.0.0
lrwxrwxrwx 1 root root     18 Mar 19 13:19 libodbccr.so.2 -> libodbccr.so.2.0.0
-rwxr-xr-x 1 root root  43072 Mar 19 13:19 libodbccr.so.2.0.0
-rw-r--r-- 1 root root    959 Mar 19 13:19 libodbcinst.la
lrwxrwxrwx 1 root root     20 Mar 19 13:19 libodbcinst.so ->
libodbcinst.so.2.0.0
lrwxrwxrwx 1 root root     20 Mar 19 13:19 libodbcinst.so.2 ->
libodbcinst.so.2.0.0
-rwxr-xr-x 1 root root  72160 Mar 19 13:19 libodbcinst.so.2.0.0
[/code]

Info about the system:

IgorDellGentoo lib64 # emerge -pv unixODBC

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-db/unixODBC-2.3.2-r1::gentoo  USE="minimal
unicode -odbcmanual -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
IgorDellGentoo lib64 # emerge --info
Portage 2.2.26 (python 2.7.9-final-0,
default/linux/amd64/13.0/desktop/kde, gcc-4.8.4, glibc-2.21-r2,
3.12.20-gentoo x86_64)
=================================================================
System uname: Linux-3.12.20-gentoo-x86_64-Pentium-R-_Dual-Core_CPU_T4200_@_2.00GHz-with-gentoo-2.2
KiB Mem:     2014420 total,    133140 free
KiB Swap:    1913852 total,    977940 free
Timestamp of repository gentoo: Mon, 29 Feb 2016 00:30:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r2::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.16.4::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.12.6::gentoo, 1.13.4::gentoo,
1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.7.3-r1::gentoo, 4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

rainyday
    location: /var/lib/layman/rainyday
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d
/etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
/etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified
distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch
preserve-libs protect-owned sandbox sfperms splitdebug strict
unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv
usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--omit-dir-times --compress --force --whole-file --delete --stats
--human-readable --timeout=180 --exclude=/distfiles --exclude=/local
--exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding
bzip2 cairo cdda cdr cli consolekit cracklib crypt cxx dbus
declarative dri dts dvd dvdr emboss encode exif fam firefox flac
fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg kde kipi lcms ldap
libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls
nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit
ppds qt3support qt4 readline sdl seccomp semantic-desktop session
spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev
udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xcomposite
xinerama xml xscreensaver xv xvid zlib" ABI_X86="64"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci
emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0
intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions
alias auth_basic authn_alias authn_anon authn_dbm authn_default
authn_file authz_dbm authz_default authz_groupfile authz_host
authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock
deflate dir disk_cache env expires ext_filter file_cache filter
headers include info log_config logio mem_cache mime mime_magic
negotiation rewrite setenvif speling status unique_id userdir
usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets
stage tables krita karbon braindump author" CAMERAS="ptp2"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc"
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt
gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore
rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox
ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb
ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
presenter-minimizer" LINGUAS="ru" OFFICE_IMPLEMENTATION="libreoffice"
PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7"
PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21"
USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock
lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee
tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK,
LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Should I file a bug with Gentoo maintainers?

Thank you.

>
> --
> Nick
> _______________________________________________
> unixODBC-dev mailing list
> [hidden email]
> http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
_______________________________________________
unixODBC-dev mailing list
[hidden email]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Reply | Threaded
Open this post in threaded view
|

Re: SQLInstallerErrorW

Nick Gorham-2
On 19/03/16 16:44, Igor Korot wrote:

> Hi, Nick,
>
>
> On Sat, Mar 19, 2016 at 6:16 AM, Nick Gorham <[hidden email]> wrote:
>> On 19/03/16 05:33, Igor Korot wrote:
>>> Hi, (Nick),
>>> I installed unixodbc-2.3.2 the latest stable version for Gentoo).
>>> I turned on the unicode support as well.
>>>
>>> In my program I'm trying to use SQLConfigDataSource() call and my program
>>> is being compiled with UNICODE support.
>>>
>>> I did include odbcinst.h and I'm linking with -lodbcinst.
>>> All this inside the .so library.
>>>
>>> However, when running the application and trying to call dlopen(). I'm
>>> getting an
>>> error saying "undefined symbol SQLInstallerErrorW".
>>> I even tried to add -lodbc to the link command, but the same error
>>> persist.
>>
>> Checking the code it should be exported from libodbcinst.so. At least in the
>> current development code snapshot.
>>
>> nm /usr/local/lib/libodbcinst.so.2 | grep SQLInstallerErrorW
>> 0000000000005930 T SQLInstallerErrorW
> Apparently not the case here:
>
> [code]
> IgorDellGentoo / # cd /usr/lib
> IgorDellGentoo lib # ls -la libodbc*
> -rw-r--r-- 1 root root    935 Mar 19 13:19 libodbc.la
> lrwxrwxrwx 1 root root     16 Mar 19 13:19 libodbc.so -> libodbc.so.2.0.0
> lrwxrwxrwx 1 root root     16 Mar 19 13:19 libodbc.so.2 -> libodbc.so.2.0.0
> -rwxr-xr-x 1 root root 431792 Mar 19 13:19 libodbc.so.2.0.0
> -rw-r--r-- 1 root root    947 Mar 19 13:19 libodbccr.la
> lrwxrwxrwx 1 root root     18 Mar 19 13:19 libodbccr.so -> libodbccr.so.2.0.0
> lrwxrwxrwx 1 root root     18 Mar 19 13:19 libodbccr.so.2 -> libodbccr.so.2.0.0
> -rwxr-xr-x 1 root root  43072 Mar 19 13:19 libodbccr.so.2.0.0
> -rw-r--r-- 1 root root    959 Mar 19 13:19 libodbcinst.la
> lrwxrwxrwx 1 root root     20 Mar 19 13:19 libodbcinst.so ->
> libodbcinst.so.2.0.0
> lrwxrwxrwx 1 root root     20 Mar 19 13:19 libodbcinst.so.2 ->
> libodbcinst.so.2.0.0
> -rwxr-xr-x 1 root root  72160 Mar 19 13:19 libodbcinst.so.2.0.0
> IgorDellGentoo lib # nm libodbcinst.so | grep SQLInstallerErrorW
> nm: libodbcinst.so: no symbols
> IgorDellGentoo lib # cd ../lib64
> IgorDellGentoo lib64 # nm libodbcinst.so | grep SQLInstallerErrorW
> nm: libodbcinst.so: no symbols
> IgorDellGentoo lib64 # ls -la libodbc*
> -rw-r--r-- 1 root root    935 Mar 19 13:19 libodbc.la
> lrwxrwxrwx 1 root root     16 Mar 19 13:19 libodbc.so -> libodbc.so.2.0.0
> lrwxrwxrwx 1 root root     16 Mar 19 13:19 libodbc.so.2 -> libodbc.so.2.0.0
> -rwxr-xr-x 1 root root 431792 Mar 19 13:19 libodbc.so.2.0.0
> -rw-r--r-- 1 root root    947 Mar 19 13:19 libodbccr.la
> lrwxrwxrwx 1 root root     18 Mar 19 13:19 libodbccr.so -> libodbccr.so.2.0.0
> lrwxrwxrwx 1 root root     18 Mar 19 13:19 libodbccr.so.2 -> libodbccr.so.2.0.0
> -rwxr-xr-x 1 root root  43072 Mar 19 13:19 libodbccr.so.2.0.0
> -rw-r--r-- 1 root root    959 Mar 19 13:19 libodbcinst.la
> lrwxrwxrwx 1 root root     20 Mar 19 13:19 libodbcinst.so ->
> libodbcinst.so.2.0.0
> lrwxrwxrwx 1 root root     20 Mar 19 13:19 libodbcinst.so.2 ->
> libodbcinst.so.2.0.0
> -rwxr-xr-x 1 root root  72160 Mar 19 13:19 libodbcinst.so.2.0.0
> [/code]
>
> Info about the system:
>
> IgorDellGentoo lib64 # emerge -pv unixODBC
>
> These are the packages that would be merged, in order:
>
> Calculating dependencies... done!
> [ebuild   R    ] dev-db/unixODBC-2.3.2-r1::gentoo  USE="minimal
> unicode -odbcmanual -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
>
> Total: 1 package (1 reinstall), Size of downloads: 0 KiB
> IgorDellGentoo lib64 # emerge --info
> Portage 2.2.26 (python 2.7.9-final-0,
> default/linux/amd64/13.0/desktop/kde, gcc-4.8.4, glibc-2.21-r2,
> 3.12.20-gentoo x86_64)
> =================================================================
> System uname: Linux-3.12.20-gentoo-x86_64-Pentium-R-_Dual-Core_CPU_T4200_@_2.00GHz-with-gentoo-2.2
> KiB Mem:     2014420 total,    133140 free
> KiB Swap:    1913852 total,    977940 free
> Timestamp of repository gentoo: Mon, 29 Feb 2016 00:30:01 +0000
> sh bash 4.3_p33-r2
> ld GNU ld (Gentoo 2.24 p1.4) 2.24
> app-shells/bash:          4.3_p33-r2::gentoo
> dev-lang/perl:            5.20.2::gentoo
> dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
> dev-util/cmake:           3.2.2::gentoo
> dev-util/pkgconfig:       0.28-r2::gentoo
> sys-apps/baselayout:      2.2::gentoo
> sys-apps/openrc:          0.16.4::gentoo
> sys-apps/sandbox:         2.6-r1::gentoo
> sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
> sys-devel/automake:       1.12.6::gentoo, 1.13.4::gentoo,
> 1.14.1::gentoo, 1.15::gentoo
> sys-devel/binutils:       2.24-r3::gentoo
> sys-devel/gcc:            4.7.3-r1::gentoo, 4.8.4::gentoo
> sys-devel/gcc-config:     1.7.3::gentoo
> sys-devel/libtool:        2.4.6::gentoo
> sys-devel/make:           4.1-r1::gentoo
> sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
> sys-libs/glibc:           2.21-r2::gentoo
> Repositories:
>
> gentoo
>      location: /usr/portage
>      sync-type: rsync
>      sync-uri: rsync://rsync.gentoo.org/gentoo-portage
>      priority: -1000
>
> rainyday
>      location: /var/lib/layman/rainyday
>      masters: gentoo
>      priority: 0
>
> ACCEPT_KEYWORDS="amd64"
> ACCEPT_LICENSE="* -@EULA"
> CBUILD="x86_64-pc-linux-gnu"
> CFLAGS="-O2 -pipe -march=native"
> CHOST="x86_64-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d
> /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
> /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
> CXXFLAGS="-O2 -pipe -march=native"
> DISTDIR="/usr/portage/distfiles"
> FCFLAGS="-O2 -pipe"
> FEATURES="assume-digests binpkg-logs config-protect-if-modified
> distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch
> preserve-libs protect-owned sandbox sfperms splitdebug strict
> unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv
> usersandbox usersync"
> FFLAGS="-O2 -pipe"
> GENTOO_MIRRORS="http://distfiles.gentoo.org"
> LDFLAGS="-Wl,-O1 -Wl,--as-needed"
> MAKEOPTS="-j3"
> PKGDIR="/usr/portage/packages"
> PORTAGE_CONFIGROOT="/"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
> --omit-dir-times --compress --force --whole-file --delete --stats
> --human-readable --timeout=180 --exclude=/distfiles --exclude=/local
> --exclude=/packages"
> PORTAGE_TMPDIR="/var/tmp"
> USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding
> bzip2 cairo cdda cdr cli consolekit cracklib crypt cxx dbus
> declarative dri dts dvd dvdr emboss encode exif fam firefox flac
> fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg kde kipi lcms ldap
> libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls
> nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit
> ppds qt3support qt4 readline sdl seccomp semantic-desktop session
> spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev
> udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xcomposite
> xinerama xml xscreensaver xv xvid zlib" ABI_X86="64"
> ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci
> emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0
> intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
> APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions
> alias auth_basic authn_alias authn_anon authn_dbm authn_default
> authn_file authz_dbm authz_default authz_groupfile authz_host
> authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock
> deflate dir disk_cache env expires ext_filter file_cache filter
> headers include info log_config logio mem_cache mime mime_magic
> negotiation rewrite setenvif speling status unique_id userdir
> usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets
> stage tables krita karbon braindump author" CAMERAS="ptp2"
> COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
> CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc"
> GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt
> gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore
> rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox
> ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux"
> LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb
> ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
> presenter-minimizer" LINGUAS="ru" OFFICE_IMPLEMENTATION="libreoffice"
> PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7"
> PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21"
> USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock
> lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee
> tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
> Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK,
> LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS,
> PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
>
> Should I file a bug with Gentoo maintainers?
>
> Thank you.

Try building first from current release and see if that resolves the
problem.

--
Nick
_______________________________________________
unixODBC-dev mailing list
[hidden email]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Reply | Threaded
Open this post in threaded view
|

Re: SQLInstallerErrorW

Michael Jerris
In reply to this post by Igor Korot
It says no symbols at all in that file.  Wouldn't surprise me if gentoo patched and completely broke it.  Try building the real upstream sources yourself too before assuming it's something wrong with the actual software.

On Saturday, March 19, 2016, Igor Korot <[hidden email]> wrote:
Hi, Nick,


On Sat, Mar 19, 2016 at 6:16 AM, Nick Gorham <<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;nick@lurcher.org&#39;)">nick@...> wrote:
> On 19/03/16 05:33, Igor Korot wrote:
>>
>> Hi, (Nick),
>> I installed unixodbc-2.3.2 the latest stable version for Gentoo).
>> I turned on the unicode support as well.
>>
>> In my program I'm trying to use SQLConfigDataSource() call and my program
>> is being compiled with UNICODE support.
>>
>> I did include odbcinst.h and I'm linking with -lodbcinst.
>> All this inside the .so library.
>>
>> However, when running the application and trying to call dlopen(). I'm
>> getting an
>> error saying "undefined symbol SQLInstallerErrorW".
>> I even tried to add -lodbc to the link command, but the same error
>> persist.
>
>
> Checking the code it should be exported from libodbcinst.so. At least in the
> current development code snapshot.
>
> nm /usr/local/lib/libodbcinst.so.2 | grep SQLInstallerErrorW
> 0000000000005930 T SQLInstallerErrorW

Apparently not the case here:

[code]
IgorDellGentoo / # cd /usr/lib
IgorDellGentoo lib # ls -la libodbc*
-rw-r--r-- 1 root root    935 Mar 19 13:19 libodbc.la
lrwxrwxrwx 1 root root     16 Mar 19 13:19 libodbc.so -> libodbc.so.2.0.0
lrwxrwxrwx 1 root root     16 Mar 19 13:19 libodbc.so.2 -> libodbc.so.2.0.0
-rwxr-xr-x 1 root root 431792 Mar 19 13:19 libodbc.so.2.0.0
-rw-r--r-- 1 root root    947 Mar 19 13:19 libodbccr.la
lrwxrwxrwx 1 root root     18 Mar 19 13:19 libodbccr.so -> libodbccr.so.2.0.0
lrwxrwxrwx 1 root root     18 Mar 19 13:19 libodbccr.so.2 -> libodbccr.so.2.0.0
-rwxr-xr-x 1 root root  43072 Mar 19 13:19 libodbccr.so.2.0.0
-rw-r--r-- 1 root root    959 Mar 19 13:19 libodbcinst.la
lrwxrwxrwx 1 root root     20 Mar 19 13:19 libodbcinst.so ->
libodbcinst.so.2.0.0
lrwxrwxrwx 1 root root     20 Mar 19 13:19 libodbcinst.so.2 ->
libodbcinst.so.2.0.0
-rwxr-xr-x 1 root root  72160 Mar 19 13:19 libodbcinst.so.2.0.0
IgorDellGentoo lib # nm libodbcinst.so | grep SQLInstallerErrorW
nm: libodbcinst.so: no symbols
IgorDellGentoo lib # cd ../lib64
IgorDellGentoo lib64 # nm libodbcinst.so | grep SQLInstallerErrorW
nm: libodbcinst.so: no symbols
IgorDellGentoo lib64 # ls -la libodbc*
-rw-r--r-- 1 root root    935 Mar 19 13:19 libodbc.la
lrwxrwxrwx 1 root root     16 Mar 19 13:19 libodbc.so -> libodbc.so.2.0.0
lrwxrwxrwx 1 root root     16 Mar 19 13:19 libodbc.so.2 -> libodbc.so.2.0.0
-rwxr-xr-x 1 root root 431792 Mar 19 13:19 libodbc.so.2.0.0
-rw-r--r-- 1 root root    947 Mar 19 13:19 libodbccr.la
lrwxrwxrwx 1 root root     18 Mar 19 13:19 libodbccr.so -> libodbccr.so.2.0.0
lrwxrwxrwx 1 root root     18 Mar 19 13:19 libodbccr.so.2 -> libodbccr.so.2.0.0
-rwxr-xr-x 1 root root  43072 Mar 19 13:19 libodbccr.so.2.0.0
-rw-r--r-- 1 root root    959 Mar 19 13:19 libodbcinst.la
lrwxrwxrwx 1 root root     20 Mar 19 13:19 libodbcinst.so ->
libodbcinst.so.2.0.0
lrwxrwxrwx 1 root root     20 Mar 19 13:19 libodbcinst.so.2 ->
libodbcinst.so.2.0.0
-rwxr-xr-x 1 root root  72160 Mar 19 13:19 libodbcinst.so.2.0.0
[/code]

Info about the system:

IgorDellGentoo lib64 # emerge -pv unixODBC

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-db/unixODBC-2.3.2-r1::gentoo  USE="minimal
unicode -odbcmanual -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
IgorDellGentoo lib64 # emerge --info
Portage 2.2.26 (python 2.7.9-final-0,
default/linux/amd64/13.0/desktop/kde, gcc-4.8.4, glibc-2.21-r2,
3.12.20-gentoo x86_64)
=================================================================
System uname: Linux-3.12.20-gentoo-x86_64-Pentium-R-_Dual-Core_CPU_T4200_@_2.00GHz-with-gentoo-2.2
KiB Mem:     2014420 total,    133140 free
KiB Swap:    1913852 total,    977940 free
Timestamp of repository gentoo: Mon, 29 Feb 2016 00:30:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r2::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.16.4::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.12.6::gentoo, 1.13.4::gentoo,
1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.7.3-r1::gentoo, 4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

rainyday
    location: /var/lib/layman/rainyday
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d
/etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
/etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified
distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch
preserve-libs protect-owned sandbox sfperms splitdebug strict
unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv
usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--omit-dir-times --compress --force --whole-file --delete --stats
--human-readable --timeout=180 --exclude=/distfiles --exclude=/local
--exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding
bzip2 cairo cdda cdr cli consolekit cracklib crypt cxx dbus
declarative dri dts dvd dvdr emboss encode exif fam firefox flac
fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg kde kipi lcms ldap
libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls
nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit
ppds qt3support qt4 readline sdl seccomp semantic-desktop session
spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev
udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xcomposite
xinerama xml xscreensaver xv xvid zlib" ABI_X86="64"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci
emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0
intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions
alias auth_basic authn_alias authn_anon authn_dbm authn_default
authn_file authz_dbm authz_default authz_groupfile authz_host
authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock
deflate dir disk_cache env expires ext_filter file_cache filter
headers include info log_config logio mem_cache mime mime_magic
negotiation rewrite setenvif speling status unique_id userdir
usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets
stage tables krita karbon braindump author" CAMERAS="ptp2"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc"
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt
gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore
rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox
ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb
ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
presenter-minimizer" LINGUAS="ru" OFFICE_IMPLEMENTATION="libreoffice"
PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7"
PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21"
USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock
lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee
tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK,
LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Should I file a bug with Gentoo maintainers?

Thank you.

>
> --
> Nick
> _______________________________________________
> unixODBC-dev mailing list
> <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;unixODBC-dev@mailman.unixodbc.org&#39;)">unixODBC-dev@...
> http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
_______________________________________________
unixODBC-dev mailing list
<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;unixODBC-dev@mailman.unixodbc.org&#39;)">unixODBC-dev@...
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev

_______________________________________________
unixODBC-dev mailing list
[hidden email]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Reply | Threaded
Open this post in threaded view
|

Re: SQLInstallerErrorW

Nick Gorham-2
On 19/03/16 17:35, Michael Jerris wrote:
> It says no symbols at all in that file.  Wouldn't surprise me if
> gentoo patched and completely broke it.  Try building the real
> upstream sources yourself too before assuming it's something wrong
> with the actual software.

They may have just stripped the symbols from the file, thats entirely
possible,

--
Nick
_______________________________________________
unixODBC-dev mailing list
[hidden email]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Reply | Threaded
Open this post in threaded view
|

Re: SQLInstallerErrorW

Tom Hughes
On 19/03/16 17:40, Nick Gorham wrote:
> On 19/03/16 17:35, Michael Jerris wrote:
>> It says no symbols at all in that file.  Wouldn't surprise me if
>> gentoo patched and completely broke it.  Try building the real
>> upstream sources yourself too before assuming it's something wrong
>> with the actual software.
>
> They may have just stripped the symbols from the file, thats entirely
> possible,

The static symbol table will have been stripped I'm sure, but the
dynamic one (which is what the dynamic linker uses) shouldn't have been.

You need to use "nm --dynamic" to inspect that though.

Tom

--
Tom Hughes ([hidden email])
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
_______________________________________________
unixODBC-dev mailing list
[hidden email]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev