This is a known discrepency between Linux and BSD based system. unistd.h
does not contain the _SC_PAGESIZE define.

Quick and dirty fix. You can go to
../src/tds/asprintf.c
and use your editor of choice to change the code

#else
# ifndef _SC_PAGE_SIZE
#  define _SC_PAGE_SIZE _SC_PAGE_SIZE
# endif

#else
# ifndef _SC_PAGE_SIZE
#  define _SC_PAGE_SIZE 4096
# endif


I got the pagesize by using the "pagesize" command.

It will then compile.

On 11/01/2002 13:57, "Don Rainwater" <[EMAIL PROTECTED]> wrote:

> Has anyone successfully built FreeTDS 0.60 on 10.2?  Here's what I get:
> 
> % ./configure --with-tdsver=5.0 --with-iodbc=/usr
> [...]
> % make
> [...]
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../include
> -I../../include    -g -O2 -DTDS50 -DIODBC -c asprintf.c
> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2
> -DTDS50 -DIODBC -c     asprintf.c -o asprintf.o
> asprintf.c: In function `vasprintf':
> asprintf.c:67: `_SC_PAGESIZE' undeclared (first use in this function)
> asprintf.c:67: (Each undeclared identifier is reported only once
> asprintf.c:67: for each function it appears in.)
> make[3]: *** [asprintf.lo] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
> 
> --
> Don Rainwater, Technology Manager        [EMAIL PROTECTED]
> UCit Educational Services
> University of Cincinnati
> 

Reply via email to