Skip to Content.
Sympa Menu

freetds - MAXPATHLEN in tds/config.c

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: James K. Lowden <jklowden AT speakeasy.org>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: MAXPATHLEN in tds/config.c
  • Date: Mon, 20 May 2002 18:49:40 -0400


All,

Argh, we need the help of an autoconf magician.

My system compiles config.c just fine, and doesn't need an explicit
include of sys/param.h to find MAXPATHLEN. But some systems do? I have a
report from someone else whose compiler has a different opinion,
apparently:

> cvs update
> make distclean
> ./configure
> make
>
> [...]
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2
> -DTDS50 -Wp,-MD,.deps/config.pp -c -fPIC -DPIC config.c -o
> .libs/config.lo
> config.c: In function `tds_get_config':
> config.c:91: `MAXPATHLEN' undeclared (first use in this function)
> config.c:91: (Each undeclared identifier is reported only once
> config.c:91: for each function it appears in.)

Following those instructions, I got:

gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2
-DTDS50 -c config.c
In file included from config.c:42:
/usr/include/netinet/in.h:170: warning: `INADDR_NONE' redefined
../../include/config.h:13: warning: this is the location of the previous
definition

How does one go about isolating the culprit?

Many thanks,

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page