Skip to Content.
Sympa Menu

freetds - RE: compile error

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: compile error
  • Date: Thu, 19 Sep 2002 02:04:34 -0400


> > > From: Kiran Kumar M [mailto:kirank AT comatindia.com]
> > > Sent: September 17, 2002 6:56 AM
> > >
> > > I tried installing on a different box redhat 7.2 with gcc 2.96
> > > when i do a make i get some internal compile errors ... has
> > > anybody
> > > installed freetds on redhat 7.2 ???

> > > /bin/sh ../../libtool --mode=compile
> > > gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> > > -g -O2 -DTDS5
> > > 0 -c bcp.c
> > > rm -f .libs/bcp.lo
> > > gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> > > -g -O2 -DTDS50 -
> > > c bcp.c -fPIC -DPIC -o .libs/bcp.lo
> > > ../../gcc/function.c:2392: Internal compiler error in function
> > > fixup_memory_subreg
> > > make[3]: *** [bcp.lo] Error 1
> > > make[3]: Leaving directory `/root/packages/freetds/src/dblib'

On Wed, 18 Sep 2002 10:33:56 +0530, "Kiran Kumar M"
<kirank AT comatindia.com> wrote:

> Hi James,
> I did try to install from the source (i tried both freetds-0.60.tgz
> and
> freetds-current.tgz) and this is the error i got for both
> ../../gcc/function.c:2392: Internal compiler error in
> function
> fixup_memory_subreg

Hi Kiran,

A trip to Google tells me that there were problems like this with gcc and
egcs. It has to do with optimization, apparently. Why should it affect
you and not, say, me, who also uses Gnu's compiler? I don't know.

Suggestions:

cd src/dblib;
gcc -DHAVE_CONFIG_H -I. -I../../include \
-g -DTDS50 -c bcp.c
rm -f .libs/bcp.lo
gcc -DHAVE_CONFIG_H -I. -I../../include \
-g -DTDS50 -c bcp.c -fPIC -DPIC -o .libs/bcp.lo

Excludes optimization for that file only. Then continue building.

If that doesn't work or you encounter similar problems with other files,
edit src/dblib/Makefile. Find:

CFLAGS = -g -O2 -DTDS50

Change to:

CFLAGS = -g -DTDS50

Return to the FreeTDS directory. "make clean; make".

Am interested to hear how you fare.

Regards,

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page