Skip to contentSkip to conversation

build problems with latest nfs-utils

PATCH In review Chuck Lever 2 participants 6 messages Jul 16, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I updated my git repo to the latest version of nfs-utils, and now I can no longer build nfs-utils. I use

./configure --disable-gss --disable-nfsv4

and get these compilation errors:

Making all in nfs
make[2]: Entering directory `/u/cel/nfs-utils/support/nfs'
gcc -DHAVE_CONFIG_H -I. -I../../support/include -I../../support/include -D_GNU_SOURCE -Wall -pipe -g -O2 -MT exports.o -MD -MP -MF .deps/exports.Tpo -c -o exports.o exports.c exports.c:33:27: error: pseudoflavors.h: No such file or directory
exports.c:38: error: array type has incomplete element type
exports.c:39: error: ‘RPC_AUTH_GSS_KRB5’ undeclared here (not in a function)
exports.c:40: error: ‘RPC_AUTH_GSS_KRB5I’ undeclared here (not in a function)
exports.c:41: error: ‘RPC_AUTH_GSS_KRB5P’ undeclared here (not in a function)
exports.c:42: error: ‘RPC_AUTH_GSS_LKEY’ undeclared here (not in a function)
exports.c:43: error: ‘RPC_AUTH_GSS_LKEYI’ undeclared here (not in a function)
exports.c:44: error: ‘RPC_AUTH_GSS_LKEYP’ undeclared here (not in a function)
exports.c:45: error: ‘RPC_AUTH_GSS_SPKM’ undeclared here (not in a function)
exports.c:46: error: ‘RPC_AUTH_GSS_SPKMI’ undeclared here (not in a function)
exports.c:47: error: ‘RPC_AUTH_GSS_SPKMP’ undeclared here (not in a function)
exports.c: In function ‘secinfo_show’:
exports.c:209: error: dereferencing pointer to incomplete type
exports.c:212: error: dereferencing pointer to incomplete type
exports.c: In function ‘find_flavor’:
exports.c:423: error: increment of pointer to unknown structure
exports.c:423: error: arithmetic on pointer to an incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
exports.c:424: error: dereferencing pointer to incomplete type
make[2]: *** [exports.o] Error 1
make[2]: Leaving directory `/u/cel/nfs-utils/support/nfs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/u/cel/nfs-utils/support'
make: *** [all-recursive] Error 1
[cel@monet nfs-utils]$

begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle USA;Corporate Architecture
adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA
title:Principal Member of Staff
x-mozilla-html:FALSE
url:http://oss.oracle.com/~cel
version:2.1
end:vcard

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw
Quoted 6 lines · Chuck Lever

I updated my git repo to the latest version of nfs-utils, and now I can no longer build nfs-utils. I use

./configure --disable-gss --disable-nfsv4

and get these compilation errors:

Whoops, yes, I didn't think to test my changes with gss or nfsv4 disabled. I'll take a look at this tomorrow; thanks for noticing that.

--b.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#2 lore raw
Quoted 11 lines · J. Bruce Fields
Quoted 5 lines · Chuck Lever

I updated my git repo to the latest version of nfs-utils, and now I can no longer build nfs-utils. I use

./configure --disable-gss --disable-nfsv4

and get these compilation errors:

Whoops, yes, I didn't think to test my changes with gss or nfsv4 disabled. I'll take a look at this tomorrow; thanks for noticing that.

--b.

;-)

Yep, thought so.

A build-test / check-in test suite for some of these utilities is bumbling around in the back of my brain. We'll see if it breaches the laziness threshold and I get around to constructing something.

Anyone else thought much about this? One thing that would be nice to test is whether we've broken support over the years for the very old versions of nfs_mount_data (both mount command and NFS client processing).

begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle USA;Corporate Architecture
adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA
title:Principal Member of Staff
x-mozilla-html:FALSE
url:http://oss.oracle.com/~cel
version:2.1
end:vcard

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#3 lore raw

PATCH 1/1 fix broken compile due to missing pseudoflavors.h

In reply to Chuck Lever

From: J. Bruce Fields <[email protected]>

Commit e9b0bed761bc77ba046f53be2ec324c4b61357ff should also have added this file.

---
 support/include/pseudoflavors.h |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
 create mode 100644 support/include/pseudoflavors.h
Quoted 6 lines · Chuck Lever

