NetBSD Problem Report #15160

Received: (qmail 2031 invoked from network); 7 Jan 2002 06:32:24 -0000
Message-Id: <200201070632.g076WGm12216@citadel.uliginous.dyndns.org>
Date: Mon, 7 Jan 2002 17:32:16 +1100 (EST)
From: bnjf@optushome.com.au
Reply-To: bnjf@optushome.com.au
To: gnats-bugs@gnats.netbsd.org
Subject: editors/vim not building on mac68k
X-Send-Pr-Version: 3.95

>Number:         15160
>Category:       pkg
>Synopsis:       pkgsrc's vim won't build on mac68k
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jlam
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 07 06:33:00 +0000 2002
>Closed-Date:    Wed Oct 23 22:31:56 +0000 2002
>Last-Modified:  Wed Oct 23 22:31:56 +0000 2002
>Originator:     
>Release:        NetBSD 1.5.2
>Organization:
Brad Forschinger <bnjf@optushome.com.au>
>Environment:
quadra 800, netbsd 1.5.2
System: NetBSD citadel.uliginous.dyndns.org 1.5.2 NetBSD 1.5.2 (GENERIC) #0: Tue Aug 21 23:28:02 CST 2001 oster@piggy.oster.net:/u3/mac68k/src/sys/arch/mac68k/compile/GENERIC mac68k


>Description:
vim won't build, SIZEOF_INT isn't found
>How-To-Repeat:
build pkgsrc/editors/vim/
>Fix:
patch work/vim60/src/auto/config.h's #define after config? not sure.
>Release-Note:
>Audit-Trail:

From: Martti Kuparinen <martti@netbsd.org>
To: bnjf@optushome.com.au
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/15160: editors/vim not building on mac68k
Date: Mon, 7 Jan 2002 09:08:25 +0200 (EET)

 > vim won't build, SIZEOF_INT isn't found

 How up-to-date is your pkgsrc, i.e. are you trying to build vim-6.0.118?

 Martti

State-Changed-From-To: open->feedback 
State-Changed-By: wiz 
State-Changed-When: Fri Jan 25 11:16:19 PST 2002 
State-Changed-Why:  
vim is updated pretty often, and is at 6.0.140 right now -- is the 
problem still there? 
State-Changed-From-To: feedback->open 
State-Changed-By: wiz 
State-Changed-When: Sun Jan 27 03:51:08 PST 2002 
State-Changed-Why:  
Feedback supplied -- it's still there with 6.0.140. 

