Mailinglist Archive: opensuse-buildservice (189 mails)

< Previous Next >
Re: [opensuse-buildservice] brp-check-la error
  • From: Stanislav Brabec <sbrabec@xxxxxxx>
  • Date: Thu, 19 Feb 2009 14:05:19 +0100
  • Message-id: <1235048719.28630.47.camel@xxxxxxxxxxxxxx>
Manvendra Bhangui wrote:

The line which is causing this problem is

libindimail_la_LIBADD = cdb/*.o @LIB_CRYPT@ -Leps-1.2 -leps
-L@mysql_libdir@ -lmysqlclient -lm

Bad use of libtool:
-L should refer to system wide library. If you want to refer to
uninstalled library, you have to specify a part to .la file without -L
or -l.

Possible fix:
libindimail_la_LIBADD = cdb/*.o @LIB_CRYPT@ $(top_builddir)/eps-1.2/libeps.la
-L@mysql_libdir@ -lmysqlclient -lm

Well, cdb/*.o is incorrect as well. It should be specified in
libindimail_la_SOURCES or you can create a temporary libtool library
using noinst_LTLIBRARIES and then refer to its .la file.

Note that if cdb objects are not built yet it may expands to empty
string => You may have problems and you probably will have problems with
parallel build.

Then it may look:
libindimail_la_SOURCES = .... cdb/...
libindimail_la_LIBADD = @LIB_CRYPT@ $(top_builddir)/eps-1.2/libeps.la
-L@mysql_libdir@ -lmysqlclient -lm
or
libindimail_la_LIBADD = $(top_builddir)/cdb/libcdb.la @LIB_CRYPT@
$(top_builddir)/eps-1.2/libeps.la -L@mysql_libdir@ -lmysqlclient -lm
and in another cdb/Makefile.am
noinst_LTLIBRARIES = libcdb.la
libcdb_la_SOURCES = ...

(listing them explicitly is better than $(top_srcdir)/cdb/*.c)

I agree with deleting of .la files, but even without it deleting, you
should get no failure.

For more see info libtool: Linking executables

Hint: "make distcheck" can point to possible upstream problems.

--
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: sbrabec@xxxxxxx
Lihovarsk√° 1060/12 tel: +420 284 028 966, +49 911 740538747
190 00 Praha 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups