Thread: ECPG compile error

ECPG compile error

From
Rod Taylor
Date:
/usr/local/bin/gmake -C ecpglib all
gmake[4]: Entering directory
`/usr/home/rbt/work/postgresql/pgsqlwarning/src/interfaces/ecpg/ecpglib'
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -g -Wall
-Wmissing-prototypes -Wmissing-declarations -fpic -DPIC
-I../../../../src/interfaces/ecpg/include
-I../../../../src/interfaces/libpq -I../../../../src/include  -pthread
-c -o misc.o misc.c -MMD
misc.c: In function `ECPGset_informix_null':
misc.c:272: `LONG_LONG_MIN' undeclared (first use in this function)
misc.c:272: (Each undeclared identifier is reported only once
misc.c:272: for each function it appears in.)
misc.c: In function `ECPGis_informix_null':
misc.c:330: `LONG_LONG_MIN' undeclared (first use in this function)
gmake[4]: *** [misc.o] Error 1
gmake[4]: Leaving directory
`/usr/home/rbt/work/postgresql/pgsqlwarning/src/interfaces/ecpg/ecpglib'


--
Rod Taylor <rbt@rbt.ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

Re: ECPG compile error

From
Michael Meskes
Date:
On Wed, Jun 25, 2003 at 11:51:47AM -0400, Rod Taylor wrote:
> misc.c: In function `ECPGset_informix_null':
> misc.c:272: `LONG_LONG_MIN' undeclared (first use in this function)
> misc.c:272: (Each undeclared identifier is reported only once
> misc.c:272: for each function it appears in.)
> misc.c: In function `ECPGis_informix_null':
> misc.c:330: `LONG_LONG_MIN' undeclared (first use in this function)

Geez, platform independeny is a major headache. :-)

It seems my system automatically included limits.h. Other appear to not
do this. I already committed an update but I'm not sure you have the
version that does.

Anyway, if you have and it appears you also have HAVE_LONG_LONG_INT_64
defined, which header file does provide the approprioate constants and
how is it named? It seems INT_MIN etc. are there.

Michael

--
Michael Meskes
Email: Michael at Fam-Meskes dot De
ICQ: 179140304, AIM: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!


Re: ECPG compile error

From
Rod Taylor
Date:
> Anyway, if you have and it appears you also have HAVE_LONG_LONG_INT_64
> defined, which header file does provide the approprioate constants and
> how is it named? It seems INT_MIN etc. are there.

/usr/include/machine/limits.h seems to have INT_MIN, etc. in them.

--
Rod Taylor <rbt@rbt.ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

Re: ECPG compile error

From
Rod Taylor
Date:
> Anyway, if you have and it appears you also have HAVE_LONG_LONG_INT_64
> defined, which header file does provide the approprioate constants and
> how is it named? It seems INT_MIN etc. are there.

Sorry, limits.h includes machine/limits.h.

Which (after a fresh cvsup), I have your earlier fix.

--
Rod Taylor <rbt@rbt.ca>

PGP Key: http://www.rbt.ca/rbtpub.asc