From: "Johnny C. Lam" <jlam@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: Re: pkg/15160 [martti.kuparinen@iki.fi: vim and ncurses]
Date: Mon, 11 Mar 2002 15:10:38 -0800

 ----- Forwarded message from Martti Kuparinen <martti.kuparinen@iki.fi> -----

 Delivered-To: tech-pkg@netbsd.org
 Date: Tue, 5 Feb 2002 14:58:12 +0200 (EET)
 From: Martti Kuparinen <martti.kuparinen@iki.fi>
 X-X-Sender: martti@ws4.piuha.net
 To: tech-pkg@netbsd.org
 Subject: vim and ncurses

 Hi!

 I've been trying to figure out what's wrong with vim on
 mac68k (pkg/15160). The problem is that vim-share (which
 doesn't buildlink ncurses) works just fine while vim
 (which buildlinks ncurses) can't link one test program.
 The failing command is:

 configure:6214: cc -o conftest -I/usr/pkgsrc/editors/vim/work/.buildlink/include -O2 -m68040 -I/usr/pkgsrc/editors/vim/work/.buildlink/include -L/usr/pkgsrc/editors/vim/work/.buildlink/lib  -Wl,-R/usr/pkg/lib -L/usr/local/lib conftest.c -lncurses 1>&5

 The .buildlink/lib directory contains the proper symlinks so
 it's not about missing libs (I think).

 libncurses.a -> /usr/lib/libcurses.a
 libncurses.so -> /usr/lib/libcurses.so
 libncurses.so.3 -> /usr/lib/libcurses.so.3
 libncurses.so.3.6 -> /usr/lib/libcurses.so.3.6
 libncurses.so.5 -> /usr/lib/libcurses.so.5
 libncurses.so.5.0 -> /usr/lib/libcurses.so.5.0

 It looks like vim-share links with -ltermlib while vim uses
 -lncurses. Use of -lncurses makes the configuration test fail.

 Any ideas? I can't see this on i386 or sparc64...

 Martti

 ---
 Martti Kuparinen <martti.kuparinen@iki.fi>      NetBSD - No media hype
 http://www.iki.fi/~kuparine/                    http://www.netbsd.org/


 ----- End forwarded message -----

From: "Johnny C. Lam" <jlam@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: Re: pkg/15160 [martti.kuparinen@iki.fi: Re: vim and ncurses]
Date: Mon, 11 Mar 2002 15:11:21 -0800

 ----- Forwarded message from Martti Kuparinen <martti.kuparinen@iki.fi> -----

 Delivered-To: tech-pkg@netbsd.org
 Date: Wed, 6 Feb 2002 10:05:09 +0200 (EET)
 From: Martti Kuparinen <martti.kuparinen@iki.fi>
 X-X-Sender: martti@ws4.piuha.net
 To: "Johnny C. Lam" <jlam@netbsd.org>
 Cc: tech-pkg@netbsd.org
 Subject: Re: vim and ncurses
 In-Reply-To: <20020205105535.A27981@mail.netbsd.org>

 On Tue, 5 Feb 2002, Johnny C. Lam wrote:

 > Can you post the full error from the config.log?  I'm interested in the next
 > few lines after this one that usually states the contents of conftest.c and
 > the actual error messages given by the linker.

 configure:6195: checking size of int
 configure:6214: cc -o conftest -I/usr/pkgsrc/editors/vim/work/.buildlink/include
  -O2 -m68040 -I/usr/pkgsrc/editors/vim/work/.buildlink/include  -L/usr/pkgsrc/ed
 itors/vim/work/.buildlink/lib  -Wl,-R/usr/pkg/lib -L/usr/local/lib conftest.c  -
 lncurses 1>&5
 configure: failed program was:
 #line 6203 "configure"
 #include "confdefs.h"
 #include <stdio.h>
                 main()
                 {
                   FILE *f=fopen("conftestval", "w");
                   if (!f) exit(1);
                   fprintf(f, "%d\n", (int)sizeof(int));
                   exit(0);
                 }
 configure:6235: checking whether memmove/bcopy/memcpy handle overlaps

 There's no visible error...

 Martti

 ---
 Martti Kuparinen <martti.kuparinen@iki.fi>      NetBSD - No media hype
 http://www.iki.fi/~kuparine/                    http://www.netbsd.org/


 ----- End forwarded message -----

From: "Johnny C. Lam" <jlam@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: Re: pkg/15160 [jlam@netbsd.org: Re: vim and ncurses]
Date: Mon, 11 Mar 2002 15:12:11 -0800

 ----- Forwarded message from "Johnny C. Lam" <jlam@netbsd.org> -----

 Delivered-To: tech-pkg@netbsd.org
 Date: Wed, 6 Feb 2002 08:20:04 -0800
 From: "Johnny C. Lam" <jlam@netbsd.org>
 To: Martti Kuparinen <martti.kuparinen@iki.fi>
 Cc: tech-pkg@netbsd.org
 Subject: Re: vim and ncurses
 User-Agent: Mutt/1.2.5i
 In-Reply-To: <20020206100034.T52598-100000@ws4.piuha.net>; from martti.kuparinen@iki.fi on Wed, Feb 06, 2002 at 10:05:09AM +0200

 On Wed, Feb 06, 2002 at 10:05:09AM +0200, Martti Kuparinen wrote:
 > On Tue, 5 Feb 2002, Johnny C. Lam wrote:
 > 
 > > Can you post the full error from the config.log?  I'm interested in the next
 > > few lines after this one that usually states the contents of conftest.c and
 > > the actual error messages given by the linker.
 > 
 > configure:6195: checking size of int
 > configure:6214: cc -o conftest -I/usr/pkgsrc/editors/vim/work/.buildlink/include
 >  -O2 -m68040 -I/usr/pkgsrc/editors/vim/work/.buildlink/include  -L/usr/pkgsrc/ed
 > itors/vim/work/.buildlink/lib  -Wl,-R/usr/pkg/lib -L/usr/local/lib conftest.c  -
 > lncurses 1>&5

 This one is definitely my fault.  I just noticed that this was a problem on
 a mac68k, which is still an a.out platform.  bsd.buildlink.mk does some, uh,
 "interesting", things to deal with ncurses/curses on a newer system, but it's
 breaking due to the way that vim finds out which ncurses package to use.
 I'll handle this PR since I'm familiar with the solution.

 	Cheers,

 	-- Johnny Lam <jlam@jgrind.org>

 ----- End forwarded message -----
Responsible-Changed-From-To: pkg-manager->jlam 
Responsible-Changed-By: wiz 
Responsible-Changed-When: Thu Mar 14 09:50:56 PST 2002 
Responsible-Changed-Why:  
jlam said he'd handle this one. 

From: Frederick Bruckman <fredb@immanent.net>
To: Brad Forschinger <bnjf@optushome.com.au>,
   "Johnny C. Lam" <jlam@netbsd.org>, Martti Kuparinen <martti@netbsd.org>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/15160 pkgsrc's vim won't build on mac68k
Date: Sat, 13 Apr 2002 22:47:26 -0500 (CDT)

 For what it's worth, "vim" builds fine on NetBSD-1.5ZC/mac68k (ELF).

 Frederick


From: Johnny Lam <jlam@jgrind.org>
To: Frederick Bruckman <fredb@immanent.net>
Cc: Brad Forschinger <bnjf@optushome.com.au>,
  Martti Kuparinen <martti@netbsd.org>, gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/15160 pkgsrc's vim won't build on mac68k
Date: Sun, 14 Apr 2002 06:55:10 -0700

 On Sat, Apr 13, 2002 at 10:47:26PM -0500, Frederick Bruckman wrote:
 > For what it's worth, "vim" builds fine on NetBSD-1.5ZC/mac68k (ELF).

 Yes, the problem should only appear on a.out mac68k.  But it's good to
 know that it'll be gone in 1.6.

 	Thanks,

 	-- Johnny Lam <jlam@jgrind.org>
State-Changed-From-To: open->feedback 
State-Changed-By: jlam 
State-Changed-When: Fri Sep 13 17:12:01 PDT 2002 
State-Changed-Why:  
The vim packages have been converted to use the new buildlink2 framework 
which should fix the problems described in this PR.  Could you please update 
your pkgsrc to -current, and test to see if the problem is fixed?  Thanks! 

From: Klaus Heinz <k.heinz.okt.zwei@onlinehome.de>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: Re: pkg/15160: editors/vim not building on mac68k
Date: Wed, 23 Oct 2002 22:33:43 +0200

 > State-Changed-From-To: open->feedback 
 > State-Changed-By: jlam 
 > State-Changed-When: Fri Sep 13 17:12:01 PDT 2002 
 > State-Changed-Why:  
 > The vim packages have been converted to use the new buildlink2 framework 
 > which should fix the problems described in this PR.  Could you please update 
 > your pkgsrc to -current, and test to see if the problem is fixed?  Thanks! 

 I have just built vim 6.1 on NetBSD/amiga 1.5.3 successfully (pkgsrc
 from 2002-10-22).
 The former error (size of int was 0) doesn't happen anymore and the
 resulting binary is linked against libcurses:

   -lcurses.3 => /usr/lib/libcurses.so.3.6 (0x80dc000)
   -lc.12 => /usr/lib/libc.so.12.62.1 (0x80f0000)


 ciao
      Klaus

State-Changed-From-To: feedback->closed 
State-Changed-By: jlam 
State-Changed-When: Wed Oct 23 15:31:01 PDT 2002 
State-Changed-Why:  
Klaus Heinz kindly confirmed that converting vim to buildlink2 has fixed 
the problem of not finding -lncurses. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.