|
|
| <prev next> |
Choosing A Webhost: |
solutions for building on Mac OS X: msg#00183db.tds.freetds
A few people have emailed me about getting the current cvs version to compile, and I've spent sometime figuring out what the problems are. Unfortunately, I'm not sure I know enough to find the correct fix, but I've got a hackish one that will get it to compile. The first, and easy, problem is that EILSEQ #defined, but not to a value. The TODO list says it needs to be fixed, but until that fix happens, freetds won't compile on a system that doesn't define EILSEQ. To get around this, I set it via CFLAGS. The following is how I ran autogen.sh. mlilback$CFLAGS=-DEILSEQ=ENOENT ./autogen.sh --with-tdsver=7.0 The next problem is that the final commands that are generated to link the shared libraries are passing each library twice on the command line. For example, when building in src/tds, $archive_cmds is created with both $libobjs and $deplibs containing libtds_objects.al and libreplacements.al. To solve this, after running autogen.sh or configure, edit libtool and look for "Do each of the archive commands." It was line 3179 on my generated file. Add the following line above it: deplibs=`echo "$deplibs" | sed -d 's#\([^ ]*\)\.al##g'` Then a make will build libtds, libdb, libct, and libodbc. It dies building tsql because gethostbyaddr_r is not found. (10.2 doesn't support the _r functions.) I spent a few hours digging through libtool and how it is created, but couldn't figure out the process since there are so many options and nesting is almost impossible to figure out in the shell scripts. If someone has an idea, I'd love to hear it. Otherwise, I'll post a message to a darwin list and see if I can get a helpful reply. -- __________________________________________________________________________ "They that can give up essential liberty Mark J. Lilback to obtain a little temporary safety <mark@xxxxxxxxxxx> deserve neither liberty or safety." http://www.lilback.com/ -- Benjamin Franklin
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Patch, Lowden, James K |
|---|---|
| Previous by Thread: | Patch, ZIGLIO Frediano |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |