Opened 8 years ago

Closed 8 years ago

#51636 closed defect (fixed)

freetds fails to build with error: Invalid value specified for --with-tdsver: 8.0

Reported by: jdgoettsch (Jeffrey Goettsch) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: kiwiroy (Roy Storey), smithsp (Sterling Smith)
Port: freetds

Description

Fails to build on Mac OS X 10.10.5:

$ uname -a
Darwin 14.5.0 Darwin Kernel Version 14.5.0: Thu Apr 21 20:40:54 PDT 2016; root:xnu-2782.50.3~1/RELEASE_X86_64 x86_64

I believe the relevant error is:

:info:configure configure: error: Invalid value specified for --with-tdsver: 8.0
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_freetds/freetds/work/freetds-1.00.1" && ./configure --prefix=/opt/local --disable-silent-rules --includedir=/opt/local/include/freetds --sysconfdir=/opt/local/etc/freetds --with-libiconv-prefix=/opt/local --enable-msdblib --with-tdsver=8.0 
:info:configure Exit code: 1
:error:configure Failed to configure freetds, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_freetds/freetds/work/freetds-1.00.1/config.log
:error:configure org.macports.configure for port freetds returned: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
    while executing
"portconfigure::configure_main org.macports.configure"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:configure Warning: targets not executed for freetds: org.macports.install org.macports.configure org.macports.build org.macports.destroot
:notice:configure Please see the log file for port freetds for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_freetds/freetds/main.log

The full log is attached.

Attachments (2)

main.log (26.7 KB) - added by jdgoettsch (Jeffrey Goettsch) 8 years ago.
0001-7.4-rather-than-8.0-following-advice-from-http-www.f.patch (840 bytes) - added by kiwiroy (Roy Storey) 8 years ago.

Download all attachments as: .zip

Change History (8)

Changed 8 years ago by jdgoettsch (Jeffrey Goettsch)

Attachment: main.log added

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to ryandesign@…
Port: freetds added

In the future, please fill in the Port field and Cc the port maintainers (port info --maintainers freetds), if any.

comment:2 Changed 8 years ago by jdgoettsch (Jeffrey Goettsch)

Of course, sorry.

Changed 8 years ago by kiwiroy (Roy Storey)

comment:3 Changed 8 years ago by kiwiroy (Roy Storey)

The attached patch changes the TDS version from 8.0 to 7.4, which appears to be the right thing to do after reading http://www.freetds.org/userguide/choosingtdsprotocol.htm

Installation successful:

$ sudo port install freetds +mssql+odbc
Password:
--->  Computing dependencies for freetds
--->  Fetching distfiles for freetds
--->  Verifying checksums for freetds
--->  Extracting freetds
--->  Applying patches to freetds
--->  Configuring freetds
--->  Building freetds
--->  Staging freetds into destroot
--->  Installing freetds @1.00.9_0+mssql+odbc
--->  Deactivating freetds @0.95.95_0+mssql+odbc
--->  Cleaning freetds
--->  Activating freetds @1.00.9_0+mssql+odbc
Configuration file freetds.conf exists and has been retained.
(The distribution's version has been installed to /opt/local/etc/freetds/freetds.conf.sample)
Configuration file locales.conf exists and has been retained.
(The distribution's version has been installed to /opt/local/etc/freetds/locales.conf.sample)
Configuration file pool.conf exists and has been retained.
(The distribution's version has been installed to /opt/local/etc/freetds/pool.conf.sample)
--->  Cleaning freetds
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  No broken files found.            

comment:4 Changed 8 years ago by kiwiroy (Roy Storey)

Cc: kiwiroy@… added

Cc Me!

comment:5 Changed 8 years ago by smithsp (Sterling Smith)

Cc: smithsp@… added

Cc Me!

comment:6 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

In 21ed88e/macports-ports:

freetds: Fix mssql variant

Closes: #51636

Note: See TracTickets for help on using tickets.