FreeTDS User Guide: A Guide to Installing, Configuring, and Running FreeTDS | ||
---|---|---|
Prev | Chapter 2. Build FreeTDS | Next |
The FreeTDS ODBC driver compiles under
VC++; .dsw and .dsp files are included in the win32 directory.
Dev-C++
MingW
gcc under cygwin.
The Borland Builder 6.0 compiler is also reported to work, but requires some tweaking of the #include statements. We would apply any patches that make this work cleanly.
From the Department of Double Emulation: FreeTDS builds as a .dll under WINE and as a .a under Interix. See the mailing list archives (second half of 2003) for details.
FreeTDS will probably build and run on most versions of OpenVMS Alpha 7.0 and later with DEC/Compaq C 6.0 or later. Other prerequisites:
gunzip |
vmstar |
MMS or MMK |
Decompress and unpack the source archive using gunzip and vmstar. If you are untarring on an ODS-5 disk, you should use the /ODS2 or -o option to create universally VMS-friendly filenames; otherwise the build will fail to locate some files.
Set default to the top-level source directory and run the configuration script:
$ @[.vms]configure
This creates a descrip.mms in the top-level source directory which you may execute by simply running MMS (if you have the Module Management System that is part of DECset) or MMK (a freeware MMS alternative available from www.madgoat.com).
Further information can be found in the in the source distribution.
As of this writing ($Date: 2003/12/29 15:53:21 $), the regular distribution will not compile on OS X. Current CVS code works, but the libtool we use (1.4a) creates a small problem. Eventually, we'll upgrade our libtool, but that's bound to have other ramifications we'd rather not deal with right now. Instead, we offer the following patch to the distributed libtool.
Figure 2-1. libtool patch for OS X 10.3
--- libtool-orig Thu Nov 6 15:34:53 2003 +++ libtool Thu Nov 6 15:38:45 2003 @@ -202,7 +202,7 @@ old_archive_from_expsyms_cmds="" # Commands used to build and install a shared archive. -archive_cmds="\$CC \$(if test .\$module = .yes; then echo -bundle; else echo -dynamiclib; fi) \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$linkopts -install_name\$rpath/\$soname \$verstring" +archive_cmds="\$CC \$(if test .\$module = .yes; then echo -bundle; else echo -dynamiclib; fi) \$allow_undefined_flag -o \$lib \$libobjs \$linkopts -install_name\$rpath/\$soname \$verstring" archive_expsym_cmds="" postinstall_cmds="" postuninstall_cmds=""
This patch was contributed by <Daniel Fazekas>, and has been used successfully by three people that we know of. As you can see, the only effect is to remove \$deplibs from line 202.
OS X includes ODBC header files, which configure will detect, causing the FreeTDS ODBC driver to be built. You may with to use the --disable-odbc option if you don't plan to use ODBC.