Skip to contentSkip to conversation

sasl plugin compilation failure

DISCUSSION Guillaume Rousse 4 participants 11 messages Aug 23, 2006 – May 8, 2007 Kernel automounter

lore
Share & tools
lore
#0 lore raw

gcc -shared -Xlinker -rpath -Xlinker /usr/lib64/autofs -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -DDONTSTRIP -D_REENTRANT -D_REENTRANT -I../include -I../lib -fPIC -D_GNU_SOURCE -DAUTOFS_LIB_DIR=\"/usr/lib64/autofs\" -DAUTOFS_MAP_DIR=\"/etc/autofs\" -o mount_nfs.so \
mount_nfs.c replicated.o ../lib/autofs.a -lnsl
In file included from cyrus-sasl.c:59:
../include/lookup_ldap.h:41: error: expected specifier-qualifier-list before 'krb5_principal'

I had to disable sasl explicitely. I'm using gcc 4.1.1.

Signature · 5 lines
Guillaume Rousse
Projet Estime, INRIA
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay Cedex - France
maintainer
#1 lore raw
Quoted 11 lines · Guillaume Rousse

gcc -shared -Xlinker -rpath -Xlinker /usr/lib64/autofs -O2 -g -pipe

(quoted diff) +0 -4
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -DDONTSTRIP -D_REENTRANT
-D_REENTRANT -I../include -I../lib -fPIC -D_GNU_SOURCE
-DAUTOFS_LIB_DIR=\"/usr/lib64/autofs\" -DAUTOFS_MAP_DIR=\"/etc/autofs\"
-o mount_nfs.so \
        mount_nfs.c replicated.o ../lib/autofs.a -lnsl

In file included from cyrus-sasl.c:59:
../include/lookup_ldap.h:41: error: expected specifier-qualifier-list before 'krb5_principal'

I had to disable sasl explicitely. I'm using gcc 4.1.1.

What version and what patches?

Ian

#2 lore raw
Quoted 12 lines · Ian Kent
Quoted 10 lines · Guillaume Rousse

gcc -shared -Xlinker -rpath -Xlinker /usr/lib64/autofs -O2 -g -pipe

(quoted diff) +0 -4
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -DDONTSTRIP -D_REENTRANT
-D_REENTRANT -I../include -I../lib -fPIC -D_GNU_SOURCE
-DAUTOFS_LIB_DIR=\"/usr/lib64/autofs\" -DAUTOFS_MAP_DIR=\"/etc/autofs\"
-o mount_nfs.so \
        mount_nfs.c replicated.o ../lib/autofs.a -lnsl

In file included from cyrus-sasl.c:59:
../include/lookup_ldap.h:41: error: expected specifier-qualifier-list before 'krb5_principal'

Quoted 3 lines
Quoted 1 line

I had to disable sasl explicitely. I'm using gcc 4.1.1.

What version and what patches?

5.0.1, with all patches applied until autofs-5.0.1-rc1-shutdown-races.patch.

#3 lore raw
Quoted 8 lines · Guillaume Rousse
Quoted 7 lines
Quoted 5 lines

In file included from cyrus-sasl.c:59:
../include/lookup_ldap.h:41: error: expected specifier-qualifier-list before 'krb5_principal'

I had to disable sasl explicitely. I'm using gcc 4.1.1.

What version and what patches?

5.0.1, with all patches applied until autofs-5.0.1-rc1-shutdown-races.patch.

I've run into the same thing on sled10. Did you figure out a fix for this?

Signature · 4 lines
Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com
Sideshow Bob: "I'll be back.  You can't keep the Democrats out of the white 
house forever, and when they get in, I'm back on the street... with all my 
criminal buddies!  Aaah ha ha ha!" ==> Simpsons.
#4 lore raw
In reply to Guillaume Rousse

==> On Wed, 23 Aug 2006 16:48:34 +0200, Guillaume Rousse <[email protected]> said:

Guillaume> gcc -shared -Xlinker -rpath -Xlinker /usr/lib64/autofs -O2 Guillaume> -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -DDONTSTRIP Guillaume> -D_REENTRANT -D_REENTRANT -I../include -I../lib -fPIC Guillaume> -D_GNU_SOURCE -DAUTOFS_LIB_DIR=\"/usr/lib64/autofs\" Guillaume> -DAUTOFS_MAP_DIR=\"/etc/autofs\" -o mount_nfs.so \
Guillaume> mount_nfs.c replicated.o ../lib/autofs.a -lnsl In file Guillaume> included from cyrus-sasl.c:59: ../include/lookup_ldap.h:41:
Guillaume> error: expected specifier-qualifier-list before Guillaume> 'krb5_principal'

