tech-pkg archive

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

Re: nvi on MacOS

Simon Burge said on 5/2/08 02:32:
With editors/nvi (from pkgsrc-2007Q4) on MacOS 10.5.1 I get the

        mini:pkgsrc/editors/nvi 83% nvi
        dyld: Symbol not found: ___global_list
          Referenced from: /Volumes/NetBSD/pkg/lib/libvi.0.dylib
          Expected in: flat namespace

        Trace/BPT trap
        Exit 133

If I remove the strip option from the install command (or run nvi
directly from the work directory), nvi then appears to work normally.

Is the following an acceptable patch to fix this?

Index: Makefile
RCS file: /cvsroot/pkgsrc/editors/nvi/Makefile,v
retrieving revision 1.26
diff -d -p -u -r1.26 Makefile
--- Makefile    3 Nov 2007 13:23:53 -0000       1.26
+++ Makefile    5 Feb 2008 02:27:56 -0000
@@ -27,6 +27,7 @@ CONFIGURE_ENV+=               vi_cv_include_sys_selec
 .elif ${OPSYS} == "Darwin"
 CONFIGURE_ENV+=                vi_cv_sys5_pty=no
 LDFLAGS+=              -flat_namespace
WRKSRC= ${WRKDIR}/${DISTNAME}/build.unix

Your problem with nvi sounds very similar to one I encountered yesterday
with PostgreSQL 8.3. Strip is dangerous on Mac OS X (at least from 10.4
onwards) as it removes undefined symbols from shared libraries. I got
bitten by this trying to install PostgreSQL using "install-strip", and
ended up with complaints about missing symbols when I tried to
initialise the database. The details of the problem can be found here,
along with a possible solution:


Home | Main Index | Thread Index | Old Index