Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

UnixODBC 2.2.12

 
SOLVED
Go to solution
James T Horn
Frequent Advisor

UnixODBC 2.2.12

Has anyone been able to successfully build UnixODBC for Openvms? Just to compile it I get errors:

extern int uodbc_vsnprintf (char *str, size_t count, const char *fmt, va_list args);
......................................................................^
%CC-E-PARMTYPLIST, Ill-formed parameter type list.
at line number 55 in file ODBCSRC:[INCLUDE]UODBC_EXTRAS.H;1

and

strvalue = va_arg (args, void *);
.................................^
%CC-E-BADEXPR, Invalid expression.
at line number 343 in file ODBCSRC:[EXTRAS]SNPRINTF.C;1

9 REPLIES 9
Hoff
Honored Contributor
Solution

Re: UnixODBC 2.2.12

This is the http://www.unixodbc.org/ stuff?

The second error is probably collateral damage resulting from the first error. The second is trying to pull in an argument from the list, the first is probably the declaration of the variable-length argument list.

There's probably an include file or two missing, and specifically one related to variable-argument (VA) list processing. The stdarg.h include file is one spot where you can import the VA stuff from. There are others. (Older OpenVMS and specifically older C and older CRTL didn't have the stdarg.h stuff. And older OpenVMS C had very different VA support.)

The vsnprintf call is present in OpenVMS V7.3-2 and later. How far back are you working? (And can you upgrade?)

There's a verbose mode in the compilation error report settings, if you're interested.

I've ported gazillions of C packages to OpenVMS over the years. Missing include files are fairly common -- older C was far more tolerant of these sorts of things, and of defaulted definitions. Some programmers have come to depend on this.

Need more formal help? Contact me offline.

Stephen Hoffman
HoffmanLabs
James T Horn
Frequent Advisor

Re: UnixODBC 2.2.12

>This is the http://www.unixodbc.org/ stuff?

Yes, I'm trying to build the unixODBC for OpenVMS.

Re: UnixODBC 2.2.12

Looks like #include is missing ?
Craig A Berry
Honored Contributor

Re: UnixODBC 2.2.12

I updated the unixODBC port, but I think it's been about 4 years so I'm sure there are changes. You won't need the homegrown dlopen() and probably some other things the CRTL now does for you, depending on your VMS version.

You might look in [.vms]vms_build.com and see if the vmsconfig.h that it creates on the fly needs any additions, such as various HAVE_xxx type macros.
James T Horn
Frequent Advisor

Re: UnixODBC 2.2.12

Anyone know where I might find a version of unixODBC for OpenVMS that will compile?
Hoff
Honored Contributor

Re: UnixODBC 2.2.12

I don't know where there's a version that compiles, but I see:

http://mail.easysoft.com/pipermail/unixodbc-dev/2005-January/000346.html

It looks like the include files might still be busted, or the compiler or versions or such are off somewhat, somehow.

Also noticed these folks (no connections with same, no experience with same) have various ODBC products for OpenVMS:

http://www.easysoft.com/

Pulled down the bits from the unixODBC site; taking a quick look at them.
tdreher
Occasional Visitor

Re: UnixODBC 2.2.12

I would like to build UnixODBC on VMS Alpha (8.3), and I encounter the same difficulties as James has described in his post. This is now a year later and UnixODBC 2.2.13 is just about to be released. I followed an old post: http://osdir.com/ml/db.unixodbc.devel/2005-01/msg00021.html where Eric Sharkey showed how he has fixed errors in the build procedure and in one of the .c source files. (2.2.10) This was apparantly all that was needed to make it work. But now, when compiling with the instructions from that post, I still get heaps of compilation errors (see attachment).
Has any of you gone further pursuing this or any help is appreciated.
Craig A Berry
Honored Contributor

Re: UnixODBC 2.2.12

Pulling unixODBC source from current CVS, i.e., the development stream leading up to 2.2.13, I did not see any compile errors using HP C V7.1-015 on OpenVMS Alpha V8.3, but there were a number of warnings and a couple of other nits I encountered when actually building a driver against it. These were fairly easily resolved and it looks like my patch for them will be accepted:

http://mail.easysoft.com/pipermail/unixodbc-dev/2008-May/001178.html


Craig A Berry
Honored Contributor

Re: UnixODBC 2.2.12

My changes are now in and available in a pre-release snapshot of 2.2.13 at:

ftp://ftp.easysoft.com/pub/unixODBC/unixODBC-2.2.13pre.tar.gz

Please try it with your driver(s) in your environment very soon if you want 2.2.13 to work for you.