Subject: pkg/23855: databases/libgda build fails on FreeBSD; "hidden dependency" possible; please fix
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dotz@irc.pl>
List: netbsd-bugs
Date: 12/23/2003 13:11:01
>Number: 23855
>Category: pkg
>Synopsis: databases/libgda build fails on FreeBSD; "hidden dependency" possible; please fix
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Dec 23 13:12:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Michal Pasternak
>Release: N/A
>Organization:
>Environment:
FreeBSD mainframe.w.lub.pl 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Mon Oct 27 17:51:09 GMT 2003 root@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/GENERIC i386
>Description:
/bin/sh ../libtool --mode=link cc -O2 -I/usr/pkg/include -I/usr/X11R6/include -Wall -Wunused -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -liconv -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -o gda-config-tool gda-config-tool.o ../libgda/libgda-2.la -lreadline -lcurses -lhistory -lpopt -Wl,-R/usr/pkg/lib -pthread -Wl,--export-dynamic -L/usr/pkg/lib -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lxslt -lxml2 -lz -lm -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lintl -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -liconv
cc -O2 -I/usr/pkgsrc/databases/libgda/work/.buildlink/include -I/usr/pkgsrc/databases/libgda/work/.buildlink-x11/include -Wall -Wunused -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib -o .libs/gda-config-tool gda-config-tool.o -Wl,-R/usr/pkg/lib -pthread -Wl,--export-dynamic -Wl,-R/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkgsrc/databases/libgda/work/.buildlink/lib -L/usr/pkgsrc/databases/libgda/work/.buildlink-x11/lib ../libgda/.libs/libgda-2.so -L/usr/pkg/lib -L/usr/pkgsrc/databases/libgda/work/libgda-1.0.0/libsql/.libs /usr/pkgsrc/databases/libgda/work/libgda-1.0.0/libsql/.libs/libgdasql.so /usr/pkg/lib/libreadline.so -lcurses /usr/pkg/lib/libhistory.so /usr/pkg/lib/libpopt.so /usr/pkg/lib/libgobject-2.0.so /usr/pkg/lib/libgthread-2.0.so -lc_r /usr/pkg/lib/libgmodule-2.0.so /usr/pkg/lib/libglib-2.0.so /usr/pkg/lib/libxslt.so /usr/pkg/lib/libxml2.so -lz /usr/lib/libz.so -l
m /usr/pkg/lib/libintl.so -liconv /usr/pkg/lib/libiconv.so -Wl,--rpath -Wl,/usr/pkg/lib
gda-config-tool.o: In function `completion_func':
gda-config-tool.o(.text+0x17f4): undefined reference to `rl_completion_matches'
gmake[1]: *** [gda-config-tool] Błąd 1
gmake[1]: Leaving directory `/usr/pkgsrc/databases/libgda/work/libgda-1.0.0/tools'
gmake: *** [all-recursive] Błąd 1
*** Error code 2
Stop.
bmake: stopped in /usr/pkgsrc/databases/libgda
*** Error code 1
>How-To-Repeat:
Obvious
>Fix:
-STABLE's /usr/lib/libreadline doesn't have rl_completion_matches, so I have defined USE_GNU_READLINE in /etc/mk.conf. The problem will still persits, because libgda's Makefile doesn't include buildlink2.mk for readline, so please apply this patch:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/databases/libgda/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile 12 Nov 2003 01:31:47 -0000 1.6
+++ Makefile 23 Dec 2003 13:00:56 -0000
@@ -10,4 +10,5 @@
PKGCONFIG_OVERRIDE= ${WRKSRC}/libgda.pc.in
.include "../../textproc/scrollkeeper/omf.mk"
+.include "../../devel/readline/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: