Skip to contentSkip to conversation

sasl compilation error

DISCUSSION Guillaume Rousse 2 participants 4 messages Sep 10, 2007 – Sep 11, 2007 Kernel automounter

lore
Share & tools
lore
#0 lore raw

With gcc 4.2.1 and libsasl 2.1.22 (and autofs 5.0.2 with all patches applied):
gcc -shared -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fexceptions -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -fstack-protector-all -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I../include -I../lib -fPIC -D_GNU_SOURCE -DAUTOFS_LIB_DIR=\"/usr/lib/autofs\" -DAUTOFS_MAP_DIR=\"/etc/autofs\" -o mount_nfs.so \
mount_nfs.c replicated.o ../lib/autofs.a -lnsl
: mount_bind.so
: lookup_nisplus.so
cyrus-sasl.c: In function ‘sasl_do_kinit’:
cyrus-sasl.c:454: erreur: request for member ‘length’ in something not a structure or union
cyrus-sasl.c:455: erreur: request for member ‘data’ in something not a structure or union
cyrus-sasl.c:457: erreur: request for member ‘length’ in something not a structure or union
cyrus-sasl.c:458: erreur: request for member ‘data’ in something not a structure or union

Signature · 8 lines
Guillaume Rousse
Moyens Informatiques - INRIA Futurs
Tel: 01 69 35 69 62

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs
#1 lore raw
Quoted 13 lines · Guillaume Rousse

With gcc 4.2.1 and libsasl 2.1.22 (and autofs 5.0.2 with all patches applied):
gcc -shared -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fexceptions -fomit-frame-pointer -march=i586

(quoted diff) +0 -4
-mtune=generic -fasynchronous-unwind-tables -fstack-protector-all
-D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_FILE_OFFSET_BITS=64
-I../include -I../lib -fPIC -D_GNU_SOURCE
-DAUTOFS_LIB_DIR=\"/usr/lib/autofs\" -DAUTOFS_MAP_DIR=\"/etc/autofs\" -o

mount_nfs.so \
mount_nfs.c replicated.o ../lib/autofs.a -lnsl
: mount_bind.so
: lookup_nisplus.so
cyrus-sasl.c: In function ‘sasl_do_kinit’:

Quoted 8 lines

cyrus-sasl.c:454: erreur: request for member ‘length’ in something not a structure or union
cyrus-sasl.c:455: erreur: request for member ‘data’ in something not a structure or union
cyrus-sasl.c:457: erreur: request for member ‘length’ in something not a structure or union
cyrus-sasl.c:458: erreur: request for member ‘data’ in something not a structure or union

Do you have krb5 development libraries and headers installed? It's looking for this:

typedef struct krb5_principal_data {
    krb5_magic magic;
    krb5_data realm;
    krb5_data *data;            /* An array of strings */
    krb5_int32 length;
    krb5_int32 type;
} krb5_principal_data;

typedef krb5_principal_data * krb5_principal;

-Jeff

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

#2 lore raw

Jeff Moyer a écrit :

Quoted 11 lines

Do you have krb5 development libraries and headers installed? It's looking for this:

typedef struct krb5_principal_data {
    krb5_magic magic;
    krb5_data realm;
    krb5_data *data;            /* An array of strings */
    krb5_int32 length;
    krb5_int32 type;
} krb5_principal_data;
Quoted 1 line

typedef krb5_principal_data * krb5_principal;

Actually, I had heimdal libraries, instead of mit kerberos, and the lack of error message for missing header file confused me. Despite having the same include file name (krb5.h), heimdal does not have the same structure defined. It would be wise to add a configure test for this issue.

Installing MIT kerberos solved the issue, thanks.

Signature · 8 lines
Guillaume Rousse
Moyens Informatiques - INRIA Futurs
Tel: 01 69 35 69 62

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs
#3 lore raw
Quoted 12 lines · Guillaume Rousse
Quoted 11 lines · Jeff Moyer

Do you have krb5 development libraries and headers installed? It's looking for this:

typedef struct krb5_principal_data {
    krb5_magic magic;
    krb5_data realm;
    krb5_data *data;            /* An array of strings */
    krb5_int32 length;
    krb5_int32 type;
} krb5_principal_data;
Quoted 7 lines
Quoted 1 line

typedef krb5_principal_data * krb5_principal;

Actually, I had heimdal libraries, instead of mit kerberos, and the lack of error message for missing header file confused me. Despite having the same include file name (krb5.h), heimdal does not have the same structure defined. It would be wise to add a configure test for this issue.

Installing MIT kerberos solved the issue, thanks.

OK. Clearly, I haven't tried using the Heimdal implementation. I'll add it to my ever-growing list. ;)

Cheers,

Jeff