freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Brian Bruns <camber AT ais.org>
- To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
- Subject: Re: MAXPATHLEN in tds/config.c
- Date: Wed, 29 May 2002 07:58:03 -0400 (EDT)
Ok, getting back to this...
is MAXPATHLEN always in sys/param.h if not already defined? If so, we
could add AC_CHECK_HEADERS(sys/param.h) to configure.in and then add an
#ifdef HAVE_SYS_PARAM to config.c to include it.
Brian
On Mon, 20 May 2002, James K. Lowden wrote:
> 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
>
> ---
> You are currently subscribed to freetds as: [camber AT ais.org]
> To unsubscribe, forward this message to $subst('Email.Unsub')
>
>
-
MAXPATHLEN in tds/config.c,
James K . Lowden, 05/20/2002
- <Possible follow-up(s)>
- Re: MAXPATHLEN in tds/config.c, Brian Bruns, 05/29/2002
Archive powered by MHonArc 2.6.24.