[freetds] Problem building FreeTDS on Solaris 9

James K. Lowden jklowden at schemamania.org
Tue Jun 22 19:57:36 EDT 2004

On Tue, 22 Jun 2004, Daniel Berger <djberge at qwest.com> wrote:
> Hi,

Hi Daniel, 

> if gcc -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -I. -I.
> -I../../include -I../../include   -D_FREETDS_LIBRARY_SOURCE -D_REENTRANT
> -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes
> -Wno-long-long  -g -O2 -MT tsql.o -MD -MP -MF ".deps/tsql.Tpo" \
>   -c -o tsql.o `test -f 'tsql.c' || echo './'`tsql.c; \
> then mv ".deps/tsql.Tpo" ".deps/tsql.Po"; \
> else rm -f ".deps/tsql.Tpo"; exit 1; \
> fi
> tsql.c:38:31: readline/readline.h: No such file or directory
> make: Fatal error: Command failed for target `tsql.o'

"Command failed for target `tsql.o'" is a compiler error.  Your gcc isn't
finding readline.h; I guess it's not in  "../../include", or on the
default paths.  

As you're fooling with CPPFLAGS, find readline.h and set accordingly.  On
my box, it's in 


so I would

$ export CPPFLAGS="/usr/pkg/include". 
$ ./configure && make install 



More information about the FreeTDS mailing list