cyrusimap / cyrus-sasl

Other
130 stars 150 forks source link

make install fails with missing libsasldb.lai #301

Closed brong closed 13 years ago

brong commented 16 years ago

From: Patrick Welche Bugzilla-Id: 3082 Version: 2.1.x Owner: Ken Murchison

brong commented 16 years ago

From: Patrick Welche

"make install" fails with

/bin/ksh ../libtool --mode=install /usr/bin/install -c 'libsasldb.la' '/usr/local/lib/sasl2/libsasldb.la' /usr/bin/install -c .libs/libsasldb.lai /usr/local/lib/sasl2/libsasldb.la install: .libs/libsasldb.lai: stat: No such file or directory

This is because plugins/Makefile.am correctly sets -module and -rpath flags in

AM_LDFLAGS = -module -export-dynamic -rpath $(plugindir)

but then overrides these flags for every plugin with e.g.,

libplain_la_LDFLAGS = -version-info $(plain_version)

The plugins are then built without -module or -rpath, so libtool considers them to be convenience libraries which shouldn't be installed.

The attachment fixes this, and simplifies the makefile, as the plugins' version is always the same.

brong commented 15 years ago

From: Patrick Welche

Ralf Wildenhues pointed out that this is because of a change of behaviour in automake 1.10 - the patch still is correct either way though!

brong commented 15 years ago

Attachment-Id: 1016 From: Patrick Welche Type: text/plain File: plugin.diff

patch to Makefile.am

brong commented 15 years ago

From: Ken Murchison

Applied to CVS:

https://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/sasl/plugins/Makefile.am.diff?r1=1.78;r2=1.79

brong commented 15 years ago

From: Ken Murchison

Bug 3076 has been marked as a duplicate of this bug.