Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

WwWXxX, udp high ports, d-link extract firmware dsl-2750u, wwwwxxxxx.2G, yxxxcom, WWWXXX, ftp://192.168.100.100, wwwxxx 100, www.xxxcon, wwwxxx

Links

XODOX
Impressum

#1: Linking on LINUX with ODBC drivers - missing libodbcinst.so.1

Posted on 2011-04-14 18:35:13 by mike.rawlins

--_004_825744553010424695E4355C4DD3FDBD128B39AE41AMERICASMAI L0_
Content-Type: multipart/alternative;
boundary="_000_825744553010424695E4355C4DD3FDBD128B39AE41AME RICASMAIL0_"

--_000_825744553010424695E4355C4DD3FDBD128B39AE41AMERICASMAI L0_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

I have an ODBC application on LINUX that needs to access databases on other=
machines using ODBC. I've downloaded the myodbc driver tarball for LINUX. =
I have a demo program that works with other drivers, but when I try to lin=
k to just the MYSql ODBC drivers I get the following:

make
g++ -g -m32 -o demoodbc -I../include demoodbc.c -L../lib -lmyodbc5 -lc
/usr/bin/ld: warning: libodbcinst.so.1, needed by ../lib/libmyodbc5.so, not=
found (try using -rpath or -rpath-link)
.../lib/libmyodbc5.so: undefined reference to `SQLSetConfigMode'
.../lib/libmyodbc5.so: undefined reference to `SQLValidDSN'
.../lib/libmyodbc5.so: undefined reference to `SQLInstallDriverEx'
.../lib/libmyodbc5.so: undefined reference to `SQLGetPrivateProfileString'
.../lib/libmyodbc5.so: undefined reference to `SQLRemoveDSNFromIni'
.../lib/libmyodbc5.so: undefined reference to `SQLPostInstallerError'
.../lib/libmyodbc5.so: undefined reference to `SQLGetConfigMode'
.../lib/libmyodbc5.so: undefined reference to `SQLWritePrivateProfileString'
.../lib/libmyodbc5.so: undefined reference to `SQLRemoveDriver'
.../lib/libmyodbc5.so: undefined reference to `SQLWriteDSNToIni'
collect2: ld returned 1 exit status
make: *** [demoodbc] Error 1

This shared library file was not in the distribution. Any idea where I can =
get it?

Thanks,

Mike


Mike Rawlins
Sr. Software Engineer
Chair, ASC X12 Technical Assessment Subcommittee
18111 Preston Road, Suite 600
Dallas, TX 75252
+1 972.643.3101 direct
mike.rawlins@gxs.com<mailto:mike.rawlins@mike.rawlins@inovis.com>
www.gxs.com<http://www.inovis.com/>
GXS Blog<http://blogs.inovis.com/>
[cid:image001.gif@01CBFA97.320587A0]


