Subject: pkg/22692: chat/gaim does not build (gaim-remote.so link problem)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tv@pobox.com>
List: netbsd-bugs
Date: 09/05/2003 00:43:54
>Number:         22692
>Category:       pkg
>Synopsis:       chat/gaim does not build (gaim-remote.so link problem)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 05 04:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Todd Vierling
>Release:        NetBSD 1.6.1_STABLE
>Organization:
	DUH.ORG:  Pointing out the obvious since 1994.
>Environment:
System: NetBSD server.duh.org 1.6.1_STABLE NetBSD 1.6.1_STABLE (SERVER) #11: Sun Aug 17 17:30:04 EDT 2003 tv@server.duh.org:/export/SRC/duh/netbsd-kernels/SERVER i386
Architecture: i386
Machine: i386
>Description:

gaim-remote.so, the plugin, tries to link against libgaim-remote via
"-lgaim-remote".  As a shared module, this doesn't work properly; the
build breaks by saying that -lgaim-remote is not found.

This might be an OS-specific thing, but the fact remains that it should be
using the .la file to do the link with libtool.

>How-To-Repeat:

cd pkgsrc/chat/gaim && make

>Fix:

patch-aa fixes this for the gaim-remote client, but not for the plugin.
Here's the proper fix for the plugin:

Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/chat/gaim/distinfo,v
retrieving revision 1.30
diff -u -r1.30 distinfo
--- distinfo	2003/09/04 12:57:00	1.30
+++ distinfo	2003/09/05 04:40:24
@@ -3,3 +3,4 @@
 SHA1 (gaim-0.68.tar.gz) = 00b6fbdfa13e681771303aa29ead0ddca15384a1
 Size (gaim-0.68.tar.gz) = 4145453 bytes
 SHA1 (patch-aa) = bd11a2c4b74c1670503b09b5b87e483ce06060a9
+SHA1 (patch-ab) = fd2244871e30b0b7ac014981bdb5436c49dd7559
Index: patches/patch-ab
===================================================================
RCS file: patch-ab
diff -N patch-ab
--- /dev/null	Thu Jul 11 11:18:53 2002
+++ patch-ab	Fri Sep  5 04:40:24 2003
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- plugins/gaim-remote/Makefile.in.orig	Fri Sep  5 00:39:05 2003
++++ plugins/gaim-remote/Makefile.in
+@@ -161,7 +161,7 @@ gaim_remote_la_LDFLAGS = -module -avoid-
+ @PLUGINS_TRUE@plugin_LTLIBRARIES = gaim-remote.la
+ 
+ @PLUGINS_TRUE@gaim_remote_la_SOURCES = remote.c
+-@PLUGINS_TRUE@gaim_remote_la_LIBADD = -lgaim-remote
++@PLUGINS_TRUE@gaim_remote_la_LIBADD = libgaim-remote.la
+ 
+ AM_CPPFLAGS = \
+ 	-DDATADIR=\"$(datadir)\" \
>Release-Note:
>Audit-Trail:
>Unformatted: