Subject: Re: pkg/35592: Pine fails to run on Mac OS
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: OBATA Akio <obache@netbsd.org>
List: pkgsrc-bugs
Date: 06/06/2007 16:40:03
The following reply was made to PR pkg/35592; it has been noted by GNATS.

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/35592: Pine fails to run on Mac OS
Date: Thu, 07 Jun 2007 01:38:01 +0900

 On Tue, 13 Feb 2007 08:15:15 +0900, Edgar Fuß <ef@math.uni-bonn.de> wrote:
 
 >  Sorry for the incomplete report. The exact error message is:
 >  dyld: Symbol not found: _mm_dlog
 >     Referenced from: /usr/pkg/lib/libc-client.4.dylib
 >     Expected in: flat namespace
 > Trace/BPT trap
 
 Following patch may fix this problem (and also fix imap-uw itself).
 But I'm not expert of this area, may not right kinds of way.
 
 Index: mail/imap-uw/Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/mail/imap-uw/Makefile,v
 retrieving revision 1.116
 diff -u -r1.116 Makefile
 --- mail/imap-uw/Makefile       21 Mar 2007 19:39:08 -0000      1.116
 +++ mail/imap-uw/Makefile       6 Jun 2007 16:30:44 -0000
 @@ -34,6 +34,7 @@
   BUILD_TARGET.Linux=    slx
   .endif
   BUILD_TARGET.Darwin=   osx
 +LDFLAGS+=              -flat_namespace
   .if ${OPSYS} == "IRIX"
   .  if ${OS_VERSION} >= 6.5
   BUILD_TARGET.IRIX=     sg6
 Index: mail/imap-uw/buildlink3.mk
 ===================================================================
 RCS file: /cvsroot/pkgsrc/mail/imap-uw/buildlink3.mk,v
 retrieving revision 1.10
 diff -u -r1.10 buildlink3.mk
 --- mail/imap-uw/buildlink3.mk  26 Jul 2006 20:00:27 -0000      1.10
 +++ mail/imap-uw/buildlink3.mk  6 Jun 2007 16:30:44 -0000
 @@ -11,10 +11,15 @@
   BUILDLINK_PACKAGES+=   imap-uw
   BUILDLINK_ORDER:=      ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}imap-uw
 
 +.include "../../mk/bsd.fast.prefs.mk"
 +
   .if !empty(IMAP_UW_BUILDLINK3_MK:M+)
   BUILDLINK_API_DEPENDS.imap-uw+=        imap-uw>=2004
   BUILDLINK_ABI_DEPENDS.imap-uw+=        imap-uw>=2004enb1
   BUILDLINK_PKGSRCDIR.imap-uw?=  ../../mail/imap-uw
 +. if ${OPSYS} == "Darwin"
 +BUILDLINK_LDFLAGS.imap-uw+=    -flat_namespace
 +. endif
   .endif # IMAP_UW_BUILDLINK3_MK
 
   .include "../../security/openssl/buildlink3.mk"
 
 -- 
 "Of course I love NetBSD":-)
 OBATA Akio / obache@NetBSD.org