Skip to Content.
Sympa Menu

freetds - [freetds] /usr/include/freetds/ and DBD-Sybase problem

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Joshua Daniel Franklin <joshuadf AT u.washington.edu>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] /usr/include/freetds/ and DBD-Sybase problem
  • Date: Thu, 27 May 2004 13:02:47 -0700

Hi,

Here's the situation:

I've installed Dag's latest freetds rpms (freetds-0.62.3-1.1.el3.rpm
and freetds-devel-0.62.3-1.1.el3.rpm, dated 2004 May 17) on Red Hat Enterprise Linux 3 with no problems, works as expected, etc.

I then proceeded to build the latest DBD-Sybase 1.02, which failed messily with missing include problems (here's a short excerpt):

In file included from Sybase.xs:14:
Sybase.h:16:22: ctpublic.h: No such file or directory
In file included from Sybase.h:46,
from Sybase.xs:14:
dbdimp.h:23: syntax error before "CS_SMALLINT"
dbdimp.h:23: warning: no semicolon at end of struct or union
dbdimp.h:24: warning: data definition has no type or storage class

I found that the problem is that the freetds-devel header files are
installed to /usr/include/freetds/ instead of just /usr/include/ and
linking them to /usr/include/ allowed DBD-Sybase to build. (There weren't any name conflicts with headers already in /usr/include/ .)

The headers seems to have been moved to /usr/include/freetds/ relatively recently (another server here with freetds-devel 0.61 has them in /usr/include/). DBD-Sybase expects $SYBASE/lib and $SYBASE/include to work, which seems reasonable, but if the header location was changed on purpose is this something that needs to be updated in DBD-Sybase?

Thanks,

Joshua Daniel Franklin




Archive powered by MHonArc 2.6.24.

Top of Page