Making all in nfs
make[2]: Entering directory `/u/cel/nfs-utils/support/nfs' gcc -DHAVE_CONFIG_H -I. -I../../support/include -I../../support/include -D_GNU_SOURCE -Wall -pipe -g -O2 -MT exports.o -MD -MP -MF .deps/exports.Tpo -c -o exports.o exports.c
exports.c:33:27: error: pseudoflavors.h: No such file or directory

Whoops, I should have actually looked at the compile output yesterday before jumping to conclusions. Looks like pseudoflavors.h didn't get added to the git repo. (Neil--just pipe a mailbox to "git am", and it'll take care of adding new files.)

(I haven't checked yet whether it's still OK with --disable-gss and --disable-nfsv4....)

--b.

support/include/pseudoflavors.h new file +17 -0
new file mode 100644
index 0000000..c21087b
@@ -0,0 +1,17 @@
+#define RPC_AUTH_GSS_KRB5       390003
+#define RPC_AUTH_GSS_KRB5I      390004
+#define RPC_AUTH_GSS_KRB5P      390005
+#define RPC_AUTH_GSS_LKEY       390006
+#define RPC_AUTH_GSS_LKEYI      390007
+#define RPC_AUTH_GSS_LKEYP      390008
+#define RPC_AUTH_GSS_SPKM       390009
+#define RPC_AUTH_GSS_SPKMI      390010
+#define RPC_AUTH_GSS_SPKMP      390011
+
+struct flav_info {
+	char    *flavour;
+	int     fnum;
+};
+
+extern struct flav_info flav_map[];
+extern const int flav_map_size;
Signature · 11 lines
1.5.3.rc0.63.gc956


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
#4 lore raw

Re: [PATCH] fix broken compile due to missing pseudoflavors.h

Yeah, this makes sense. I tried just doing a "make" in utils/mount/ last night and it did indeed spot the missing pseudoflavors.h header.

I'll give this a shot.

Quoted 42 lines · J. Bruce Fields

From: J. Bruce Fields <[email protected]>

Commit e9b0bed761bc77ba046f53be2ec324c4b61357ff should also have added this file.

---
 support/include/pseudoflavors.h |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
 create mode 100644 support/include/pseudoflavors.h
Quoted 6 lines · Chuck Lever

Making all in nfs
make[2]: Entering directory `/u/cel/nfs-utils/support/nfs' gcc -DHAVE_CONFIG_H -I. -I../../support/include -I../../support/include -D_GNU_SOURCE -Wall -pipe -g -O2 -MT exports.o -MD -MP -MF .deps/exports.Tpo -c -o exports.o exports.c
exports.c:33:27: error: pseudoflavors.h: No such file or directory

Whoops, I should have actually looked at the compile output yesterday before jumping to conclusions. Looks like pseudoflavors.h didn't get added to the git repo. (Neil--just pipe a mailbox to "git am", and it'll take care of adding new files.)

(I haven't checked yet whether it's still OK with --disable-gss and --disable-nfsv4....)

--b.

support/include/pseudoflavors.h new file +7 -0
new file mode 100644
index 0000000..c21087b
@@ -0,0 +1,17 @@
+#define RPC_AUTH_GSS_KRB5       390003
+#define RPC_AUTH_GSS_KRB5I      390004
+#define RPC_AUTH_GSS_KRB5P      390005
+#define RPC_AUTH_GSS_LKEY       390006
+#define RPC_AUTH_GSS_LKEYI      390007
+#define RPC_AUTH_GSS_LKEYP      390008
+#define RPC_AUTH_GSS_SPKM       390009

support/include/pseudoflavors.h line 17

Quoted 10 lines
support/include/pseudoflavors.h new file +10 -0
+#define RPC_AUTH_GSS_SPKMI      390010
+#define RPC_AUTH_GSS_SPKMP      390011
+
+struct flav_info {
+	char    *flavour;
+	int     fnum;
+};
+
+extern struct flav_info flav_map[];
+extern const int flav_map_size;

begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle Corporation;Corporate Architecture: Linux Projects Group adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA title:Principal Member of Staff
tel;work:+1 248 614 5091
x-mozilla-html:FALSE
url:http://oss.oracle.com/~cel
version:2.1
end:vcard

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#5 lore raw

Re: [PATCH] fix broken compile due to missing pseudoflavors.h

In reply to J. Bruce Fields

FYI:

Yes, this fixes the build breakage with "./configure --disable-gss --disable-nfsv4"

Quoted 42 lines · J. Bruce Fields

From: J. Bruce Fields <[email protected]>

Commit e9b0bed761bc77ba046f53be2ec324c4b61357ff should also have added this file.

---
 support/include/pseudoflavors.h |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
 create mode 100644 support/include/pseudoflavors.h
Quoted 6 lines · Chuck Lever

Making all in nfs
make[2]: Entering directory `/u/cel/nfs-utils/support/nfs' gcc -DHAVE_CONFIG_H -I. -I../../support/include -I../../support/include -D_GNU_SOURCE -Wall -pipe -g -O2 -MT exports.o -MD -MP -MF .deps/exports.Tpo -c -o exports.o exports.c
exports.c:33:27: error: pseudoflavors.h: No such file or directory

Whoops, I should have actually looked at the compile output yesterday before jumping to conclusions. Looks like pseudoflavors.h didn't get added to the git repo. (Neil--just pipe a mailbox to "git am", and it'll take care of adding new files.)

(I haven't checked yet whether it's still OK with --disable-gss and --disable-nfsv4....)

--b.

support/include/pseudoflavors.h new file +7 -0
new file mode 100644
index 0000000..c21087b
@@ -0,0 +1,17 @@
+#define RPC_AUTH_GSS_KRB5       390003
+#define RPC_AUTH_GSS_KRB5I      390004
+#define RPC_AUTH_GSS_KRB5P      390005
+#define RPC_AUTH_GSS_LKEY       390006
+#define RPC_AUTH_GSS_LKEYI      390007
+#define RPC_AUTH_GSS_LKEYP      390008
+#define RPC_AUTH_GSS_SPKM       390009

support/include/pseudoflavors.h line 17

Quoted 10 lines
support/include/pseudoflavors.h new file +10 -0
+#define RPC_AUTH_GSS_SPKMI      390010
+#define RPC_AUTH_GSS_SPKMP      390011
+
+struct flav_info {
+	char    *flavour;
+	int     fnum;
+};
+
+extern struct flav_info flav_map[];
+extern const int flav_map_size;

begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle Corporation;Corporate Architecture: Linux Projects Group adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA title:Principal Member of Staff
tel;work:+1 248 614 5091
x-mozilla-html:FALSE
url:http://oss.oracle.com/~cel
version:2.1
end:vcard

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs