I am downloading MySql for OpenVMS.
I wonder if I will find a programming interface in the download, or
merely a user interface.
I need a programming interface so I can get data from the instrument
into an existing Fortran program.
(the instrument also has a serial interface, but we would prefer to
use ethernet.)
SYS$COMMON:[MYSQL051.INCLUDE]
SYS$COMMON:[MYSQL051.VMS.LIB]MYSQLCLIENT_MIXED.OLB
SYS$COMMON:[MYSQL051.VMS.LIB]MYSQLCLIENT_UPPER.OLB
should include a MySQL client lib (MySQL C API).
Arne
Thanks.
Do I need to run the server on VMS to use the client to access this
other system, the instrument that I want to read?
Where is the documentation on the client interface?
> Do I need to run the server on VMS to use the client to access this
> other system, the instrument that I want to read?
I would not think so.
> Where is the documentation on the client interface?
It is online at:
http://dev.mysql.com/doc/refman/5.1/en/c.html
Arne
I am trying my first links, but I get lot of errors.
I am starting with a small C program that calls mysql_init.
For some reason, I have to link to SYS$COMMON:[MYSQL051.VMS.LIB]
MYSQLCLIENT_UPPER.OLB. I am not using upper case, but I can't
link to SYS$COMMON:[MYSQL051.VMS.LIB]MYSQLCLIENT_MIXED.OLB for some
reason.
Anyway, I get messages for a bunch of unresolved symbols in client. I
have included all available .OLB files in the link, but the symbols
remain usresolved.
I have located some of the symbols in other OLB files, but they are
OLB files
with MIXED in the name. There does not seem to be a full set of OLB
files with upper case symbols. But I don't even know why I need to
link to upper case
symbols, it makes no sense to me.
The messages don't seem to be indentifying real problems for the
resulting exe file.
The exe file seems to run fine, but of course I can't fully check it
out this with only a call to mysql_init to make sure things are really
going to work.
Does anyone know how to resolve this symbols in the link?
Publish the list of symbols here. Access to the .MAP file would also help.
You did create one, didn't you?
--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG
http://www.quirkfactory.com/popart/asskey/eqn2.png
"Well my son, life is like a beanstalk, isn't it?"
Try:
$ cc /include=sys$common:[mysql051.include]/names=as_is foobar
$ link foobar+ -
sys$common:[mysql051.vms.lib]mysqlclient_mixed/lib+ -
sys$common:[mysql051.vms.lib]libssl_mixed/lib+ -
sys$common:[mysql051.vms.lib]libcrypto_mixed/lib
Arne
Thanks!
That cleared up the bulk of the link messages. Here are the ones that
I
still get:
%LINK-W-MULPSC, conflicting attributes for psect mysql_port
in module client file DSA0:[VMS$COMMON.MYSQL051.VMS.LIB]
MYSQLCLIENT_MIXE
D.OLB;1
%LINK-W-MULPSC, conflicting attributes for psect mysql_unix_port
in module client file DSA0:[VMS$COMMON.MYSQL051.VMS.LIB]
MYSQLCLIENT_MIXE
D.OLB;1
%LINK-W-MULPSC, conflicting attributes for psect sql_protocol_typelib
in module client file DSA0:[VMS$COMMON.MYSQL051.VMS.LIB]
MYSQLCLIENT_MIXE
D.OLB;1
%LINK-W-NUDFSYMS, 2 undefined symbols:
%LINK-I-UDFSYM, compress
%LINK-I-UDFSYM, uncompress
%LINK-W-USEUNDEF, undefined symbol compress referenced
in psect $LINK$ offset %X00000050
in module my_compress file DSA0:[VMS$COMMON.MYSQL051.VMS.LIB]
MYSQLCLIENT
_MIXED.OLB;1
%LINK-W-USEUNDEF, undefined symbol uncompress referenced
in psect $LINK$ offset %X000000B0
in module my_compress file DSA0:[VMS$COMMON.MYSQL051.VMS.LIB]
MYSQLCLIENT
_MIXED.OLB;1
Note that you could get more responses on the "MySQL for OpenVMS"
forum here : http://www.pi-net.dyndns.org/piforum/index.php
> %LINK-W-MULPSC, conflicting attributes for psect mysql_port
> in module client file DSA0:[VMS$COMMON.MYSQL051.VMS.LIB]
> MYSQLCLIENT_MIXE
> D.OLB;1
> %LINK-W-MULPSC, conflicting attributes for psect mysql_unix_port
> in module client file DSA0:[VMS$COMMON.MYSQL051.VMS.LIB]
> MYSQLCLIENT_MIXE
> D.OLB;1
> %LINK-W-MULPSC, conflicting attributes for psect sql_protocol_typelib
> in module client file DSA0:[VMS$COMMON.MYSQL051.VMS.LIB]
> MYSQLCLIENT_MIXE
> D.OLB;1
You need to find where the attributes are set for mysql_port
mysql_unix_port, and sql_protocol_typelib, and make them match.
If they are set in code that you can't change, you can force them
to match via a LINK options file.
> %LINK-W-NUDFSYMS, 2 undefined symbols:
> %LINK-I-UDFSYM, compress
> %LINK-I-UDFSYM, uncompress
These two symbols are not part of any library you used. They may
have been compiled to COMPRESS and UNCOMPRESS, or they may just be
missing.
You can libr/list/names to see if they are in any of the libraries
you used, and whether they were built with or without case
preservation.
uncompress is not in any of the libraries.
from a google search of "mysql uncompress", it looks like I need the
zlib library to resolve that symbol.
--
Mike R.
Home: http://alpha.mike-r.com/
QOTD: http://alpha.mike-r.com/php/qotd.php
No Micro$oft products were used in the URLs above, or in preparing this message.
Recommended reading: http://www.catb.org/~esr/faqs/smart-questions.html#before
The psect conflicts were because I compiling with CC/EXTER=COMMON