failure to compile a static library in Linux (Ubuntu)

Andreas Hasenack ahasenack at terra.com.br
Tue Jun 3 10:25:57 EDT 2008


Steven Van Ingelgem wrote:
> Starting from a clean 2.1.22 release I use the following configure line:
> LDFLAGS="-L/myssl_dir/lib" CPPFLAGS="-I/myssl_dir/include"
> CFLAGS="-I/myssl_dir/include" ./configure --disable-sample
> --enable-static --disable-shared --enable-staticdlopen --disable-java
> 
> This however fails with the following message:
> adding static plugins and dependencies
> ar cru .libs/libsasl2.a sasldb.o db_none.o cram.o digestmd5.o otp.o
> plain.o anonymous.o
> ar: sasldb.o: No such file or directory
> make[2]: *** [libsasl2.a] Error 1
> make[2]: Leaving directory `/home/steven/src/QuickFile/externals/sasl2/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/steven/src/QuickFile/externals/sasl2'
> make: *** [all] Error 2
> 
> 
> Does anyone know how to fix this?

Looks like an old bug introduced in 2.1.21 when using --enable-static.

Try running make twice, i.e., ignore the first error and just run again:
make || :
make




More information about the Cyrus-sasl mailing list