failure to compile a static library in Linux (Ubuntu)

Steven Van Ingelgem steven at vaningelgem.be
Tue Jun 3 11:06:17 EDT 2008


2008/6/3 Andreas Hasenack <ahasenack at terra.com.br>:

> 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
>
>
>
Thanks Andreas, "make || make" works fine.


BR,
Steven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.andrew.cmu.edu/mailman/private/cyrus-sasl/attachments/20080603/e9f91f65/attachment.html 


More information about the Cyrus-sasl mailing list