Re: [gmime-devel] Solaris linker errors:
- From: Jeffrey Stedfast <fejj novell com>
- To: Lou Picciano <loupicciano comcast net>
- Cc: gmime-devel-list gnome org
- Subject: Re: [gmime-devel] Solaris linker errors:
- Date: Fri, 19 Feb 2010 10:57:03 -0500
Jeffrey Stedfast wrote:
> Lou Picciano wrote:
>
>> Fellow gmime-ers:
>>
>> Am trying to build gmime on Solaris 10 SPARC. Make proceeds AOK until
>> the linking step(s), when it chokes on:
>>
>> libtool: link: gcc -g -O2 -fno-strict-aliasing -o .libs/uuencode
>> uuencode.o ../util/.libs/libutil.a -L/usr/local/lib -L/usr/lib
>> -L/usr/openwin/lib -L/usr/local/ssl/lib -L/usr/X11R6/lib
>> -L/usr/local/BerkeleyDB.4.7/lib ../gmime/.libs/libgmime-2.6.so
>> -L/usr/local/BerkeleyDB.4.2/lib -L/usr/local/pgsql/lib
>> /usr/local/lib/libgthread-2.0.so -lpthread -lthread -lrt
>> /usr/local/lib/libgio-2.0.so /usr/local/lib/libgobject-2.0.so
>> /usr/local/lib/libgmodule-2.0.so -ldl /usr/local/lib/libglib-2.0.so
>> /usr/local/lib/libintl.so -lsec -lc -lz -lsocket
>> /usr/local/lib/libiconv.so -R/usr/local/lib
>>
>> Undefined first referenced
>> symbol in file
>> gpgme_key_unref ../gmime/.libs/libgmime-2.6.so
>> gpgme_op_sign_result ../gmime/.libs/libgmime-2.6.so
>> gpgme_get_key ../gmime/.libs/libgmime-2.6.so
>> ... (many other similar lines) ...
>> ld: fatal: Symbol referencing errors. No output written to .libs/uuencode
>>
>> Anyone have an idea?
>>
>
> It looks like you don't have GpgMe installed. GpgMe was meant to be an
> optional dependency but I goofed in 2.5.0 and 2.5.1 and even if the
> configure script fails to detect GpgMe, it still tries to build the code.
>
> I've fixed this (I think) in the master git branch, but I have not yet
> released a 2.5.2 which contains the fix. Perhaps I'll try to do that
> this weekend.
>
On second thought, if you didn't have gpgme installed, it shouldn't have
even made it that far. I guess the problem is that the Makefiles aren't
pulling in the extra libs (surprising that this has never come up before...)
Can you try applying the attached patch?
Jeff
diff --git a/examples/Makefile.am b/examples/Makefile.am
index bc067a6..4c34710 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -15,7 +15,7 @@ DEPS = \
LDADDS = \
$(top_builddir)/util/libutil.la \
$(top_builddir)/gmime/libgmime-$(GMIME_API_VERSION).la \
- $(GLIB_LIBS)
+ $(GLIB_LIBS) $(EXTRA_LIBS)
basic_example_SOURCES = basic-example.c
basic_example_LDFLAGS =
diff --git a/gmime/Makefile.am b/gmime/Makefile.am
index a7ed379..540ca60 100644
--- a/gmime/Makefile.am
+++ b/gmime/Makefile.am
@@ -149,7 +149,7 @@ install-libtool-import-lib:
uninstall-libtool-import-lib:
endif
-libgmime_2_6_la_LIBADD = $(top_builddir)/util/libutil.la $(GLIB_LIBS)
+libgmime_2_6_la_LIBADD = $(top_builddir)/util/libutil.la $(GLIB_LIBS) $(EXTRA_LIBS)
libgmime_2_6_la_LDFLAGS = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
-export-dynamic $(no_undefined)
diff --git a/src/Makefile.am b/src/Makefile.am
index 4725b96..f50e45b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -13,7 +13,7 @@ DEPS = \
LDADDS = \
$(top_builddir)/util/libutil.la \
$(top_builddir)/gmime/libgmime-$(GMIME_API_VERSION).la \
- $(GLIB_LIBS)
+ $(GLIB_LIBS) $(EXTRA_LIBS)
if SYSTEM_GETOPT
GETOPT_SOURCES =
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 034e5d2..566c385 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -31,7 +31,7 @@ MANUAL_TESTS = \
noinst_PROGRAMS = $(AUTOMATED_TESTS) $(MANUAL_TESTS)
DEPS = $(top_builddir)/gmime/libgmime-$(GMIME_API_VERSION).la
-LDADDS = $(top_builddir)/gmime/libgmime-$(GMIME_API_VERSION).la $(GLIB_LIBS)
+LDADDS = $(top_builddir)/gmime/libgmime-$(GMIME_API_VERSION).la $(GLIB_LIBS) $(EXTRA_LIBS)
test_best_SOURCES = test-best.c
test_best_LDFLAGS =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]