Subject: pkg/34562: subversion-base compile fails on solaris
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 09/19/2006 22:05:00
>Number:         34562
>Category:       pkg
>Synopsis:       subversion-base compile fails on solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 19 22:05:00 +0000 2006
>Originator:     john heasley
>Release:        NetBSD 3.99.17
System: NetBSD guelah 3.99.17 NetBSD 3.99.17 (guelah) #1: Tue Apr 18 01:51:21 UTC 2006 root@oak:/sys/arch/sparc64/compile/guelah sparc64
Architecture: sparc64
Machine: sparc64
The build of devel/subversion-base fails on solaris 9 due to missing linker
include of gettext-lib (-lintl).

cd subversion/svn && /bin/ksh /home/pkgsrc/devel/subversion-base/work/subversion
-1.4.0/libtool --tag=CC --silent --mode=link gcc -static-libgcc -D_LARGEFILE64_S
OURCE -mcpu=v9 -mtune=ultrasparc -m64 -D__sparc_v9__  -g -static-libgcc -static-
libgcc -D_LARGEFILE64_SOURCE -mcpu=v9 -mtune=ultrasparc -m64 -D__sparc_v9__ -pip
e -I/usr/pkg/include -I/usr/include   -pthread   -L/usr/pkg/lib -Wl,-R/usr/pkg/l
ib -L/usr/lib -Wl,-R/usr/lib    -L/usr/pkg/lib  -rpath /usr/pkg/lib -o svn  add-
cmd.o blame-cmd.o cat-cmd.o checkout-cmd.o cleanup-cmd.o commit-cmd.o copy-cmd.o
 delete-cmd.o diff-cmd.o export-cmd.o help-cmd.o import-cmd.o info-cmd.o list-cm
d.o lock-cmd.o log-cmd.o main.o merge-cmd.o mkdir-cmd.o move-cmd.o notify.o prop
del-cmd.o propedit-cmd.o propget-cmd.o proplist-cmd.o props.o propset-cmd.o reso
lved-cmd.o revert-cmd.o status-cmd.o status.o switch-cmd.o unlock-cmd.o update-c
md.o util.o ../../subversion/libsvn_client/ ../../subversion/l
ibsvn_wc/ ../../subversion/libsvn_ra/ ../../subversi
on/libsvn_delta/ ../../subversion/libsvn_diff/
../../subversion/libsvn_subr/ /usr/pkg/lib/ -lexp
at /usr/pkg/lib/ -lsendfile -lrt -lm -lsocket  -lresolv -lnsl -lpthre
ad -ldl /usr/pkg/lib/ -lsocket  -lz

Undefined                       first referenced
 symbol                             in file
libintl_bind_textdomain_codeset     ../../subversion/libsvn_subr/.libs/libsvn_su
libintl_bindtextdomain              ../../subversion/libsvn_subr/.libs/libsvn_su
libintl_dgettext                    blame-cmd.o
ld: fatal: Symbol referencing errors. No output written to .libs/svn
collect2: ld returned 1 exit status
*** Error code 1

Not sure; devel/subversion/Makefile.common includes gettext-lib/buildlink3.
This patch works for me.

--- configure.orig	2006-09-07 23:22:11.000000000 +0000
+++ configure	2006-09-19 19:22:35.088202000 +0000
@@ -20672,6 +20672,7 @@
 if test "$ac_cv_search_bindtextdomain" != no; then
   test "$ac_cv_search_bindtextdomain" = "none required" || LIBS="$ac_cv_search_bindtextdomain $LIBS"
+  LIBS="$LIBS -lintl"
                     { echo "$as_me:$LINENO: WARNING: bindtextdomain() not found.  Disabling NLS." >&5