From y.hoernschemeyer at gmx.de Wed Jan 19 03:53:13 2022 From: y.hoernschemeyer at gmx.de (=?utf-8?Q?Yannik_H=C3=B6rnschemeyer?=) Date: Wed, 19 Jan 2022 08:53:13 -0000 Subject: [freetds] No output file when building FreeTDS for MacCatalyst Message-ID: Hello everyone, my name is Yannik from Germany. First of all, thank you for adding me to the list and I want to thank everyone who has helped me mainly in the freeTDS GitHub issue section - it must be hard to deal with a C rookie like me. I am trying to build FreeTDS for MacCatalyst since December 3rd but only with partial success but I would really like to get it working soon. My problem is that I familiar with Swift, but not with GNU, C or C++ which is why any help in debugging would be very appreciated :) I think I am very close to finally building the library. I have of course gone through the FreeTDS documentation and read MacOS and MacCatalyst related issues (like Niklas post) in the mailing list. - The issue - I am trying to build FreeTDS 1.3.6 for MacCatalyst using auto tools. The output I should get should be a libsybdb.a file, but I am only getting a libsybdb.la file. I have trouble identifying the actual issue in the log and finding an appropriate solution. Does anybody recognize the problem and knows how to fix it? I attached my build script and log file. - My thoughts on the issue (might be irrelevant) - I can see some fatal errors in the log. 'fatal error: 'sys/eventfd.h' file not found' and other errors like 'fatal error: 'sql.h' file not found' concern me, but I don?t know the cause. As you can see in my build script, I specified where the sql.h, sqlext.h and sqltypes.h files should be by using ?with-odbc-nodm. I did this instead of specifying the unixODBC driver since it is not built for MacCatalyst which caused errors. Kind regards, Yannik From jklowden at schemamania.org Sat Mar 19 17:26:53 2022 From: jklowden at schemamania.org (James K. Lowden) Date: Sat, 19 Mar 2022 17:26:53 -0400 Subject: [freetds] No output file when building FreeTDS for MacCatalyst In-Reply-To: References: Message-ID: <20220319172653.073c8fd9e154498e672a2be4@schemamania.org> On Wed, 19 Jan 2022 09:53:09 +0100 Yannik H?rnschemeyer wrote: > I am trying to build FreeTDS 1.3.6 for MacCatalyst using auto tools. > The output I should get should be a libsybdb.a file, but I am only > getting a libsybdb.la file. I have trouble > identifying the actual issue in the log and finding an appropriate > solution. Does anybody recognize the problem and knows how to fix it? Hi Yannik, The good news is I did the following successfully. I guess I'd have to recommend my procedure. 1. Cloned current FreeTDS with git 2. ./autogen.sh 3. make distclean 4. mkdir build && cd build 5 ../configure # warning about daemon(3) deprecation for pool 6. make I used: $ (autoconf --version && automake --version) | grep GNU && printf "%s:" libtool && libtool -V autoconf (GNU Autoconf) 2.69 License GPLv3+/Autoconf: GNU GPL version 3 or later automake (GNU automake) 1.16.2 License GPLv2+: GNU GPL version 2 or later libtool: Apple Inc. version cctools-986 $ cc --version Apple clang version 13.0.0 (clang-1300.0.27.3) Target: x86_64-apple-darwin21.2.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin I have: $ sw_vers ProductName: macOS ProductVersion: 12.1 BuildVersion: 21C52 I got: $ find * -name libsyb\* src/dblib/libsybdb.la src/dblib/.libs/libsybdb.lai src/dblib/.libs/libsybdb.dylib src/dblib/.libs/libsybdb.a src/dblib/.libs/libsybdb.5.dylib src/dblib/.libs/libsybdb.la I didn't try to configure for ODBC, because in your message the file you want is the DB-Lib libsybdb. If you're picking up ODBC by accident because configure is detecting it, you can use --disable-odbc to defeat it. > As you can see in my build script, I don't think you attachment was attached.... > ?with-odbc-nodm. I did this instead of specifying the unixODBC > driver since it is not built for MacCatalyst which caused errors. If you do need ODBC, I would not use with --with-odbc-nodm option. Instead, I would install unixodbc with HomeBrew, and set --with-unixodbc=DIR, where "DIR" is wherever HomeBrew deposits files. HTH. --jkl