pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/40222: pkgsrc/databases/sqsh fix build w/sybase libs on Solaris

>Number:         40222
>Category:       pkg
>Synopsis:       pkgsrc/databases/sqsh fix build w/sybase libs on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 18 22:35:00 +0000 2008
>Originator:     Tim
>Release:        pkgsrc current
SunOS hostname 5.10 Generic_137111-05 sun4u sparc SUNW,Sun-Fire-V440 Solaris
sqsh uses a Sybase library inconveniently named intl, which conflicts with intl 
from gettext.  At least on solaris this causes the build to fail with 
unresolved references as the linker chooses the intl lib from gettext rather 
than from sybase.
A fix is to build using --with-static, and for some reason this also requires 
explicit inclusion of the solaris socket library.
Patch is included.
Sybase libraries required in $SYBASE/lib
mk.conf: PKG_OPTIONS.sqsh=sybase-openclient
cd pkgsrc/databases/sqsh
RCS file: /cvsroot/pkgsrc/databases/sqsh/,v
retrieving revision 1.1
diff -u -r1.1
---  22 Apr 2008 16:23:36 -0000      1.1
+++  18 Dec 2008 22:29:16 -0000
@@ -32,6 +32,8 @@
 .  if defined(SYBASE) && exists(${SYBASE}/lib/
+LIBS.SunOS+=           -lsocket
+CONFIGURE_ARGS+=       --with-static
 CONFIGURE_ENV+=                SYBASE=${SYBASE:Q}
 .  else
 PKG_FAIL_REASON+=      "You must define SYBASE to the base directory of Open 

Home | Main Index | Thread Index | Old Index