Thread: Bug in make (informix?)

Bug in make (informix?)

From
Oli Sennhauser
Date:
See attachment.

Regards Oli

-------------------------------------------------------

Oli Sennhauser
Database-Engineer (Oracle & PostgreSQL)
Rebenweg 6
CH - 8610 Uster / Switzerland

Phone (+41) 1 940 24 82 or Mobile (+41) 79 450 49 14
e-Mail oli.sennhauser@bluewin.ch
Website http://mypage.bluewin.ch/shinguz/PostgreSQL/

Secure (signed/encrypted) e-Mail with a Free Personal SwissSign ID: http://www.swisssign.ch

Import the SwissSign Root Certificate: http://swisssign.net/cgi-bin/trust/import

If PostgreSQL failed to compile on your computer or you found a bug that
is likely to be specific to one platform then please fill out this form
and e-mail it to pgsql-ports@postgresql.org.

To report any other bug, fill out the form below and e-mail it to
pgsql-bugs@postgresql.org.

If you not only found the problem but solved it and generated a patch
then e-mail it to pgsql-patches@postgresql.org instead.  Please use the
command "diff -c" to generate the patch.

You may also enter a bug report at http://www.postgresql.org/ instead of
e-mail-ing this form.

============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name        : Oli Sennhauser
Your email address    : oli.sennhauser@bluewin.ch


System Configuration
---------------------
  Architecture (example: Intel Pentium)      : Intel Pentium II

  Operating System (example: Linux 2.0.26 ELF)     : Linux 2.4.21 SuSE 9.0

  PostgreSQL version (example: PostgreSQL-7.4)  : PostgreSQL-7.4

  Compiler used (example:  gcc 2.95.2)        : gcc (GCC) 3.3.1 (SuSE Linux)


Please enter a FULL description of your problem:
------------------------------------------------

The make with the follwing flag causes an error. Without flag runs without problems.
This seems to be a bug of 7.4 because 7.3.5 was running fine with this flag.

make CPPFLAGS=-DALLOW_ABSOLUTE_DBPATHS allo

gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -fpic
-I../../../../src/interfaces/ecpg/include-I../../../../src/interfaces/libpq -I../../../../src/include
-DALLOW_ABSOLUTE_DBPATHS   -c -o misc.o misc.c 
misc.c: In function `ECPGset_informix_null':
misc.c:288: error: `LONGLONG_MIN' undeclared (first use in this function)
misc.c:288: error: (Each undeclared identifier is reported only once
misc.c:288: error: for each function it appears in.)
misc.c: In function `ECPGis_informix_null':
misc.c:357: error: `LONGLONG_MIN' undeclared (first use in this function)
make[4]: *** [misc.o] Error 1
make[4]: Leaving directory `/u00/app/postgres/products/7.4.0/src/postgresql-7.4/src/interfaces/ecpg/ecpglib'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/u00/app/postgres/products/7.4.0/src/postgresql-7.4/src/interfaces/ecpg'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/u00/app/postgres/products/7.4.0/src/postgresql-7.4/src/interfaces'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/u00/app/postgres/products/7.4.0/src/postgresql-7.4/src'
make: *** [all] Error 2

Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible:
----------------------------------------------------------------------

See above.

If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------

I am a bad C-programer and was not looking into the code.


Attachment

Re: Bug in make (informix?)

From
Michael Meskes
Date:
On Wed, Dec 17, 2003 at 04:42:25PM +0100, Oli Sennhauser wrote:
> The make with the follwing flag causes an error. Without flag runs without problems.
> This seems to be a bug of 7.4 because 7.3.5 was running fine with this flag.
>
> make CPPFLAGS=-DALLOW_ABSOLUTE_DBPATHS allo
> ...

This actually is NOT a PostgreSQL bug. When you call make like this you
do not ADD your define, but REPLACE the CPPFLAGS entry in Makefile.
Usually CPPFLAGS contains -D_GNU_SOURCE which is needed to get
LONG_LONG_MIN defined.

If you need this define, please use

make CPPFLAGS="-D_GNU_SOURCE -DALLOW_ABSOLUTE_DBPATHS" allo

or some other way that ensures the entry in Makefile.global is not
discarded.

Michael

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