Guillaume> I had to disable sasl explicitely. I'm using gcc 4.1.1. -- Guillaume> Guillaume Rousse Projet Estime, INRIA Domaine de Voluceau Guillaume> Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France

Do you have krb5 development libraries installed?

-Jeff

#5 lore raw
Quoted 5 lines · Jeff Moyer

Guillaume> I had to disable sasl explicitely. I'm using gcc 4.1.1. -- Guillaume> Guillaume Rousse Projet Estime, INRIA Domaine de Voluceau Guillaume> Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France

Do you have krb5 development libraries installed?

I know I do... SLED10 install.. all the krb5* rpms are installed (64 and 32bit including -devel*) and all the openssl ones too.

I was able to disable sasl for now too, which is ok for the short term because we'd like to use sasl eventually.

Signature · 6 lines
Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com
There was once a young man who, in his youth, professed his desire
become a great writer. When asked to define "great" he said, "I want to 
write stuff that the whole world will read, stuff that people will react 
to on a truly emotional level, stuff that will make them scream, cry, howl
in pain and anger!" == He now works for Microsoft, writing error messages.
#6 lore raw

==> On Fri, 4 May 2007 14:09:22 -0700, Mike Marion <[email protected]> said:

Mike> On Thu, May 03, 2007 at 05:46:18PM -0400, Jeff Moyer wrote:
Mike> > Guillaume> I had to disable sasl explicitely. I'm using gcc 4.1.1. -- Mike> > Guillaume> Guillaume Rousse Projet Estime, INRIA Domaine de Voluceau Mike> > Guillaume> Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France Mike> >
Mike> > Do you have krb5 development libraries installed?

Mike> I know I do... SLED10 install.. all the krb5* rpms are installed (64 and Mike> 32bit including -devel*) and all the openssl ones too.

Mike> I was able to disable sasl for now too, which is ok for the short term Mike> because we'd like to use sasl eventually.

Hmm, can you add a:
#include <krb5.h>

to include/lookup_ldap.h ?

-Jeff

#7 lore raw
Quoted 4 lines · Jeff Moyer

Hmm, can you add a:
#include <krb5.h>

to include/lookup_ldap.h ?

Yep.. that did it. Compiles and links against libsasl2.so now.

Signature · 3 lines
Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com
SCCS, the source motel!  Programs check in and never check out!  - Ken
Thompson
#8 lore raw

==> Regarding Re: [autofs] sasl plugin compilation failure; Mike Marion <[email protected]> adds:

Quoted 3 lines · Jeff Moyer
Quoted 3 lines

Hmm, can you add a: #include <krb5.h>

to include/lookup_ldap.h ?

mmarion> Yep.. that did it. Compiles and links against libsasl2.so now.

Ian, it seems we need this patch. I have no idea how things build without it! Additionally, we should add some configure magic to check for the krb5 development libraries.

-Jeff

include/lookup_ldap.h +1 -0
index d33bda9..571c8fe 100644
@@ -5,6 +5,7 @@
 #include <openssl/ssl.h>
 #include <openssl/evp.h>
 #include <openssl/err.h>
+#include <krb5.h>
 #include <sasl/sasl.h>
 #include <libxml/tree.h>
 #endif
maintainer
#9 lore raw
Quoted 5 lines · On Mon, 2007-05-07 at 08:25 -0400, [email protected] wrote:

==> Regarding Re: [autofs] sasl plugin compilation failure; Mike Marion <[email protected]> adds:

Quoted 2 lines · Jeff Moyer
Quoted 2 lines

Hmm, can you add a: #include <krb5.h>

Quoted 7 lines
Quoted 1 line
Quoted 1 line

to include/lookup_ldap.h ?

mmarion> Yep.. that did it. Compiles and links against libsasl2.so now.

Ian, it seems we need this patch. I have no idea how things build without it! Additionally, we should add some configure magic to check for the krb5 development libraries.

Strange.
I'll get onto it.

Ian

#10 lore raw
In reply to [email protected]
Quoted 3 lines · On Mon, May 07, 2007 at 08:25:36AM -0400, [email protected] wrote:

Ian, it seems we need this patch. I have no idea how things build without it! Additionally, we should add some configure magic to check for the krb5 development libraries.

The builds on our sles9-sp3 hosts all worked fine... they appeared to not even bother trying sasl. I'm guessing that's what's happening for most people, it's not seeing something and just not even trying sasl.

The builds that failed for me were on sles/sled10 vs sles9-sp3.

Signature · 6 lines
Mike Marion-Unix SysAdmin/Staff Engineer-http://www.qualcomm.com
Ralph: "Oh yes, Larry Benson... the x1000.  Worked out better then you dreamed, 
didn't they?" 
Larry: "Actually there was a little bit of a problem."
Ralph: "Then it's with your software!" -- Small Soldiers.. sounds like most
Chip and OS companies though. :)