Skip to Content.
Sympa Menu

freetds - RE: Error compiling

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT schemamania.org>
  • To: "TDS Development Group" <freetds AT franklin.metalab.unc.edu>
  • Subject: RE: Error compiling
  • Date: Thu, 11 Jul 2002 19:07:32 -0400


On Thu, 11 Jul 2002 15:47:15 -0400, "freddy77"
<Frediano.Ziglio AT vodafoneomnitel.it> wrote:

> > I decided to leave cvs a little broken, rather than
> > adding a file that might not belong there.
> >
> Perhaps a patch like this is useful:
>
> Index: src/tds/.cvsignore
> ===================================================================
> RCS file: /cvsroot/freetds/freetds/src/tds/.cvsignore,v
> retrieving revision 1.3
> diff -u -r1.3 .cvsignore
> --- src/tds/.cvsignore 21 Nov 2001 04:31:03 -0000 1.3
> +++ src/tds/.cvsignore 11 Jul 2002 19:42:42 -0000
> @@ -4,3 +4,4 @@
> *.lo
> *.la
> .deps
> +tds_willconvert.h

Frediano,

Thanks! That's similar to what I had in mind. I don't have time to check
this tonight (sorry, I'd like to). One question, though:

It looks to me like this will create a tds_willconvert.h target in the
Makefile. I don't want to do that, because that would mean you couldn't
build FreeTDS without Perl. Instead, I want to generate tds_willconvert.h
when "configure" is generated by autoconf. I think that means I have to
modify "configure.in". Do you know how to do that?

Either that, or give up and put it in CVS.

Regards,

--jkl


> Index: src/tds/Makefile.am
> ===================================================================
> RCS file: /cvsroot/freetds/freetds/src/tds/Makefile.am,v
> retrieving revision 1.6
> diff -u -r1.6 Makefile.am
> --- src/tds/Makefile.am 5 Jul 2002 20:23:49 -0000 1.6
> +++ src/tds/Makefile.am 11 Jul 2002 19:42:42 -0000
> @@ -1,7 +1,15 @@
> SUBDIRS = unittests
>
> lib_LTLIBRARIES = libtds.la
> -libtds_la_SOURCES = mem.c token.c util.c login.c read.c write.c
> convert.c
> numeric.c config.c query.c iconv.c locale.c challenge.c threadsafe.c
> +libtds_la_SOURCES = mem.c token.c util.c login.c read.c write.c \
> + convert.c numeric.c config.c query.c iconv.c locale.c challenge.c
> \+ threadsafe.c tds_willconvert.h
> INCLUDES = -I$(top_srcdir)/include
> LIBS = @LIBICONV@
> libtds_la_LIBADD = $(NETWORK_LIBS)
> +
> +convert.o: tds_willconvert.h
> +convert.lo: tds_willconvert.h
> +
> +tds_willconvert.h: convert.c
> + perl -x $< > $@
>
> freddy77




Archive powered by MHonArc 2.6.24.

Top of Page