compile error on cvs tip - Mailing list pgsql-hackers

From Joe Conway
Subject compile error on cvs tip
Date
Msg-id 3EA8A60E.3040905@joeconway.com
Whole thread Raw
Responses Re: compile error on cvs tip  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: compile error on cvs tip  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I just updated to cvs tip, did `make clean`, `configure`, and `make all` 
and got this:

i386-redhat-linux-gcc -O2 -g -Wall -Wmissing-prototypes 
-Wmissing-declarations -I../../../src/include -I/usr/kerberos/include 
-c -o auth.o auth.c -MMD
auth.c: In function `pg_krb5_recvauth':
auth.c:294: structure has no member named `user'
auth.c:294: structure has no member named `user'
auth.c:294: structure has no member named `user'
. .  .
auth.c:297: structure has no member named `user'
auth.c: In function `ClientAuthentication':
auth.c:491: structure has no member named `user'
make[3]: *** [auth.o] Error 1
make[3]: Leaving directory `/opt/src/pgsql/src/backend/libpq'


I also get this new warning:

i386-redhat-linux-gcc -O2 -g -Wall -Wmissing-prototypes 
-Wmissing-declarations -I../../../src/include -I/usr/kerberos/include 
-c -o be-secure.o be-secure.c -MMD
be-secure.c: In function `open_server_SSL':
be-secure.c:712: warning: assignment from incompatible pointer type

Joe


p.s. Here is a patch for the error:

Index: src/backend/libpq/auth.c
===================================================================
RCS file: /opt/src/cvs/pgsql-server/src/backend/libpq/auth.c,v
retrieving revision 1.100
diff -c -r1.100 auth.c
*** src/backend/libpq/auth.c    22 Apr 2003 00:08:06 -0000      1.100
--- src/backend/libpq/auth.c    25 Apr 2003 02:58:21 -0000
***************
*** 291,300 ****        }
        kusername = pg_an_to_ln(kusername);
!       if (strncmp(port->user, kusername, SM_DATABASE_USER))        {                elog(LOG, "pg_krb5_recvauth: user
name\"%s\" != krb5 
 
name \"%s\"",
!                        port->user, kusername);                ret = STATUS_ERROR;        }        else
--- 291,300 ----        }
        kusername = pg_an_to_ln(kusername);
!       if (strncmp(port->user_name, kusername, SM_DATABASE_USER))        {                elog(LOG, "pg_krb5_recvauth:
username \"%s\" != krb5 
 
name \"%s\"",
!                        port->user_name, kusername);                ret = STATUS_ERROR;        }        else
***************
*** 488,494 ****  #ifdef USE_PAM                case uaPAM:                        pam_port_cludge = port;
!                       status = CheckPAMAuth(port, port->user, "");                        break;  #endif   /* USE_PAM
*/

--- 488,494 ----  #ifdef USE_PAM                case uaPAM:                        pam_port_cludge = port;
!                       status = CheckPAMAuth(port, port->user_name, "");                        break;  #endif   /*
USE_PAM*/
 



pgsql-hackers by date:

Previous
From: Kevin Lo
Date:
Subject: Re: Postgresql Filesystem
Next
From: Tom Lane
Date:
Subject: Re: compile error on cvs tip