--_000_825744553010424695E4355C4DD3FDBD128B39AE41AMERICASMAI L0_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40" xmlns:ns0=3D"urn:schemas-microsoft-com:office:s=
marttags"><head><meta http-equiv=3DContent-Type content=3D"text/html; chars=
et=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 12 (filtere=
d medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
..shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
..MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue vli=
nk=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><a name=3D"OLE_L=
INK2"></a><a name=3D"OLE_LINK1"></a><a name=3D"OLE_LINK4"></a><a name=3D"OL=
E_LINK3">Hi,<o:p></o:p></a></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p=
class=3DMsoNormal>I have an ODBC application on LINUX that needs to access=
databases on other machines using ODBC. I&#8217;ve downloaded the myodbc d=
river tarball for LINUX.&nbsp; I have a demo program that works with other =
drivers, but when I try to link to just the MYSql ODBC drivers I get the fo=
llowing:<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=
=3DMsoNormal>make<o:p></o:p></p><p class=3DMsoNormal>g++ -g -m32 -o demoodb=
c -I../include demoodbc.c -L../lib -lmyodbc5 -lc<o:p></o:p></p><p class=3DM=
soNormal>/usr/bin/ld: warning: libodbcinst.so.1, needed by ../lib/libmyodbc=
5.so, not found (try using -rpath or -rpath-link)<o:p></o:p></p><p class=3D=
MsoNormal>../lib/libmyodbc5.so: undefined reference to `SQLSetConfigMode'<o=
:p></o:p></p><p class=3DMsoNormal>../lib/libmyodbc5.so: undefined reference=
to `SQLValidDSN'<o:p></o:p></p><p class=3DMsoNormal>../lib/libmyodbc5.so: =
undefined reference to `SQLInstallDriverEx'<o:p></o:p></p><p class=3DMsoNor=
mal>../lib/libmyodbc5.so: undefined reference to `SQLGetPrivateProfileStrin=
g'<o:p></o:p></p><p class=3DMsoNormal>../lib/libmyodbc5.so: undefined refer=
ence to `SQLRemoveDSNFromIni'<o:p></o:p></p><p class=3DMsoNormal>../lib/lib=
myodbc5.so: undefined reference to `SQLPostInstallerError'<o:p></o:p></p><p=
class=3DMsoNormal>../lib/libmyodbc5.so: undefined reference to `SQLGetConf=
igMode'<o:p></o:p></p><p class=3DMsoNormal>../lib/libmyodbc5.so: undefined =
reference to `SQLWritePrivateProfileString'<o:p></o:p></p><p class=3DMsoNor=
mal>../lib/libmyodbc5.so: undefined reference to `SQLRemoveDriver'<o:p></o:=
p></p><p class=3DMsoNormal>../lib/libmyodbc5.so: undefined reference to `SQ=
LWriteDSNToIni'<o:p></o:p></p><p class=3DMsoNormal>collect2: ld returned 1 =
exit status<o:p></o:p></p><p class=3DMsoNormal>make: *** [demoodbc] Error 1=
<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNorm=
al>This shared library file was not in the distribution. Any idea where I c=
an get it?<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=
=3DMsoNormal>Thanks,<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></=
p><p class=3DMsoNormal>Mike<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;<=
/o:p></p><p class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"=
Verdana","sans-serif";color:gray'><o:p>&nbsp;</o:p></span></p><p class=3DMs=
oNormal><span style=3D'font-size:9.0pt;font-family:"Verdana","sans-serif";c=
olor:gray'>Mike Rawlins<br>Sr. Software Engineer<br>Chair, ASC X12 Technica=
l Assessment Subcommittee<o:p></o:p></span></p><p class=3DMsoNormal><span s=
tyle=3D'font-size:9.0pt;font-family:"Verdana","sans-serif"'><ns0:Street><ns=
0:address><span style=3D'color:gray'>18111 Preston Road, Suite 600<br></spa=
n></ns0:address></ns0:Street><span style=3D'color:gray'>Dallas,&nbsp;TX 752=
52<br>+1 972.643.3101 direct</span></span><i><span style=3D'font-size:9.0pt=
;font-family:"Verdana","sans-serif";color:gray'><o:p></o:p></span></i></p><=
p class=3DMsoNormal><span style=3D'font-size:9.0pt;font-family:"Verdana","s=
ans-serif";color:#999999'><a href=3D"mailto:mike.rawlins@mike.rawlins@inovi=
s.com" title=3D"mailto:jay.melton@inovis.com"><span lang=3DFR style=3D'colo=
r:#999999'>mike.rawlins@gxs.com</span></a></span><span lang=3DFR style=3D'f=
ont-size:9.0pt;font-family:"Verdana","sans-serif";color:#999 999'><o:p></o:p=
></span></p><p class=3DMsoNormal><span style=3D'font-size:9.0pt;font-family=
:"Verdana","sans-serif";color:#999999'><a href=3D"http://www.inovis.com/"><=
span lang=3DFR style=3D'color:#999999'>www.gxs.com</span></a> </span><span =
lang=3DFR style=3D'font-size:9.0pt;font-family:"Verdana","sans-serif"; color=
:#999999'><o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'font-si=
ze:9.0pt;font-family:"Verdana","sans-serif";color:#999999'><a href=3D"http:=
//blogs.inovis.com/"><span lang=3DFR style=3D'color:#999999'>GXS Blog</span=
></a></span><span lang=3DFR style=3D'font-size:9.0pt;font-family:"Verdana",=
"sans-serif";color:#999999'><o:p></o:p></span></p><p class=3DMsoNormal><img=
border=3D0 width=3D175 height=3D88 id=3D"Picture_x0020_1" src=3D"cid:image=
001.gif@01CBFA97.320587A0" alt=3D"GXS_2color_pos"><o:p></o:p></p><p class=
=3DMsoNormal><o:p>&nbsp;</o:p></p></div></body></html>=

--_000_825744553010424695E4355C4DD3FDBD128B39AE41AMERICASMAI L0_--

--_004_825744553010424695E4355C4DD3FDBD128B39AE41AMERICASMAI L0_--

Report this message

#2: Re: Linking on LINUX with ODBC drivers - missing libodbcinst.so.1

Posted on 2011-04-14 18:53:19 by Martin.Evans

On 14/04/11 17:35, mike.rawlins@gxs.com wrote:
> Hi,
>
> I have an ODBC application on LINUX that needs to access databases on o=
ther machines using ODBC. I=92ve downloaded the myodbc driver tarball for=
LINUX. I have a demo program that works with other drivers, but when I t=
ry to link to just the MYSql ODBC drivers I get the following:
>
> make
>
> g++ -g -m32 -o demoodbc -I../include demoodbc.c -L../lib -lmyodbc5 -lc
>
> /usr/bin/ld: warning: libodbcinst.so.1, needed by ../lib/libmyodbc5.so,=
not found (try using -rpath or -rpath-link)
>
> ../lib/libmyodbc5.so: undefined reference to `SQLSetConfigMode'
>
> ../lib/libmyodbc5.so: undefined reference to `SQLValidDSN'
>
> ../lib/libmyodbc5.so: undefined reference to `SQLInstallDriverEx'
>
> ../lib/libmyodbc5.so: undefined reference to `SQLGetPrivateProfileStrin=
g'
>
> ../lib/libmyodbc5.so: undefined reference to `SQLRemoveDSNFromIni'
>
> ../lib/libmyodbc5.so: undefined reference to `SQLPostInstallerError'
>
> ../lib/libmyodbc5.so: undefined reference to `SQLGetConfigMode'
>
> ../lib/libmyodbc5.so: undefined reference to `SQLWritePrivateProfileStr=
ing'
>
> ../lib/libmyodbc5.so: undefined reference to `SQLRemoveDriver'
>
> ../lib/libmyodbc5.so: undefined reference to `SQLWriteDSNToIni'
>
> collect2: ld returned 1 exit status
>
> make: *** [demoodbc] Error 1
>
> This shared library file was not in the distribution. Any idea where I =
can get it?
>
> Thanks,
>
> Mike
>
> Mike Rawlins
> Sr. Software Engineer
> Chair, ASC X12 Technical Assessment Subcommittee
>
> 18111 Preston Road, Suite 600
> Dallas, TX 75252
> +1 972.643.3101 direct//
>
> mike.rawlins@gxs.com <mailto:mike.rawlins@mike.rawlins@inovis.com>
>
> www.gxs.com <http://www.inovis.com/>
>
> GXS Blog <http://blogs.inovis.com/>
>
> GXS_2color_pos
>

You need to install the unixODBC driver manager. Depending on your linux =
distribution you might be able to install it as a package in which case l=
ook for unixodbc-bin or something like that. It will supply libodbc.so an=
d libodbcinst.so.

Martin
--=20
Martin J. Evans
Easysoft Limited
http://www.easysoft.com

--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=3Dgcdmo-myodbc@m.gmane.o rg

Report this message

#3: RE: Linking on LINUX with ODBC drivers - missing libodbcinst.so.1

Posted on 2011-04-14 19:01:47 by mike.rawlins

Martin Evans wrote:

"You need to install the unixODBC driver manager. Depending on your linux d=
istribution you might be able to install it as a package in which case look=
for unixodbc-bin or something like that. It will supply libodbc.so and lib=
odbcinst.so."

Thanks, that's a start, but in running a search and looking over the downlo=
ads I can't see anything like that. Might it be available under a differen=
t name?

If it helps, I'm building the application on a machine that does not have M=
ySQL installed. Do I need it, or can I just build with the ODBC drivers and=
the driver manager that you reference?


Mike Rawlins
Sr. Software Engineer
Chair, ASC X12 Technical Assessment Subcommittee
18111 Preston Road, Suite 600
Dallas,=A0TX 75252
+1 972.643.3101 direct
mike.rawlins@gxs.com
www.gxs.com=20
GXS Blog

--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=3Dgcdmo-myodbc@m.gmane.o rg

Report this message

#4: RE: Linking on LINUX with ODBC drivers - missing libodbcinst.so.1

Posted on 2011-04-14 19:15:51 by mike.rawlins

Martin Evans wrote:

"You need to install the unixODBC driver manager. Depending on your linux d=
istribution you might be able to install it as a package in which case look=
for unixodbc-bin or something like that. It will supply libodbc.so and lib=
odbcinst.so."

And I responded:

Thanks, that's a start, but in running a search and looking over the downlo=
ads I can't see anything like that. Might it be available under a differen=
t name?

If it helps, I'm building the application on a machine that does not have M=
ySQL installed. Do I need it, or can I just build with the ODBC drivers and=
the driver manager that you reference?

Resolution:

It looks as if this is a generic Linux package and not specifically a MySQL=
package. I'm working with my systems admin to get it installed.

When all else fails read the directions (INSTALL in this case).


Mike Rawlins
Sr. Software Engineer
Chair, ASC X12 Technical Assessment Subcommittee
18111 Preston Road, Suite 600
Dallas,=A0TX 75252
+1 972.643.3101 direct
mike.rawlins@gxs.com
www.gxs.com=20
GXS Blog



-----Original Message-----
From: mike.rawlins@gxs.com [mailto:mike.rawlins@gxs.com]=20
Sent: Thursday, April 14, 2011 12:02 PM
To: myodbc@lists.mysql.com
Subject: RE: Linking on LINUX with ODBC drivers - missing libodbcinst.so.1

Martin Evans wrote:

"You need to install the unixODBC driver manager. Depending on your linux d=
istribution you might be able to install it as a package in which case look=
for unixodbc-bin or something like that. It will supply libodbc.so and lib=
odbcinst.so."

Thanks, that's a start, but in running a search and looking over the downlo=
ads I can't see anything like that. Might it be available under a differen=
t name?

If it helps, I'm building the application on a machine that does not have M=
ySQL installed. Do I need it, or can I just build with the ODBC drivers and=
the driver manager that you reference?


Mike Rawlins
Sr. Software Engineer
Chair, ASC X12 Technical Assessment Subcommittee
18111 Preston Road, Suite 600
Dallas,=A0TX 75252
+1 972.643.3101 direct
mike.rawlins@gxs.com
www.gxs.com=20
GXS Blog

--=20
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=3Dmike.rawlins@gxs.c=
om


--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=3Dgcdmo-myodbc@m.gmane.o rg

Report this message