============================================================================
POSTGRESQL BUG REPORT TEMPLATE
============================================================================
Your name : Vincent RUIZ
Your email address : webmaster@arobase.fr
Category : install: compile
Severity : serious
Summary: odbc interface can't be compiled (even in version 6.4.1)
System Configuration
--------------------
Operating System : mkLinux DR3
PostgreSQL version : 6.4.2
Compiler used : egcs-2.90.25 980302 (egcs-1.0.2 prerelease)
Hardware:
---------
PowerMac 7600 132 mgHz - 112 Mo Ram - Hard drive 1 Go
Versions of other tools:
------------------------
GNU Make version 3.76.1
flex version 2.5.4
--------------------------------------------------------------------------
Problem Description:
--------------------
the file misc.c in src/interfaces/odbc causes error.
This is what the build returns :
gcc -I../../include -I../../backend -O2 -Wall -Wmissing-prototypes -I. -DHAVE_CONFIG_H -fpic -c misc.c -o misc.o
misc.c:61: warning: no previous prototype for `mylog'
misc.c: In function `mylog':
misc.c:69: request for member `gpr' in something not a structure or union
misc.c:69: request for member `fpr' in something not a structure or union
.
.
.
misc.c:100: request for member `overflow_arg_area' in something not a structure or union
misc.c:100: request for member `overflow_arg_area' in something not a structure or union
misc.c:100: request for member `overflow_arg_area' in something not a structure or union
misc.c:100: request for member `overflow_arg_area' in something not a structure or union
misc.c:111: warning: passing arg 3 of `vfprintf' from incompatible pointer type
misc.c:94: warning: `args' might be used uninitialized in this function
misc.c:100: warning: `__ptr' might be used uninitialized in this function
gmake[2]: *** [misc.o] Error 1
--------------------------------------------------------------------------
Test Case:
----------
I simply do what is written into the INSTALL file :
./configure --with-template=linux_ppc --with-tcl --with-perl --with-odbc --with-x
gmake all
--------------------------------------------------------------------------
Solution:
---------
--------------------------------------------------------------------------