compile error on cvs tip

From: Joe Conway <mail(at)joeconway(dot)com>
To: "Hackers (PostgreSQL)" <pgsql-hackers(at)postgresql(dot)org>
Subject: compile error on cvs tip
Date: 2003-04-25 03:05:50
Message-ID: 3EA8A60E.3040905@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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: user name \"%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 */

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-04-25 03:12:55 Re: compile error on cvs tip
Previous Message Kevin Lo 2003-04-25 02:01:51 Re: Postgresql Filesystem