Subject: Re: Problem with misc/dialog
To: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
From: Ruibiao Qiu <ruibiao@arl.wustl.edu>
List: tech-pkg
Date: 11/10/2000 08:52:21
On Fri, 10 Nov 2000, Thomas Klausner wrote:

>Hi
>
>Mutt made me believe that Ruibiao Qiu wrote:
>> I think this are some problem with misc/dialog package.  I enabled
>> "MAKE_ENV+=HAVE_TRYUE_NCURSES=true", but it does not show up in
>> the work/dialog*/Makefile.  I have to add HAVE_TRUE_NCURSES=true
>> in there to get rid of the errors.  Can someone fix this?
>
>I'm a bit confused -- I just tested compilation on 1.4.2/i386 and
>1.5H/i386 -- both cases as far as the USE_CURSES stuff is concerned.
>On what platform and release are you having this problem?

I am on 1.5_ALPHA2/i386.  USE_CURSES is not my concern.  All the
errors I had is because HAVE_TRUE_NCURSES is not defined in the
source files even though I specified it in the Makefile under
misc/dialog (See error messages below).  Maybe your system has
different n/curse settings. I got ncurses-5.1 installed.

>Btw, it won't ever show up in work*/dialog*/Makefile, because it's set
>in the Make-Environment; so just doing `cd work*/dialog*; (g)make'
>surely will fail. Just do `make' in misc/dialog, and it should be
>fine.

Of course, I didnt do 'make' under the work directory.  In fact, I
just did it again. it gives the same errors as shown below.
HAVE_TRUE_NCURSES does not even show up in the Makefile under work
directory.  

miami# make
===> Validating dependencies for dialog-0.6z
=> Checksum OK for dialog-0.6z.tar.gz.
===> Extracting for dialog-0.6z
===> dialog-0.6z depends on executable: gmake - /usr/pkg/bin/gmake found
/usr/pkgsrc/distfiles//dialog-0.6z.tar.gz:       78.3%
===> Patching for dialog-0.6z
===> Applying NetBSD patches for dialog-0.6z
===> Building for dialog-0.6z
gcc -O2 -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -DLOCALE -DVERSION=\"0.6z\" -DHAVE_NCURSES -DHAVE_RC_FILE -DHAVE_GUAGE   -c -o checklist.o checklist.c
In file included from checklist.c:23:
dialog.h:131: syntax error before `attributes'
dialog.h:131: warning: type defaults to `int' in declaration of `attributes'
dialog.h:131: warning: data definition has no type or storage class
dialog.h:146: syntax error before `chtype'
dialog.h:146: warning: function declaration isn't a prototype
dialog.h:153: syntax error before `chtype'
dialog.h:154: warning: function declaration isn't a prototype
dialog.h: In function `mouse_wgetch':
dialog.h:207: warning: control reaches end of non-void function
checklist.c: In function `print_item':
checklist.c:37: warning: implicit declaration of function `wattrset'
checklist.c: In function `dialog_checklist':
checklist.c:116: warning: implicit declaration of function `keypad'
checklist.c:121: `ACS_LTEE' undeclared (first use in this function)
checklist.c:121: (Each undeclared identifier is reported only once
checklist.c:121: for each function it appears in.)
checklist.c:123: `ACS_HLINE' undeclared (first use in this function)
checklist.c:125: `ACS_RTEE' undeclared (first use in this function)
checklist.c:161: warning: implicit declaration of function `wnoutrefresh'
checklist.c:170: `ACS_DARROW' undeclared (first use in this function)
checklist.c:191: `KEY_UP' undeclared (first use in this function)
checklist.c:191: `KEY_DOWN' undeclared (first use in this function)
checklist.c:193: `KEY_MAX' undeclared (first use in this function)
checklist.c:208: warning: implicit declaration of function `wscrl'
checklist.c:220: `ACS_UARROW' undeclared (first use in this function)
checklist.c:369: `KEY_LEFT' undeclared (first use in this function)
checklist.c:370: `KEY_RIGHT' undeclared (first use in this function)
dialog.h: At top level:
dialog.h:131: warning: array `attributes' assumed to have one element
gmake: *** [checklist.o] Error 1
*** Error code 2

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.


          Regards

            Ruibiao

/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
   Ruibiao Qiu                      ruibiao@arl.wustl.edu
   Research Assistant               ruibiao@cs.wustl.edu
   Applied Research Laboratory      rq1@cec.wustl.edu
   Department of Computer Science   ruibiao@acm.org
   Washington University            http://www.arl.wustl.edu/~ruibiao
   Campus Box 1045                  http://www.cs.wustl.edu/~ruibiao
   One Brookings Drive              Tel. (314)935-4163
   St. Louis, MO 63130-4899 USA     Fax  (314)935-7302
\____________________________________________________________________/