Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

solutions for building on Mac OS X: msg#00183

db.tds.freetds

Subject: solutions for building on Mac OS X

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>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation